PHP7 not compatible with main CMS and cloud severs

Talk about the project itself, the community, where we are and what we need. Great place to introduce yourself and make friends as well.

PHP7 not compatible with main CMS and cloud severs

Postby paulDonia139 » Mon Feb 20, 2017 1:26 pm

I run the full upgrade as I do on my server regularly and at my disapointment applying the update applied php 7.1.2 which broke down all the applications hosted due to major bug on PHP 7 session.
Piwigo
Joomla
Owncloud

None of them can work due to PHP_Session been broken !
piwigo:
Could not gather sufficient random data #2 {main} Next Error: Failed to create session ID: user (path: )

Owncloud return a 500 error

[Mon Feb 20 14:23:05.915900 2017] [php7:error] [pid 13442] [client 145.133.169.81:54198] PHP Fatal error: Uncaught Exception: Could not gather sufficient random data in /srv/http/owncloud/lib/private/security/securerandom.php:80\nStack trace:\n#0 /srv/http/owncloud/lib/private/security/securerandom.php(80): random_int(0, 63)\n#1 /srv/http/owncloud/lib/private/appframework/http/request.php(477): OC\\Security\\SecureRandom->generate(20)\n#2 /srv/http/owncloud/lib/private/log/owncloud.php(87): OC\\AppFramework\\Http\\Request->getId()\n#3 [internal function]: OC_Log_Owncloud::write('PHP', 'Uncaught Except...', 3)\n#4 /srv/http/owncloud/lib/private/log.php(266): call_user_func(Array, 'PHP', 'Uncaught Except...', 3)\n#5 /srv/http/owncloud/lib/private/log.php(124): OC\\Log->log(3, 'Uncaught Except...', Array)\n#6 /srv/http/owncloud/lib/private/log/errorhandler.php(64): OC\\Log->critical('Uncaught Except...', Array)\n#7 [internal function]: OC\\Log\\ErrorHandler::onShutdown()\n#8 {main}\n thrown in /srv/http/owncloud/lib/private/security/securerandom.php on line 80, referer: https://donia139.nl/owncloud/

Joomla:
Error displaying the error page: Application Instantiation Error: Failed to create session ID: user (path: )

Problem, because ArchlinuxArm doesn't have an archive with older package, I can't downgrade to php 5.6 .
My server is useless :-(
anyone can help on this?

I try to install php 5.6 from sources but can get it working either ...

Please help ! Major issue.
Update not reliable

Paul
paulDonia139
 
Posts: 2
Joined: Mon Feb 20, 2017 1:07 pm

Re: PHP7 not compatible with main CMS and cloud severs

Postby WarheadsSE » Mon Feb 20, 2017 1:46 pm

What was your problem with from-source?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6729
Joined: Mon Oct 18, 2010 2:12 pm

Re: PHP7 not compatible with main CMS and cloud severs

Postby paulDonia139 » Tue Mar 07, 2017 2:36 pm

Hi ,

Sorry for late reply, I didn't get a notification someone looked at my question.
I can compiled the sources but I don't know how to link the 5.6 install to my Apache.
If you got a link I will be pleased .

On 7.1.2 PHP, I can get Piwigo working while disabling "session_start()" but no login possible as that's requires the cookies enabled.

it's indeed a problem to access /dev/urandom
Looks like it may be something related to the path, environment variable or something like that.

Trying to find a way to trace this and determine the root cause for this on my system.
Any idea how I can check if /dev/urandom is properly set and if php/ apache can access it?

regards,
paulDonia139
 
Posts: 2
Joined: Mon Feb 20, 2017 1:07 pm


Return to Community

Who is online

Users browsing this forum: No registered users and 0 guests