Can't install the demo

  • Posts: 22
  • Thank you received: 0
8 years 7 months ago #253112

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.3
-- PHP version -- : 7
-- Error-message(debug-mod must be tuned on) -- : Warning: fopen(../tmp/dataexample/script.sql): failed to open stream: No such file or directory in /opt/lampp/htdocs/hikashop/administrator/components/com_hikashop/controllers/update.php on line 439
Can't open file /tmp/dataexample/script.sql

i'm working on Localhost, Ubuntu 16 with Xampp. The install itself works fine, but I can't install the sample data:

Warning: fopen(../tmp/dataexample/script.sql): failed to open stream: No such file or directory in /opt/lampp/htdocs/hikashop/administrator/components/com_hikashop/controllers/update.php on line 439
Can't open file /tmp/dataexample/script.sql

During the install of Hikashop I set demo data to yes, and finished the installation. This install was done through the JED.
I trashed the Joomla site, build a new one, downloaded the tar.gz, same error.

Last edit: 8 years 7 months ago by josflachs.

Please Log in or Create an account to join the conversation.

  • Posts: 83932
  • Thank you received: 13588
  • MODERATOR
8 years 7 months ago #253169

Hi,

This indicates that HikaShop couldn't copy the zip file to the tmp folder or that it couldn't extract it to the tmp folder.
So the problem probably comes from the access rights of your folders.
I would recommend to check on that.

Please Log in or Create an account to join the conversation.

  • Posts: 22
  • Thank you received: 0
8 years 7 months ago #253330

I changed the TMP accces rights to: Owner: www-data (create and delete), Group: myself (create and delete) and Others (read only).
Inside TMP is dataexample.zip with the following properties: Owner: Me (c+d), Group: nogroup (c+d), Others (r)

What are the correct access rights, and how can I install the data in an existing hikashop?

Last edit: 8 years 7 months ago by josflachs.

Please Log in or Create an account to join the conversation.

  • Posts: 83932
  • Thank you received: 13588
  • MODERATOR
8 years 7 months ago #253341

Hi,

The correct access rights depend on what is the user that is going to write the files in the concerned folders.
So if you don't have the FTP layer of Joomla activated, it's the user attributed to your website by your web server (apache ?) user. If you do, then it's the user attributed to your user account by your FTP server.
It might be www-data, it might be something else. And if the user is not in the group of the www-data then it won't be able to write in your folder if you set the access rights like you said.
Also, make sure that you check the permissions of the /tmp folder of your server and the tmp folder of Joomla as they might be different. Both need to be writable.

Finally, if you already have HikaShop installed, you can use the URL:

http://yourwebsite.com/administrator/index.php?option=com_hikashop&ctrl=update&task=wizard
in order to access the wizard screen again and try again to load the demo data.

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum