WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Gestroud
    Member
    Posted 2 years ago #

    Hello,

    Web host recently updated to PHP 5.4 and I'm getting the following errors with FeedwordPress. 3 sites are not accessible on home page and admin.

    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 xxxxxx/wp-content/plugins/feedwordpress/admin-ui.php on line 53

    Thank you

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

  2. dmoutal
    Member
    Posted 2 years ago #

    Did you ever figure out a solution? I am having the same issue

  3. Gestroud
    Member
    Posted 2 years ago #

  4. dmoutal
    Member
    Posted 2 years ago #

    Thanks! I was hoping that you had managed to get feed wordpress working with php5.4 but your solution works just fine

  5. deleuzer
    Member
    Posted 2 years ago #

    I don't understand why this is marked resolved. The issue is clearly unresolved and will not be resolved until this plugin works on php5.4, the fact that a fatal error is being thrown means that this method of reference has already been depreciated in php5.3.

    I encourage the developer to make the necessary changes to this plugin to bring it up to date with php5.3.

    thanks!

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

  7. Gestroud
    Member
    Posted 1 year ago #

    I'll have to give this a shot. Thanks for taking the time to look into this, find a solution and share it.

  8. 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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic