Support » Plugin: Picasa and Google Plus Express » Warning: preg_replace_callback()

  • Resolved pwright2


    Been using Picasa Express for a while Great plugin. Two nights back our site disappeared and the Site Host said they had a teeny-tiny technical problem and the site would be back soon. And it was. But now I have the following error at the top of each post. Plugin seems to work ok anyhow. Any idea of the cause/cure?

    Been using Warning: preg_replace_callback() [function.preg-replace-callback]: Requires argument 2,

    Site is


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author gjanes


    Hmm, I’m really not sure what could be the cause, but I would suggest installing a fresh copy of the plugin to see if this problem is resolved. Perhaps the plugin itself because corrupted in whatever technical problem they encountered.

    I’m wondering if your host had to revert to an older version of PHP. The second argument is a valid callback, but it may require PHP 5 or 5.3 to support the syntax – I’m not certain when the syntax requirement may have been added.

    Since it worked perfectly before your hosting provider’s hiccup, it may be that they had to restore to an older server or a different machine with a different version of PHP that perhaps isn’t supported.

    As a temporary fix you could also clear any caption css or caption style settings in the plugin until your hosting provider gets their issues figured out…

    Contacted my host ( They replied:

    “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 did that and it fixed the problem. It was another day before I discovered it had caused 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 them back and they said they do not provide support for .htaccess issues. (!). But they did point out that the error was pointing to a different plugin.

    I deactivated add-from-server and now can access dashboard and still don’t have the preg-replace error showing.

    Just in case this might help someone else. Now I need to explain this to the add-from-server developer.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning: preg_replace_callback()’ is closed to new replies.