Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

White page with PHP v.7.2 and Joomla 3.8.12 #22046

Closed
Mkvixj00 opened this issue Sep 7, 2018 · 23 comments
Closed

White page with PHP v.7.2 and Joomla 3.8.12 #22046

Mkvixj00 opened this issue Sep 7, 2018 · 23 comments

Comments

@Mkvixj00
Copy link

Mkvixj00 commented Sep 7, 2018

Steps to reproduce the issue

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

Expected result

The correct display of site pages

Actual result

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

System information (as much as possible)

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

Additional comments

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.

@brianteeman
Copy link
Contributor

is that other site on the same server as the one that is not working?

@Mkvixj00
Copy link
Author

Mkvixj00 commented Sep 7, 2018

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.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22046.

@Mkvixj00
Copy link
Author

Mkvixj00 commented Sep 7, 2018

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.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22046.

@brianteeman
Copy link
Contributor

i asked because it sounds like a misconfigured php on the effected server - sppecificaly the session.path

@Mkvixj00
Copy link
Author

Mkvixj00 commented Sep 7, 2018

How to resolve it?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22046.

@brianteeman
Copy link
Contributor

As it is not a joomla issue you should speak to your host

@Mkvixj00
Copy link
Author

Mkvixj00 commented Sep 8, 2018

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


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22046.

@rdeutz
Copy link
Contributor

rdeutz commented Sep 8, 2018

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

@Mkvixj00
Copy link
Author

Mkvixj00 commented Sep 8, 2018

Ok, thanks!
Regards


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22046.

@ggppdk
Copy link
Contributor

ggppdk commented Sep 8, 2018

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

@Mkvixj00
Copy link
Author

Mkvixj00 commented Sep 8, 2018

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


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22046.

@ggppdk
Copy link
Contributor

ggppdk commented Sep 8, 2018

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

@brianteeman
Copy link
Contributor

And that confirms that your installation of php 7.2 is not correct

@Mkvixj00
Copy link
Author

Mkvixj00 commented Sep 8, 2018

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.
screen shot 2018-09-08 at 09 02 12

Thanks
Regards


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22046.

@ghost
Copy link

ghost commented Sep 8, 2018

can you please discuss on the forums as this repository concerns in first Place Joomla-Core coding.

@Mkvixj00
Copy link
Author

Mkvixj00 commented Sep 8, 2018

Hi franz-wohlkoenig!
Ok, I will post this discussion on forum.
Thanks
Cheers


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22046.

@ggppdk
Copy link
Contributor

ggppdk commented Sep 8, 2018

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, ...

@Mkvixj00
Copy link
Author

Mkvixj00 commented Sep 8, 2018

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!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22046.

@ghost
Copy link

ghost commented Sep 8, 2018

@Mkvixj00 glad that this works now and thanks to all commented here.

@mtkumar82
Copy link

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.

@brianteeman
Copy link
Contributor

NEVER change core files!!!!

@mtkumar82
Copy link

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.

@maryyocelotl
Copy link

disculpen tengo este error, pero solo puedo interactuar mediante FTP, que puedo hacer??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants