Tagged: woocommerce
-
AuthorPosts
-
February 26, 2014 at 2:47 am #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 PerezFebruary 26, 2014 at 3:53 am #229384February 26, 2014 at 3:59 am #229389February 26, 2014 at 4:02 am #229392Hi!
That seems to be just a warning, could you give us more details of the problem?
Regards,
JosueFebruary 26, 2014 at 4:17 am #229399Sure, 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
February 26, 2014 at 4:53 am #229419Hey!
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,
IsmaelFebruary 26, 2014 at 5:06 am #229423I added some custom checkout fields for woocommerce in functions.php file, but there is no whitespace at the end of the code.
February 26, 2014 at 8:36 am #229451Hey!
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,
PeterFebruary 26, 2014 at 4:11 pm #229602When 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 33When 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 27February 26, 2014 at 4:26 pm #229614Hey!
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,
PeterFebruary 28, 2014 at 3:09 am #230404I 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
March 1, 2014 at 12:40 am #230882What do you think guys??
March 1, 2014 at 10:03 am #231002Hi!
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,
PeterMarch 1, 2014 at 6:59 pm #231116So I should go thru all the files of the pre orders extension and see if it has a whitespace somewhere?
Thanks!
March 1, 2014 at 8:28 pm #231125Hey!
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 -
AuthorPosts
- You must be logged in to reply to this topic.