Joomla directly uses session errors to cause template errors

Source: Internet
Author: User
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 ();

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.