WordPress.org

Ready to get started?Download WordPress

Forums

Instapress
Error fatal at activate plugin (7 posts)

  1. munta
    Member
    Posted 1 year ago #

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

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

  2. Shawn Ann
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    Same here

  4. amiciamici
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 11 months 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
    Member
    Posted 10 months 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

About this Topic