Jump to content

[solved] Fatal error in live edit (prestashop 5.1 on a synology nas)


Recommended Posts

please be gentle, it's my first post.

 

i have just installed prestashop on a synology nas.

everything is looking great.

 

When i use Live edit, i can move / remove anything on the homepage, but if i click on any link to see a sub page i get a white webpage just saying fatal error.

 

how can i get more information to see what the issue actually is (logs etc)

Link to comment
Share on other sites

turn error reporting in your prestashop

 

For PrestaShop v1.4 through v1.5.2
  • Open config/config.inc.php
  • On or around line 29 you will find this line
    @ini_set('display_errors', 'off');
  • Change that line to read
    @ini_set('display_errors', 'on');

For PrestaShop v1.5.3+

  • Open config/defines.inc.php
  • On or around line 28 you will find this line
    define('_PS_MODE_DEV_', false);
  • Change that line to read
    define('_PS_MODE_DEV_', true);

 

 

 

you can also check php error log (if you are able to)

Link to comment
Share on other sites

thanks for your reply i cannot see how to turn the reporting on. i can see 'logs' in advanced parameters, but there are no entries. do you know where the switch is?

 

ignore that i see you've put o need to edit those files. i'll try that now.

Edited by wilgartw (see edit history)
Link to comment
Share on other sites

here's the first page.

 

 

Array

(

[0] => Array

(

[file] => /volume1/web/prestashop/classes/controller/FrontController.php

[line] => 400

[function] => displayError

[class] => ToolsCore

[type] => ::

[args] => Array

(

)

 

)

 

[1] => Array

(

[file] => /volume1/web/prestashop/controllers/front/ProductController.php

[line] => 79

[function] => init

[class] => FrontControllerCore

[object] => ProductController Object

(

[product:protected] =>

[category:protected] =>

[errors] => Array

(

)

 

[iso] =>

[orderBy] =>

[orderWay] =>

[p] =>

[n] =>

[auth] =>

[guestAllowed] =>

[authRedirection] =>

[ssl] =>

[restrictedCountry:protected] =>

[maintenance:protected] =>

[display_column_left] => 1

[display_column_right] => 1

[nb_items_per_page] =>

[context:protected] => Context Object

Link to comment
Share on other sites

sorry I spoke too soon.

 

it is actually worse!

 

on testing it today, the homepage live edit now will not allow me to move or delete any modules. and if I click on a link it takes me to the page, but the live shop version of that page not the live edit version.....

 

I am very confused.

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...