Support » Plugins and Hacks » Add From Server » Call-time pass-by-reference has been removed

Call-time pass-by-reference has been removed

  • This did not start out as a problem with your plugin but ended up that way. My site is http://effortchurch.info/effort2/. I use a plugin called Picasa Express to insert pictures. A week ago my site disappeared over night and when it reappeared there were error codes showing at the top of each posting.

    “*Warning*: preg_replace_callback() [function.preg-replace-callback
    Requires argument 2,
    to be a valid callback in
    on line *3115″

    I contacted the plugin author and he could not explain it. I contacted my web host (1and1.com) and they advised:

    “Please be informed that PHP version supported in the server was already upgraded to 5.4. However, the /effort2 folder in your webspace is still running PHP 5.2. Please edit the .htaccess file found in /effort2 directory and insert the script below on the very first line to parse PHP to 5.4 and to fix the error displaying in your website.

    AddHandler x-mapp-php6 .php”

    I added that code and the error messages went away … but I soon discovered a different problem. When I tried to log in to the dashboard I got:

    “*Fatal error*: Call-time pass-by-reference has been removed in
    on line *137″

    Called webhost again and they said they could not help with that one but noted that it pointed to a different plugin – yours.

    I deactivated your plugin and all seems well.

    Don’t know if this is something you can fix but perhaps information will be useful to someone else.



  • The topic ‘Call-time pass-by-reference has been removed’ is closed to new replies.
Skip to toolbar