Originally Posted by
shrimp-gumbo-mmmhhh
Okay..... Looking at the code I now remember that I was getting a PHP error every time the website was being hit and was drowning in log error messages. The message said something about a future error of a same named class calling a same name function. So I renamed function save_cart() to save_cart_now() in class.savecart.php and then in the config.savecart.php :
$autoLoadConfig[90][] = array('autoType'=>'classInstantiate','className'=>'save_cart','objectName'=>'sav e_cart');
Changed to:
$autoLoadConfig[90][] = array('autoType'=>'classInstantiate','className'=>'save_cart','objectName'=>'sav e_cart_now');
And the error messages stopped. Is there something else that I am missing to change the function name from the class name successfully? Thank you!
I'm not at all familiar with the plugin you've mentioned here, but will just comment on the bold part...
This indicates a (very) old style code in the class file (in your case, class.savecart.php) which looks something like:
Code:
class saveCart {
function saveCart() {
}
}
and should be changed to
Code:
class saveCart {
function __construct() {
}
}
Changing what you've changed in the auto_loader will definitely stop the plugin from working.
Bookmarks