• Since the last update (and possibly the one before that) we are getting errors with every post publish:

    Warning: reset() expects parameter 1 to be array, null given in …/wp-content/plugins/subscribe2/readygraph-extension.php on line 196

    Warning: Cannot modify header information – headers already sent by (output started at …/wp-content/plugins/subscribe2/readygraph-extension.php:196) in …/wp-admin/post.php on line 235

    Warning: Cannot modify header information – headers already sent by (output started at …/wp-content/plugins/subscribe2/readygraph-extension.php:196) in …/wp-includes/pluggable.php on line 119

    https://wordpress.org/plugins/subscribe2/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hmm, not sure where all the comments went on this post, but to answer your question from last night:
    “Does ANYONE have a fix for this? Would downgrading to an older version fix this? Is that possible or have there been database changes?”

    We did end up downgrading to get it to work. We downgraded to version 10.19.0 and the error is now gone.

    You can go here to download older versions

    To whoever deleted the previous comments for this post:
    This topic is technically NOT resolved. Many others had stated that they are having issues with these readygraph errors while using Subscribe2, even when readygraph is not activated.

    Please fix this! We had to downgrade because our client thought they were breaking the site every time they posted ANYTHING (not just blog posts).

    Thanks.

    @kdardis

    Downgrading is a very good method of resolving such issues. No core database changes have been made as far as I can tell so it should be pretty safe – but as always make sure you have a good database backup before you start.

    Thread Starter Stephen S

    (@ssuess)

    Yeah, who deleted all the old comments?

    @mattyrob

    Downgrading was a great option to solve the issue, but we are hoping it’s a temporary fix. We would be much happier if the issue were looked into further, especially since it seems to be a plugin issue based on the number of people who have complained about it. If you know of anything on our end that could be causing these errors, we would happily try to attend to them. Otherwise, we are hoping that the next update will resolve these errors.

    @kdardis

    I’m guessing here as the ReadyGraph code is nothing to do with me, but…

    On line 196 of the readtgraph-extension.php file there is this line:
    $post_image = reset($arr);

    This is causing an issue because the $arr variable is never set anywhere in that file, nor is it passed to a function.

    I’m speculating that the intended line should be:
    $post_image = $images_list;

    That would make some sense in the context of the surrounding code but as to whether it delivers the expected functionality from the author is something I don’t know.

    I’m guessing since reset($arr) requires an array, and $images_list is an array, it is supposed to be:

    $post_image = reset($images_list);

    Again, just looking at the surrounding code. No idea if that’s correct.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘weird readygraph errors whenever publishing a post’ is closed to new replies.