RoberASolas Posted January 4, 2010 Share Posted January 4, 2010 Hi All, happy new year!I have downloaded the last version of Prestashop and I have installed only one module in order to try it: mailalerts 2.2, because it has an option to email the customer when an item is available again. This is a great option!All the module works fine, but when a registered user clic in "My Alerts", the FO show this error:Warning: require_once(/home/shopicar/public_html/asolas/tienda/config/../classes/MailAlerts.php) [function.require-once]: failed to open stream: No such file or directory in /home/shopicar/public_html/asolas/tienda/config/config.inc.php on line 22Fatal error: require_once() [function.require]: Failed opening required '/home/shopicar/public_html/asolas/tienda/config/../classes/MailAlerts.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/shopicar/public_html/asolas/tienda/config/config.inc.php on line 22I don´t understand what can it means. Maybe this module is not compatible with my Prestashop 1.1.0.5? Please, help me.Thanx. Link to comment Share on other sites More sharing options...
rocky Posted January 5, 2010 Share Posted January 5, 2010 This is a bug that has been fixed in the next release of Prestashop. To fix it, add the following on line 5 of modules/mailalerts/myalerts.php: include_once(dirname(__FILE__).'/mailalerts.php'); Link to comment Share on other sites More sharing options...
RoberASolas Posted January 5, 2010 Author Share Posted January 5, 2010 Hi, thanx for your quickly answer.Now I can see the My Alerts page, but when i try to delete a subscription to an alert the site gives me this error:Warning: Missing argument 4 for MailAlerts::deleteAlert(), called in /home/shopicar/public_html/asolas/tienda/modules/mailalerts/myalerts.php on line 17 and defined in /home/shopicar/public_html/asolas/tienda/modules/mailalerts/mailalerts.php on line 449Do you know why? Link to comment Share on other sites More sharing options...
rocky Posted January 5, 2010 Share Posted January 5, 2010 I've never seen that message before, but I haven't tried to get the module to work in v1.1. I'm using v1.2.5. From the message, it seems that the fourth parameter $id_product_attribute is missing on line 17 of myalerts.php. Make sure that it is the following: MailAlerts::deleteAlert($id_customer, 0, $id_product, $id_product_attribute); Link to comment Share on other sites More sharing options...
RoberASolas Posted January 5, 2010 Author Share Posted January 5, 2010 Oh no, i only have this code:MailAlerts::deleteAlert($id_customer, $id_product, $id_product_attribute);So i add this " 0," and it starts to work fine. Now i don´t get the error message.I have made some subscriptions and delete after and all works fine now.Really thankful.Rober. Link to comment Share on other sites More sharing options...
Recommended Posts