Jump to content

Fatal Error when loading store page


Endless hair

Recommended Posts

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

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+

  1. Open config/defines.inc.php
  2. On or around line 28 you will find this line
    define('_PS_MODE_DEV_', false);
  3. Change that line to read
    define('_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

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

  • 3 months later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...