WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Facebook Feed Grabber] Unable to activate plugin

[Plugin: Facebook Feed Grabber] Unable to activate plugin

  • cablebreak

    @cablebreak

    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

    http://wordpress.org/extend/plugins/facebook-feed-grabber/

Viewing 1 replies (of 1 total)
  • Plugin Author bonnerl

    @bonnerl

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Facebook Feed Grabber] Unable to activate plugin’ is closed to new replies.