Title: Warning: preg_replace_callback()
Last modified: August 21, 2016

---

# Warning: preg_replace_callback()

 *  Resolved [pwright2](https://wordpress.org/support/users/pwright2/)
 * (@pwright2)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/warning-preg_replace_callback/)
 * 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 [http://effortchurch.info/effort2/](http://effortchurch.info/effort2/)
 * —–Paul——
 * [http://wordpress.org/extend/plugins/picasa-express-x2/](http://wordpress.org/extend/plugins/picasa-express-x2/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [gjanes](https://wordpress.org/support/users/gjanes/)
 * (@gjanes)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/warning-preg_replace_callback/#post-3676729)
 * 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…
 *  Thread Starter [pwright2](https://wordpress.org/support/users/pwright2/)
 * (@pwright2)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/warning-preg_replace_callback/#post-3676769)
 * Contacted my host (1and1.com) 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
    */homepages/41/
   d352980381/htdocs/effort2/wp-content/plugins/add-from-server/class.add-from-server.
   php* 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.

 * ![](https://s.w.org/plugins/geopattern-icon/picasa-express-x2.svg)
 * [Picasa and Google Plus Express](https://wordpress.org/plugins/picasa-express-x2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/picasa-express-x2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/picasa-express-x2/)
 * [Active Topics](https://wordpress.org/support/plugin/picasa-express-x2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/picasa-express-x2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/picasa-express-x2/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [pwright2](https://wordpress.org/support/users/pwright2/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/warning-preg_replace_callback/#post-3676769)
 * Status: resolved