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

    (@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…

    Thread Starter pwright2

    (@pwright2)

    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.