Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #732852

    I have one portfolio post that is VERY long; it is a product list so it has to be very long.
    http://indiecinemaacademy.com/complete-led-color-database-cri-tlci-cqs-tm30-15/

    Whenever I try to make a change and save it, I get a 404 error. Looking at my error logs I get this:
    [12-Jan-2017 14:00:06 UTC] PHP Warning: session_start(): Cannot send session cookie – headers already sent in /home/******/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php on line 32
    [12-Jan-2017 14:00:06 UTC] PHP Warning: session_start(): Cannot send session cache limiter – headers already sent in /home/******/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php on line 32

    Line 32 is this:
    if(!is_admin() && !current_theme_supports(‘avia_no_session_support’) && !session_id()) session_start();

    I’ve seen this problem in other places, but in every discussion it says to start a new thread.

    Is this an Enfold issue or an issue with my server? Why do so many people have the same issue specifically with masonry line 32?

    #733016

    Hey BleedingThorn,

    Thanks for the login details. Could you try activating debug mode in order to see shortcodes: http://kriesi.at/documentation/enfold/enable-advanced-layout-builder-debug/. Then copy/paste the shortcode to a new page to see if that helps?

    If not then please try deactivating all plugins to see if one of them is causing a conflict.

    Best regards,
    Rikard

    #733403

    I activated the debug mode and created a new test page. Ends up I misdiagnosed the problem. The real problem was that ModSecurity was tripping after the post got past a certain length. The session_start error I mentioned early was actually for something else.

    Thanks for your help!

    #733405

    Hi!

    Great! Glad you figured it out :)
    For future reference, you can add following code to functions.php file in Appearance > Editor to remove session error

    add_theme_support('avia_no_session_support');

    Regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘When saving long post, get 404 error; Session_Start error with Masonry?’ is closed to new replies.