Error fatal at activate plugin (7 posts)

  1. munta
    Posted 3 years ago #

    Fatal error: Call-time pass-by-reference has been removed in /site/wp-content/plugins/instapress/instagram.php on line 306


  2. Shawn Ann
    Posted 3 years ago #

    I'm getting the same error. It was working fine on my older server, but the plugin does not work on the new server.

  3. 3stripe
    Posted 3 years ago #

    Same here

  4. amiciamici
    Posted 3 years ago #

    In PHP 5.3.0 you will get a warning saying that "call-time pass-by-reference" is deprecated.

    If PHP version is >5.4.0 call-time pass-by-reference was removed, so using it will raise a fatal error.

    I hope in new version of plugin soon.

  5. dommalcolm
    Posted 3 years ago #

    Yeah, I just updated to PHP 5.4 and am getting this problem now. I can't find another instagram plugin that does what I liked about this one, so I'm also looking for a resolution to this.

  6. Benjamin Netter
    Posted 2 years ago #

    Still having the same problem. Solving it is easy though, following this thread on SO : http://stackoverflow.com/questions/8971261/php-5-4-call-time-pass-by-reference-easy-fix-available

    1°) You open instagram.php in the plugin's folder.
    2°) You're looking for the declaration of the method getFeedByUserId and getFeedByTag
    3°) You change $nextMaxId = 0 with &$nextMaxId = 0
    4°) Then, you look over instagram.php and widget.php and every time you see &$nextMaxId you change it for $nextMaxId (removing the ampersand)
    5°) Activate the plugin

    But it would be easier if the plugin was PHP5.4-ready

  7. hcthomas
    Posted 2 years ago #

    Thanks a lot for posting this information.

    I had the same problem, but instead of just changing &$nextMaxId to $nextMaxId I changed all instances of an argument with &$ to $ in instagram.php and widget.php.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Instapress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic