Jump to content

Install demonstration data


Recommended Posts

Hi,

 

In the sixth step of Installation I get the error: 

  1. Install demonstration data
An error occured during installation...

You can use the links on the left column to go back to the previous steps, or restart the installation process by clicking here.

 

 

I have read several posts, ones even as "Solved" but I cannot solve my problem.

 

I will thank any help.

Link to comment
Share on other sites

I am getting the same error, in the error_log file I see that the install log failed with:

 

PHP Fatal error:  Uncaught exception 'PrestaShopException' with message 'Property Order->id_address_delivery is empty' in /home/bmg/public_html/classes/ObjectModel.php:837

 

Trying to install Prestashop 1.6.0.6 on Centos 6.5, PHP 5.3.3.

 

As above, I have tried the solutions suggested by others however they didn't work as I don't have any file permission errors.

Link to comment
Share on other sites

I'm trying to diagnose the error, so though I would include the stack trace and my diagnosis so far:

[Sun May 18 08:33:10 2014] [warn] mod_fcgid: stderr: PHP Fatal error:  Uncaught exception 'PrestaShopException' with message 'Property Order->id_address_delivery is empty' in /home/bmg/public_html/classes/ObjectModel.php:837
[Sun May 18 08:33:10 2014] [warn] mod_fcgid: stderr: Stack trace:
[Sun May 18 08:33:10 2014] [warn] mod_fcgid: stderr: #0 /home/bmg/public_html/classes/ObjectModel.php(255): ObjectModelCore->validateFields()
[Sun May 18 08:33:10 2014] [warn] mod_fcgid: stderr: #1 /home/bmg/public_html/classes/order/Order.php(280): ObjectModelCore->getFields()
[Sun May 18 08:33:10 2014] [warn] mod_fcgid: stderr: #2 /home/bmg/public_html/classes/ObjectModel.php(596): OrderCore->getFields()
[Sun May 18 08:33:10 2014] [warn] mod_fcgid: stderr: #3 /home/bmg/public_html/classes/order/OrderHistory.php(439): ObjectModelCore->update()
[Sun May 18 08:33:10 2014] [warn] mod_fcgid: stderr: #4 /home/bmg/public_html/install/classes/xmlLoader.php(442): OrderHistoryCore->add(true, false)
[Sun May 18 08:33:10 2014] [warn] mod_fcgid: stderr: #5 /home/bmg/public_html/install/classes/xmlLoader.php(310): InstallXmlLoader->createEntity('order_history', 'order_history_2', 'OrderHistory', Array, Array)
[Sun May 18 08:33:10 2014] [warn] mod_fcgid: stderr: #6 /home/bmg/public_html/install/classes/xmlLoader.php(214): InstallXmlLoader->populateEntity('order_history')
[Sun May 18 08:33:10 2014] [warn] mod_fcgid: stderr: #7 /home/bmg/public_html/install/models/install.php(72 in /home/bmg/public_html/prestashop/classes/ObjectModel.php on line 837

It looks to me that the error is happening while trying to load the demonstration data into the order_history table.  The error complains that the field id_address_delivery is missing from the data that is being loaded, which is strange because the table order_history shouldn't contain that field anyway.  It looks to me that at stack trace #1 the incorrect class is being loaded classes/order/Order.php when it should be classes/order/OrderHistory.php.

 

I am new to PrestaShop, so my diagnosis might be quite off!  Can someone confirm if this is what is happening, and also what it is about my host environment that might be causing that?

 

Thanks

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

  • 1 month later...

Hello,

 

Here is the exact error I am seeing:

 

[22-Jun-2014 14:50:00 Europe/London] PHP Fatal error:  Uncaught exception 'PrestaShopException' with message 'Property Order->id_address_delivery is empty' in /chroot/home/demouser/demousert.domain.uk/$
Stack trace:
#0 /chroot/home/demouser/demousert.domain.uk/html/classes/ObjectModel.php(260): ObjectModelCore->validateFields()
#1 /chroot/home/demouser/demousert.domain.uk/html/classes/order/Order.php(280): ObjectModelCore->getFields()
#2 /chroot/home/demouser/demousert.domain.uk/html/classes/ObjectModel.php(605): OrderCore->getFields()
#3 /chroot/home/demouser/demousert.domain.uk/html/classes/order/OrderHistory.php(441): ObjectModelCore->update()
#4 /chroot/home/demouser/demousert.domain.uk/html/install/classes/xmlLoader.php(445): OrderHistoryCore->add(true, false)
#5 /chroot/home/demouser/demousert.domain.uk/html/install/classes/xmlLoader.php(310): InstallXmlLoader->createEntity('order_history', 'order_history_2', 'OrderHistory', Array, Array)
#6 /chroot/home/demouser/demousert.domain.uk/html in /chroot/home/demouser/demousert.domain.uk/html/classes/ObjectModel.php on line 846
Link to comment
Share on other sites

  • 1 month later...

Yeap, I have same problem with 1.6.0.8 version. Previous version were fine. I deleted site , dropped databases and everything from fresh clean installation. Using paid professional web space provider, they hav always things up to date.

My install crashed exactly on same spot.

Anybody sollution? 

Link to comment
Share on other sites

  • 3 months later...
  • 3 weeks later...

Same problem here, installing on Centos6 ans using a remote mysql connection. To bypass this issue, I commented this line in install/init.php define('_PS_INSTALL_FIXTURES_PATH_', _PS_INSTALL_PATH_.'fixtures/');

So no sample products or categories were installed and I will have to configure everything from scratch.

Link to comment
Share on other sites

  • 2 years later...

Change the line in install/fixtures/apple/data/order_history.xml 

 

from 

    <order_history id="order_history_1" id_employee="0" id_order="1" id_order_state="Awaiting_cheque_payment"/>
 

to

    <order_history id_order_history="1" id_employee="0" id_order="1" id_order_state="Awaiting_cheque_payment"/>
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...