Jump to content

Install error at 45% on Configure shop information on Prestashop 1.6.0.7


Recommended Posts

Hi,

 

I'm having an error during installation at 45%. This is the Configure shop information stage.

 

I've tried to reinstall it again, after deleted the tables in the database, and also tried to create a new database but the error always comes up at 45%.

 

I've successfully installed 1.5 before on the same server with no issues.

 

Any idea what causes it?

 

Thanks

Link to comment
Share on other sites

Some investigation results...

FireBug:

URL                                                                                       Status

GET index.php?configureShop=true&_=1403169508793    500 Internal Server Error

 

And from error log:
[19-Jun-2014 12:18:41] PHP Parse error:  syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /var/www/domain.com/classes/controller/AdminController.php on line 3101

 

Hope this helps.

 

Thank You.

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

Changing
$fields = $class::$definition['fields'];

to
$fields = $class->$definition['fields'];

in /classes/controller/AdminController.php on line 3101

fixes the problem with installation.

Dear developers, is this correct solution?

Link to comment
Share on other sites

Changing

$fields = $class::$definition['fields'];

to

$fields = $class->$definition['fields'];

in /classes/controller/AdminController.php on line 3101

fixes the problem with installation.

 

Dear developers, is this correct solution?

 

Thanks for this.

 

Yes, it fixes the problem in a way that the installation will finish, but then for me both the front and back office dies with an Internal Server Error. It might be something else, related to the server setting.

 

Let's see what the others say.

Link to comment
Share on other sites

but then for me both the front and back office dies with an Internal Server Error.

 

Works fine for me. Default back and front are ok.

 

Test other solution...

 

Replace this:

$class = get_class($object);

$fields = $class::$definition['fields'];

 

With this:

$class_vars = get_class_vars(get_class($object));

$fields = $class_vars['fields'];

 

Works fine for me too.

 

P.S.

My PHP Version: 5.2.6-1+lenny13

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

Hello everyone, please enable mode_dev on your website and provide me the install URL through PM. We will take a look into this issue asap.

 

Thank you! 

 

To enable mode_dev follow the instructions below.

 open: config/defines.inc.php

 
find this line: define('_PS_MODE_DEV_', false);
change to look like this: define('_PS_MODE_DEV_', true);
Link to comment
Share on other sites

Changing

$fields = $class::$definition['fields'];

to

$fields = $class->$definition['fields'];

in /classes/controller/AdminController.php on line 3101

fixes the problem with installation.

 

Dear developers, is this correct solution?

 

Hi,

 

Thank you for your feedback. I wonder why this function from an admin controller is called while installing. And I wonder which $class is causing this !

 

Can you please mail me a temporary access to your ftp so that I can run few tests on it ? [email protected]

 

Best regards

Link to comment
Share on other sites

Works fine for me. Default back and front are ok.

 

Test other solution...

 

Replace this:

$class = get_class($object);

$fields = $class::$definition['fields'];

 

With this:

$class_vars = get_class_vars(get_class($object));

$fields = $class_vars['fields'];

 

Works fine for me too.

 

P.S.

My PHP Version: 5.2.6-1+lenny13

 

 

Hi,

 

Thank you for your fix but I believe by doing this , one level of the array is missing in your code, ie 'definition'.

 

Regards

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

Works fine for me. Default back and front are ok.

 

Test other solution...

 

Replace this:

$class = get_class($object);

$fields = $class::$definition['fields'];

 

With this:

$class_vars = get_class_vars(get_class($object));

$fields = $class_vars['fields'];

 

Works fine for me too.

 

P.S.

My PHP Version: 5.2.6-1+lenny13

 

Thanks, this one worked! :-)

Link to comment
Share on other sites

Hi

 

The fix solves the 45% issue, but now I get stuck at 67%.

 

Install modules

 

  1. undefined
  2. undefined
  3. undefined
  4. undefined
  5. undefined
  6. undefined
  7. undefined
  8. undefined
  9. undefined
  10. undefined
  11. undefined
  12. undefined
  13. undefined
  14. undefined
  15. undefined
  16. undefined
  17. undefined
  18. undefined
  19. undefined
  20. undefined
  21. undefined
  22. undefined
  23. undefined
  24. undefined
  25. undefined
  26. undefined
  27. undefined
  28. undefined
  29. undefined
  30. undefined
  31. undefined
  32. undefined
  33. undefined
  34. undefined
  35. undefined
  36. undefined
  37. undefined
  38. undefined
  39. undefined
  40. undefined
  41. undefined
  42. undefined
  43. undefined
  44. undefined
  45. undefined
  46. undefined
  47. undefined
  48. undefined
  49. undefined
  50. undefined
  51. undefined
  52. undefined
  53. undefined
  54. undefined
  55. undefined
  56. undefined
  57. undefined
  58. undefined
  59. undefined
  60. undefined
  61. undefined
  62. undefined
  63. undefined

 

Any ideas?

 

I'm using Windows Server 2003.

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

  • 4 months later...
I noticed that Prestashop Installation Error at x % still is a popular topic. As a heavy user / developer for own use I have done quite some installs (versions 1.5 and 1.6 in dutch language). And every now and then I am also facing the Prestashop Installation Error at x %.

 

I can agree with the common opinion that it is not a bug in Prestashop (however, a more clear error message and error log would be nice). In case the error is not caused by permissions, the error is caused by server settings. Difficulty is that it is not always caused by server errors, so there is not always usefull info in the error logs. 

 

What I noticed today is:

 

- SELinux might have an influence. Disabling SELinux gave a different behaviour (more progress in the installation process). Do not forget to enable SELinux again.

- Permission 777 on all folders gave a different behaviour (more progress in the installation process). Do not forget to change the permissons back.

- And most striking: after a partial installation it is worth trying to work with Prestashop. I ended up with a perfectly working Prestashop (including 63 installed modules) while the installation stopped at 63% during the installation of the modules. Removing the install folder and renaming the admin folder was enough to have a full functional Prestashop install.

Link to comment
Share on other sites

I am installing prestashop 1.6.0.9 on cpanel and have this same problem right now.

 

Is there any actual solution to fix this error?

 

It stopped at 45% and it say configure shop information bla..bla.. Without any actual information where the problem lies

 

After many try i finally give up and tried installing lower version of prestashop (1.4.7.3) and it succes.

 

I still hope i will be able to install the newest version of prestashop.

 

It would be great if someone will answer my question

 

Thanks

Link to comment
Share on other sites

  • 4 weeks later...
  • 4 years later...
  • 7 months later...

Hi,

I know this is an old issue but I came across this 45% error - configure shop information while installing Prestashop 1.6.1.18 and wanted to share what fixed my issue.
I did everything and reverted changes, but no matter if I made fresh installation with new database from scratch, the issue was still there.
Fortunately I had made database backups (mysql) and after comparing and trying all steps again I found that sql_mode was messing up my Prestashop.

So by running set global sql_mode=''; the issue was gone, and could complete the installation. No sure if this needs to be done inside the database you are using for PS. I had several databases, so before setting sql_mode I first run mysql> use prestashop. 
We should find out which value from sql_mode is breaking the installation, but it's worthy trying while you spot it. I noticed that 232 tables where created when reaching 45% and 268 total when installation is 100%

Hope this helps . I spent the whole day to figure out what was going on, but finally worked. 

Cheers

P.S. I also had some issues posted in this topic like installation fails when selecting a different Country. I normally install USA and then import lang packages I need.

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