WordPress.org

Ready to get started?Download WordPress

Forums

FeedWordPress
[resolved] Feedwordpress & PHP 5.4 (4 posts)

  1. deleuzer
    Member
    Posted 1 year ago #

    I just want to make sure there is an open support ticket for the incompatibility of this module and php5.4. None of the resolved tickets have solutions for php5.4 which throws the error:

    [Sun Aug 26 16:20:18 2012] [error] [client 127.0.0.1] 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(). in /home/ross/projects/interoccupy/wp-content/plugins/feedwordpress/admin-ui.php on line 53

    Please see about fixing this problem as the Fatal error: implies the module is using methods outdated for php5.3 (not just php5.4).

    Many thanks!

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

  2. 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.

  3. einsiol
    Member
    Posted 1 year ago #

    Same issue here,. This is a big nuisance and makes the plugin unusable if your server is using php 5.4. This should be fixed with an update to the plugin. I do not intent to make this change by my self. If anyone else that is working on the same WordPress site updates the plugin (updating is a security issue and cannot be avoided) the plugin would brake the site, unless this has been fixed.

  4. radgeek
    Member
    Plugin Author

    Posted 1 year ago #

    Hey all,

    This issue should be fixed in the most recent release of FeedWordPress, v. 2012.1212, available now at:

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

    Let me know if it fixes the problem you're encountering, or if there are any outstanding issues you're still seeing after making the upgrade.

    Thanks,
    -C

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic