On a shared hosting, if I change the PHP version from 7.0 to 7.2, I get a blank page both on frontend and backend. If I restore the previous PHP version the site reappears correctly.
By activating "display erros" in php.ini, the following message appears:
Warning: session_start (): Failed to read session data: user (path: / opt / alt / php72 / var / lib / php / session) in / home / myusername / public_html / mysubdirectory / libraries / joomla / session / handler / native .php online 260
Error: Failed to start the session
The correct display of site pages
A white page, a blank page both on frontend and backend, or this error if I enable "display errors"in php.ini :
Warning: session_start (): Failed to read session data: user (path: / opt / alt / php72 / var / lib / php / session) in / home / myusername / public_html / mysubdirectory / libraries / joomla / session / handler / native .php online 260
Error: Failed to start the session
Joomla 3.8.12
"Wedding" template, a recent theme produced by Joomlabamboo.com
RSForm! Pro 1.52.14 installed
Akeeba Backup Installed
Gantry template installed, but not used
the websiste is on a shared hosting with cPanel
Joomlart Joomla GDPR Component 1.0.4
nothing else installed
I tried to disable all modules, some third-party extensions (RSForm and the Gantry), but the white page remained.
Later I tried to set Protostar as the default template, in place of what was there before, which was "Weddings" template produced by Joomlabamboo.com.
I have never disabled the extensions related to the Joomlabamboo.com template.
I have another site that uses the same template, with joomla 3.8.12, but it works well with PHP 7.2.9.
Hi!
The other site is on another server, not on a shared hosting, but on a VPS Ubuntu.
They are different sites of different owners.
Hi!
By plotting php processes, I have found that the cause of this malfunction is the "mod_roknavmenu" component. At the moment I have disabled it and the site is using version 7.2 and is correctly visible; it is possible that this component is not compatible with this version of php.
i asked because it sounds like a misconfigured php on the effected server - sppecificaly the session.path
How to resolve it?
As it is not a joomla issue you should speak to your host
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-09-07 22:09:26 |
Closed_By | ⇒ | brianteeman |
Hi!
Sorry, but my technician said that having carried out the tests using the Protostar template, then disabling all the modules one at a time and then disabling some extensions, I had to report the problem to joomla.org
Are You sure that the problem is only a misconfigured "session.save_path"?
Thanks
If 3.8.12 wouldn't run on 7.2 we would know. It is for sure not a problem with the core joomla, you can ask on the forum. For me it looks as your session path is not writeable or doesn't exists
Ok, thanks!
Regards
You do not mention the session handler that you are using
(or i missed it ?)
Before you change from PHP 7.0 to PHP 7.2
Please check that the session handler that you have configured in Joomla Global configuration
(inside "System" Tab)
has been configured properly for PHP 7.2 too
Also you may try using a different one
Hi, ggppdk!
If I set session handler from "database" to "PHP" I have a white page with this error: "Error: Call to a member function getActive() on null: The MySQLi extension for PHP is not installed or enabled."
Regards
Ok,
i think now you have gotten a good message ... and you can solve this
Enable mysqli for PHP 7.2 and / or try Mysql (PDO) in global configuration inside System TAB
And that confirms that your installation of php 7.2 is not correct
Hi ggppdk!
You say:
Enable mysqli for PHP 7.2 and / or try Mysql (PDO) in global configuration inside System TAB
But I don't find msqli or Mysql (PDO) settings in System TAB of gloabal config. I attached a screeshot of my SyStem Tab.
Thanks
Regards
Hi franz-wohlkoenig!
Ok, I will post this discussion on forum.
Thanks
Cheers
But I don't find msqli or Mysql (PDO) settings in System TAB of gloabal config.
My mistake the setting is inside "Server" TAB,
Ok, I will post this discussion on forum.
Thanks
Cheers
yes, ...
Hi ggppdk!
There is no need to publish the problem on the forum. By setting MySQL (PDO), the site now works correctly with PHP 7.2.
Thanks so much!
I think this could be due to wrong database information. please try to comment the line from 260 to 263 in libraries/joomla/session/handler/native.php and see if there are error for mysql not connected. I have this problem due to that, Hope anyone have same and this solution work for them.
NEVER change core files!!!!
No I am not suggesting to make changes in core file. I am just suggesting it to debug the issue. If issue found revert the changes back in core file.
disculpen tengo este error, pero solo puedo interactuar mediante FTP, que puedo hacer??
is that other site on the same server as the one that is not working?