Joomla directly uses the session to cause template errors. when a user logs in, in addition to recording the session information by default, the following code is added to print $ _ SESSION here to get the value, however, the template page called below is blank. if the two lines of code are removed, the template page will be displayed normally. why! ------ Solution ------------------ enable the error prompt function in php. ini and set joomla to directly use session to cause template errors
When a user logs in, in addition to recording the session information by default, the following code is added,
Print $ _ SESSION here to get the value, but the template page called below is blank,
If the two lines of code are removed, the template page will be displayed normally. why!
------ Solution --------------------
Enable the error prompt function in php. ini, set display_errors = On, and restart apache.
Then run the command to check whether there are any errors.
------ Solution --------------------
Comment out session_start ();