WordPress.org

Ready to get started?Download WordPress

Forums

FeedWordPress
[resolved] FeedWordPress and do_action (7 posts)

  1. Gestroud
    Member
    Posted 1 year ago #

    Hello,

    I'm getting the following error in the admin section and home page of my site:

    Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of do_action(). in /xxx/wp-content/plugins/feedwordpress/admin-ui.php on line 53

    I can't log in to the admin section and the home page is just an error message.

    http://reforml.org

    Thanks!

    Edit: Had to place an index.html file in the root until I can solve this

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

  2. hash73
    Member
    Posted 1 year ago #

    Hi Gestroud,

    Did you manage to resolve this issue...I have the same problem at http://jazzclubjury.com

    Let me know if you found a fix as your site seems to working now.

    Thanks

  3. Gestroud
    Member
    Posted 1 year ago #

    In my case, it was a PHP problem. My site was set up to use PHP 5.4. FeedWordPress won't work with that version. I had to downgrade to PHP version 5.3. That fixed everything.

  4. zcytunoy
    Member
    Posted 1 year ago #

    If you upgraded to PHP 5.4 and you are using the Feedwordpress plugin for WordPress, you may encounter error code 500 and fatal errors on your blog, rendering it unreachable with the following errors in the error log:

    PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of do_action()

    Fixing the problem is easy, you need to do 3 small edits in 2 files:

    Go to your wp-content/plugins/feedwordpress folder
    open the file admin-ui.php

    Find the line:

    do_action($this->dispatch.'_save', &$post, &$this);

    Replace it with:

    do_action($this->dispatch.'_save', $post, $this);

    Find the line:

    do_action($this->dispatch.'_post', &$post, &$this);

    Replace it with:

    do_action($this->dispatch.'_post', $post, $this);

    Save and upload admin-ui.php

    Now, open the file syndicatedlink.class.php

    Find:

    $posts = apply_filters(
    'syndicated_feed_items',
    $this->simplepie->get_items(),
    &$this
    );

    Replace with:

    $posts = apply_filters(
    'syndicated_feed_items',
    $this->simplepie->get_items(),
    $this
    );

    Save and upload the file.

    The errors now should be gone and your blog will start working again.

  5. jadik
    Member
    Posted 1 year ago #

    This was of tremendous help! Thank you for sharing the fix.

  6. radgeek
    Member
    Plugin Author

    Posted 1 year ago #

    @zcytunoy, thanks for supplying the explanation and work-around fix on this issue.

    Y'all may be glad to know that a similar series of compatibility fixes has been rolled into the most recent release of FeedWordPress, v. 2012.1212, released today and now available at:

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

    Hope this helps!

  7. overcranked
    Member
    Posted 11 months ago #

    zcytunoy Thank you for the solid fix, saved my hide!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic