Tagged: 

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #229343

    Hey Guys, I bought the Enfold theme (Awesome theme by the way) and I’m using the woocommerce plugin plus their Pre-Order extension.

    I was talking with the woocommerce guys about a problem I’m having, and they are saying that the theme is causing the error. I have a screenshot of where the error appears to be.

    Is this something you guys can help me?

    Thanks!
    Alex Perez

    #229384

    Hi Alex Perez!

    Upload the screenshot in a service like this and post it here.

    Regards,
    Josue

    #229389

    Hi Josue,

    Here is the screenshot

    http://imgur.com/a5C7B2U

    Thanks!

    #229392

    Hi!

    That seems to be just a warning, could you give us more details of the problem?

    Regards,
    Josue

    #229399

    Sure, this is the problem I’m having.

    When a user completes the pre-order checkout on the website, we get the order on the backend to either approve it or cancel it. When the order gets approved I get this error.

    Warning: Cannot modify header information – headers already sent by (output started at /home/rawjuici/public_html/wp-admin/includes/template.php:1698) in /home/rawjuici/public_html/wp-includes/pluggable.php on line 896

    The order does not get completed or changed status and an email is sent to the user with a link back to the website that does not have their order information and cannot complete the order via PayPal.

    Please let me know if you need more additional information about this and Thank you so much.

    Alex Perez

    #229419

    Hey!

    Did you recently add something on functions.php file? Please edit functions.php then scroll at the very bottom, remove all whitespace until you get to the end of the code. Save the file.

    Regards,
    Ismael

    #229423

    I added some custom checkout fields for woocommerce in functions.php file, but there is no whitespace at the end of the code.

    #229451

    Hey!

    Try to replace this line from wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php:

    
    if(!is_admin() && !session_id()) session_start();
    

    with

    
    if(!is_admin() && session_id() == "") session_start();
    

    If it doesn’t work delete this line completely.

    Regards,
    Peter

    #229602

    When I replace that line, I get this error on the website.
    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/rawjuici/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php:1) in /home/rawjuici/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php on line 33

    When I delete that line, I get this error on the website.
    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/rawjuici/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php:1) in /home/rawjuici/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/portfolio.php on line 27

    #229614

    Hey!

    Ok, then delete the line and open up wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/portfolio.php and delete

    
    if(!is_admin() && !session_id()) session_start();
    

    Regards,
    Peter

    #230404

    I deleted those lines and I’m getting this error.

    Warning: Cannot modify header information – headers already sent by (output started at /home/rawjuici/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php:1) in /home/rawjuici/public_html/wp-includes/pluggable.php on line 896

    #230882

    What do you think guys??

    #231002

    Hi!

    I’m not sure if the theme causes the issue but I really doubt it at this point. Probably the Preorders extension has a whitespace somewhere and triggers the “headers already sent error which eventually breaks the sessions. I did a quick test on my localhost and I can reproduce the issue with any theme including TwentyThirteen – the default wordpress theme. Try to switch to the default theme on your server and check if the theme change fixes the issue.

    Regards,
    Peter

    #231116

    So I should go thru all the files of the pre orders extension and see if it has a whitespace somewhere?

    Thanks!

    #231125

    Hey!

    Yes, this might solve the issue. However if you can reproduce the issue with the default theme (I can reproduce it on my test server with TwentyThirteen) it’s a plugin bug and you should report it to the plugin developers.

    Best regards,
    Peter

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.