WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
Conflict with WP Online Store (12 posts)

  1. Rycher
    Member
    Posted 1 year ago #

    When I activate the Jetpack plug in and try to add an item to the cart in the online store, I get the following error:
    Cannot modify header information - headers already sent by (output started at /home/website/public_html/wp-content/plugins/wp-online-store/........
    I have followed the suggestions from the Online store plugin trouble shooter, and as soon as Jetpack is activated the error re occurs.

    http://wordpress.org/extend/plugins/jetpack/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Could you try to delete Jetpack plugin files, and install the plugin again?

    If that doesn't help, the problem could be coming from your theme, or from extra spaces before an opening <?php tag, or after a closing ?> somewhere on your site.
    You can read more about it here:
    http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F

  3. Rycher
    Member
    Posted 1 year ago #

    Thanks for the reply Jeremy, I appreciate it.
    Tried deleting the plugin completely and re-installing it, same error, but the article you referred me to was insightful, I can't see the error in the file.
    The error that I get looks like this:
    Warning: Cannot modify header information - headers already sent by (output started at wp-content/plugins/wp-online-store/core.php:207) in wp-content/plugins/wp-online-store/includes/functions/general.php on line 89
    Which I now know is apparently an error on line # 207 of the core.php file, thanks to the article you linked me to.
    Line #207 in the core.php file looks like this:
    if('' == $content || !strstr($content, '[WP_online_store]') ) { ob_flush();return $content; }
    I know I am probably missing something silly, but I don't see an error. If I de-activate Jetpack, bam! the store works like a charm, activate jetpack and as soon as I try to add something to the cart, the error reoccurs.
    Any thoughts?

  4. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Can you look for empty spaces at the beginning and at the end of the 2 files you mentioned?

  5. Rycher
    Member
    Posted 1 year ago #

    Looked for empty space on core.php beginning and end, all looks fine.
    Looked for empty space on general.php, found no closing ?> tag at all, added it, same error.

  6. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Since the error is linked to the WP Online Store plugin, I believe the plugin author should be able to help.

    You might also want to temporarily remove the whole function, and see if the error disappears:

    function filter($content = '') {
    	if ( '' == $content || !strstr($content, '[WP_online_store]') ) { ob_flush();return $content; }
    	return preg_replace('|(<p>)?(\n)*[(\[)WP_online_store(\])](\n)*(</p>)?|', do_shortcode( '[WP_online_store]' ), $content);
    }

    Thank you!

  7. Rycher
    Member
    Posted 1 year ago #

    Jeremy, once again thank you so much for your reply! I have not heard back from the writer of the Online Store plug in as of yet, but I am hopeful.
    As for removing the function as you stated above, would I write this piece of code directly to the core.php file in the plug in folder in place of the old line #207?

  8. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    The function I copied in my last post is the one you can find at the line #207 in the core.php. Could you try to temporarily delete that function from the file, and see if the error remains?

  9. Rycher
    Member
    Posted 1 year ago #

    Silly me, should have read the code you put up before I posted.
    When I remove the function from the file I get a site wide error:

    call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'filter' was given in /home/nyprepp/public_html/wp-includes/plugin.php

  10. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Thanks! I am afraid I won't be able to help you further since the issue seems related to the WP Online Store plugin. Could you post again as soon as the plugin author replies?

  11. Rycher
    Member
    Posted 1 year ago #

    No thank you, sir for all your help! And yes, I will keep you up to date on the progress with the conflict resolution with the other plugin.

  12. pinah
    Member
    Posted 1 year ago #

    i have similar issue: error on wpos dissappear after deactivate the jetpack. but then i realised that it only appear on my wp site with certain theme. so maybe this is a theme related issue

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic