Facebook Feed Grabber
Unable to activate plugin (2 posts)

  1. cablebreak
    Posted 3 years ago #

    I receive the following error when attempting to activate the plugin.

    ( ! ) Fatal error: Call-time pass-by-reference has been removed in C:\Dropbox\wamp\sites\2wr\wp-content\plugins\facebook-feed-grabber\facebook.php on line 486
    Call Stack
    # Time Memory Function Location
    1 0.0028 254088 {main}( ) ..\plugins.php:0
    2 1.1039 14424416 plugin_sandbox_scrape( ) ..\plugins.php:156


  2. bonnerl
    Plugin Author

    Posted 3 years ago #

    It looks you're on a newer version of PHP that has removed the way I reference a variable. If you don't mind changing two lines of code it should work if my small amount of research is accurate.

    Open up the facebook.php file in a text editor and edit line 486 which currently looks like:
    $content = $cache->theMagic(<strong>&</strong>$this, '/'. $feed_id .'/feed?date_format=U', (($cache_feed * 60)));

    Remove the "&" symbol that I bolded in that line and save the file.

    The next part is actually optional but doing it assuming it works should cut down on the amount of resources my plugin requires. Open up the cache.php file in a text editor on line 31 which should currently look like:
    function theMagic( $fb, $file, $expires ) {

    Add the "&" symbol in front of $fb so that it looks like theMagic( &$fb

    Let me know how that goes. Assuming that fixes the issue I will include that in the next version of my plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Facebook Feed Grabber
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.