Endless hair Posted January 7, 2017 Share Posted January 7, 2017 Hello I was trying to add nostro to my prestashop for advertising using code however I did something wrong and now when I try to go to my shop I get this message: Fatal error: require_once(): Failed opening required '/homepages/11/d656141772/htdocs/clickandbuilds/PrestaShop/MyeCommerce/config/defines.inc.php' (include_path='.:/usr/lib/php7.0') in /homepages/11/d656141772/htdocs/clickandbuilds/PrestaShop/MyeCommerce/config/config.inc.php on line 33 Can anyone help me with this? It would be greatly appreciated. Thank you Endless Link to comment Share on other sites More sharing options...
shokinro Posted January 8, 2017 Share Posted January 8, 2017 If you have removed the code you added that caused the issue then the issue should disappear. Make sure you have removed the code correctly. I suggest you restore the original version of the file you have changed. Link to comment Share on other sites More sharing options...
Endless hair Posted January 8, 2017 Author Share Posted January 8, 2017 HI, thank you for your help. This is so frustrating. I can't access the back or front end of my webpage:( Your reply makes sense but how do I restore the original version of the file that was changed? Jen Link to comment Share on other sites More sharing options...
shokinro Posted January 8, 2017 Share Posted January 8, 2017 You know (remember) which file you changed? Restore it from original package of prestashop. Link to comment Share on other sites More sharing options...
Endless hair Posted January 8, 2017 Author Share Posted January 8, 2017 First the head (?) header.tpl I inserted the code from Nosto here as instructed but resulted in a 500 error code. Here on Prestashop I read how to correct this error which I did: (For PrestaShop v1.5.3+ Open config/defines.inc.php On or around line 28 you will find this linedefine('_PS_MODE_DEV_', false); Change that line to readdefine('_PS_MODE_DEV_', true); Then I got the error : Fatal error: require_once(): Failed opening required '/homepages/11/d656141772/htdocs/clickandbuilds/PrestaShop/MyeCommerce/config/defines.inc.php' (include_path='.:/usr/lib/php7.0') in /homepages/11/d656141772/htdocs/clickandbuilds/PrestaShop/MyeCommerce/config/config.inc.php o Now this is the recent error but I don't know why the change in error? Parse error: syntax error, unexpected '@' in /homepages/11/d656141772/htdocs/clickandbuilds/PrestaShop/MyeCommerce/config/defines.inc.php on line 34 ?????? Jen Link to comment Share on other sites More sharing options...
Endless hair Posted January 10, 2017 Author Share Posted January 10, 2017 BTW: I have resolved this, it turns out that somehow header.php was missing (?). I reinstalled and my website is up and running again:):) But the original issue remains. How can I add the code from Nosto to my page to enable Nosto??? Below are the directions from Nosto: Adding an embed script is the key feature which enables the data exchange between the target site and Nosto. The script needs to be present on every page and needs to be executed on each page load similarly to analytics scripts such as Google’s, hence we suggest to include it in a main page template, if one is available. The script should be loaded before the context segment of the page, which is why we recommend to place the code in <head> section of the site or at least on top of the <body> so that it is loaded before a page renders on a browser. I used Contentbox and although the box is in the header it is empty. NO code. and Nosto is not on my page. Does anyone know how this is done?? Thank you! Jen Link to comment Share on other sites More sharing options...
reFix.dk Posted April 24, 2017 Share Posted April 24, 2017 Hi, I have some problems with loading my page too, but it's only when I add some product to my bag, then go to checkout, fill out the formula, when continuing I'm getting this fatal error:Fatal error: Uncaught Error: Access to undeclared static property: Validate::$data in /var/www/hbconnection.dk/public_html/classes/ObjectModel.php:1067 Stack trace: #0 /var/www/hbconnection.dk/public_html/classes/Address.php(227): ObjectModelCore->validateController(true) #1 /var/www/hbconnection.dk/public_html/controllers/front/AddressController.php(126): AddressCore->validateController() #2 /var/www/hbconnection.dk/public_html/controllers/front/AddressController.php(111): AddressControllerCore->processSubmitAddress() #3 /var/www/hbconnection.dk/public_html/classes/controller/Controller.php(171): AddressControllerCore->postProcess() #4 /var/www/hbconnection.dk/public_html/classes/Dispatcher.php(373): ControllerCore->run() #5 /var/www/hbconnection.dk/public_html/index.php(28): DispatcherCore->dispatch() #6 {main} thrown in /var/www/hbconnection.dk/public_html/classes/ObjectModel.php on line 1067 Is anyone able to help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now