I'm in the process of updating a Magento site and ran into a error that is causing me to delay pushing this to live.
PHP error:
PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /skin/frontend/default/galadrugstore/css/style.php on line 62
Style.php line 62:
$content = preg_replace('/\$([\w]+)/e','$0',@file_get_contents($stylesheet));
I have tried the following with out any traction, as a last resort I wanted to see if someone could assist before I lose my mine.. lol
$content = preg_replace_callback('/\$([\w]+)', function($match) { return CallFunction($match[0]); }, @file_get_contents($stylesheet));
$content = preg_replace_callback('/\$([\w]+)/', function($match) { return CallFunction($match[0]); }, @file_get_contents($stylesheet));
$content = preg_replace_callback('/\$([\w]+)/', function($match) { return $match[0]; }, @file_get_contents($stylesheet));
I feel I'm really close but something is just not right, any assistance with this issue would be awesome.
Big Thanks in Advance!