Joomla directly uses session to cause template errors

Source: Internet
Author: User
Joomla directly uses the session to cause template errors. when a user logs in, the following code is added in addition to recording the session information by default,



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!


Reply to discussion (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.

Display_errors = On, that is, the Enabled status. no prompt is displayed.

Comment out session_start ();

I tried it. it's still the same.

Is this problem solved? I want to know too ..

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.