I got this error after install and first step conf

  • Posts: 7
  • Thank you received: 0
10 years 1 week ago #211014

-- HikaShop version -- : HikaShop Starter 2.5.0
-- Joomla version -- : Joomla! 3.4.3 Stable [ Ember ] 2-July-2015 16:00 GMT
-- PHP version -- : 5.5.26
-- Error-message(debug-mod must be tuned on) -- : Warning: fopen(../tmp/dataexample/script.sql): failed to open stream: No such file or directory in /(..)/administrator/components/com_hikashop/controllers/update.php on line 432
Can't open file

Hi everybody, I'm new here


I got this error after install and first step configuration:

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

Site seems to be running okay, I was just wondering if it was okay to continue this way?

Regards,
Louis

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

  • Posts: 26264
  • Thank you received: 4043
  • MODERATOR
10 years 1 week ago #211022

Hi,

You choose the install the "sample data" in the HikaShop wizard but it looks like the script couldn't download or extract the sample data zip file.
It could be a permission issue with your "tmp" folder or some restrictions in your server which refuse the download.

First, you should check the permissions in your Joomla System Information > Directory Permissions.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 4
  • Thank you received: 0
9 years 10 months ago #215407

Hi, I have the same problem on J3.4.4 and hikashop_starter_v2.6.0 (Can't open file /tmp/dataexample/script.sql).
The permissions are ok (all green).
After the error page, in the tmp folder there is a file dataexample.zip, but it's empty (0 kb).
Any other suggestion?
Thank you!

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

  • Posts: 84233
  • Thank you received: 13674
  • MODERATOR
9 years 10 months ago #215411

Hi,

As we're not able to reproduce the problem, it must be something specific to your websites.
If dataexample.zip is 0, it means that your server was not able to download the file from our website.
Manually download the file here:

http://www.hikashop.com/sampledata/dataexample.zip
Then, upload it via FTP in your website's tmp folder.
Then, edit the file administrator/components/com_hikashop/controllers/update.php and change the line:
$this->modify[] = 'process_data_save';
to:
$this->display[] = 'process_data_save';
And finally, open the URL
http://mywebsite.com/administrator/index.php?option=com_hikashop&ctrl=update&task=process_data_save&step=2
with your browser and that will skip the download of the sample data package and directly extract its files and hopefully, it should work.

The following user(s) said Thank You: conte64, pouyan

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

  • Posts: 4
  • Thank you received: 0
9 years 10 months ago #215455

Hi! Thank you for your quick reply!

As soon as I posted here, I tried to download the zip and manually expand it in tmp folder before to run the wizard.
Then I run the wizard again, it found the dataexample folder and completed succesfully.

If you want to try to reproduce the problem, please note that I'm using xampp on my PC for tests.

Thank you very much.
Regards

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

  • Posts: 178
  • Thank you received: 5
9 years 9 months ago #219892





Got error Can't open file /tmp/dataexample/script.sql
What can I do?

Attachments:

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

  • Posts: 178
  • Thank you received: 5
9 years 9 months ago #219893

Chang File Permissions of Dataexample folder to 777 and it works.
But there is no category or product images now, only one barcode image.

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

  • Posts: 84233
  • Thank you received: 13674
  • MODERATOR
9 years 9 months ago #219915

Hi,

You probably have a similar issue with the folder /images/com_hikashop/upload/ where the images are supposed to be stored in.
You can manually copy them from the dataexample/upload folder to there.

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

  • Posts: 1
  • Thank you received: 1
9 years 6 months ago #228090

I got the same error. Seems the server storing the zip file is running incredibly slow. I have a 150Mbps connection and I was getting about 100KB/s.

dataexample.zip 4%[ ] 952.78K 97.5KB/s eta 3m 11s

If I change this line

$urlsrc = "http://www.hikashop.com/sampledata/dataexample.zip"; //server URL
to
$urlsrc = "http://<my other http server>/sampledata/dataexample.zip"; //server URL

with the dataexample.zip downloaded to my other http server, it completes just fine. There is clearly a speed issue with "hikashop.com".

The following user(s) said Thank You: pouyan

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

  • Posts: 84233
  • Thank you received: 13674
  • MODERATOR
9 years 6 months ago #228096

Hi,

We're currently working on migrating our server on a new one and it will be way more faster in the future. Thank you for your report.

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

Time to create page: 0.138 seconds
Powered by Kunena Forum