OSSN 5.2 - Apache|Ubuntu - Component Enabling causes HTTP 500

Emil Andrè Hagen Posted in Technical Support 4 years ago

Hi,

Fresh install of OSSN on Ubuntu 20.04 Focal, Apache 2.4.41, PHP 7.4.
Followed the steps to take BEFORE installing on PHP 7.4 (Adjust the 2 code chunks) although this issue happens anyway.

Install completes -> login as admin -> Components -> installer.
Pick textarea-support-2.7.zip (freshly downloaded)
Uploads and installs fine.
Go to enable -> http 500 complete website crash.
Request; (hostname masked)

GET /action/admin/cache/flush?ossn_ts=1591965383&ossn_token=3bc2fe021f4475d7ac3b55afa1459009 HTTP/1.1
Host: xxxx
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
Upgrade-Insecure-Requests: 1
DNT: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Referer: http://xxxx/administrator/components
Accept-Encoding: gzip, deflate
Accept-Language: en-GB,en;q=0.9,nb-NO;q=0.8,nb;q=0.7,en-US;q=0.6
Cookie: PHPSESSID=pgn78vps0asa6kd01550eitink; ossn_chat_bell=off

Response;

HTTP/1.0 500 Internal Server Error
Date: Fri, 12 Jun 2020 12:36:23 GMT
Server: Apache/2.4.41 (Ubuntu)
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Content-Length: 0
Connection: close
Content-Type: text/html; charset=UTF-8

I can recover the system by deleting the components folder via SSH and the system restores.
I can then try to do it again, but this 500 response comes over and over.

Apache2 logs are clean and gives no indication of problems.
Where do I begin to troubleshoot this?

[PHP Modules]
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
hash
iconv
imagick
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib
Am I missing something? I saw some posts about MCrypt, although this is no longer available in 7.4 I also see no indication OSSN does NOT work entirely on 7.4php

Please help. I've cleared cache and cookies, also used other web-browsers.

Replies
us Matt Edwards Replied 4 years ago

I just had this same issue. Go into basic site settings and enable error reporting. That should give you an error message. In my case /components/TextareaSupport/vendors/htmlpurifier-4.12.0-lite/library/HTMLPurifier.auto.php was missing. I just downloaded "htmlpurifier-4.12.0-lite.zip" from http://htmlpurifier.org/releases/, created the "vendors" directory and extracted the zip there. I'm no expert so I don't know if this is the correct fix, but it worked for me.

Norwegian Emil Andrè Hagen Replied 4 years ago

Hey Arsalan,

Unfortunately thats not an option for me.
I have VMs in Sync with eachother with Disaster Recovery and a Proxy in front.
DB + File replication on all of them so during the "pre-created" install wouldn't go well for me I'm afraid..

Thanks for your response anyway!

Norwegian Emil Andrè Hagen Replied 4 years ago

Hey Arsalan,

Well now that you mention it, if the above output is not a confirmation then I'm getting concerned.

command; apt install php7.4-zip;
php7.4-zip is already the newest version (7.4.3-4ubuntu2.2).

***EDIT. Incase the command was different I tried 2 more.
a2enmod php7.4-zip;
ERROR: Module php7.4-zip does not exist!
a2enmod php-zip - Did not work either. (Does not exist)
a2enmod zip - Did not work either. (Does not exist)

apachectl -M;
Loaded Modules:
coremodule (static)
so
module (static)
watchdogmodule (static)
http
module (static)
logconfigmodule (static)
logiomodule (static)
version
module (static)
unixdmodule (static)
access
compatmodule (shared)
alias
module (shared)
authbasicmodule (shared)
authncoremodule (shared)
authnfilemodule (shared)
authzcoremodule (shared)
authzhostmodule (shared)
authzusermodule (shared)
autoindexmodule (shared)
deflate
module (shared)
dirmodule (shared)
env
module (shared)
filtermodule (shared)
mime
module (shared)
mpmpreforkmodule (shared)
negotiationmodule (shared)
php7
module (shared)
reqtimeoutmodule (shared)
rewrite
module (shared)
setenvifmodule (shared)
status
module (shared)

Thoughts?
I checked the .ini file for the zip module and it already has the snippet "extension=zip.so"

So based on this is it enabled or not?
If not, then I seem unable to get it enabled.

Indonesian Arsalan Shah Replied 4 years ago

Do you have zip php extension enabled?

Premium Version

Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.

$199 (Life Time)
Learn More

Other Questions