WordPress.org

Ready to get started?Download WordPress

Forums

Picasa and Google Plus Express
[resolved] Warning: preg_replace_callback() (3 posts)

  1. pwright2
    Member
    Posted 1 year ago #

    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/

    -----Paul------

    http://wordpress.org/extend/plugins/picasa-express-x2/

  2. gjanes
    Member
    Plugin Author

    Posted 1 year ago #

    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...

  3. pwright2
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.