Page 4 of 24

Re: [RELEASED] Export/Import tool for OpenCart 1.5.5.x

Posted: Thu May 02, 2013 9:25 pm
by gemini99
JNeuhoff wrote:
This is a known issue which we will address in the next release of the Export/Import tool.
Thank you for fast reply

// Jonas

Re: [RELEASED] Export/Import tool for OpenCart 1.5.5.x

Posted: Fri May 03, 2013 4:04 pm
by mettty
mettty wrote:
mettty wrote:Hi,
I have the same problem as qaso. There are restrictions on my webhost, so I can't export the file. But I want to try, if I can import the file. And for that I need at least one sample.
Someone who can share with me?

Thanks.
Maybe I found the problem with restrictions. My webhost don't allow me use functions sys_get_temp_dir() and tempnam(), which needs server root temp folder. So tool can't make the export file. I tried to modify PHPExcel files to set tmp folder manually (like 'data/folder/tmp') without result.
Problem is in opencartfolder/system/PHPExcel/classes/PHPExcel/Shared/file.php line 106 function sys_get_temp_dir()
and in opencartfolder/system/PHPExcel/classes/PHPExcel/Writer/Excel2007.php line 205.

Please help, if someone have any idea how to edit this code. Could not imagine how to use opencart without this tool. ???
I'm like a spammer, but I solved it. ;D Problem is in Excel2007, which (I don't know why) has another method for temp directories on server then Excel5. So back to Excel5.

So if you have the same problem as qaso:
qaso wrote:I have installed your newest version. It still doesnt work. Here is log:

Code: Select all

2013-02-21 14:16:50 - PHP Warning:  realpath() [<a href='function.realpath'>function.realpath</a>]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/data/web/filatelista.eu/:/data/f/i/filatelista.eu/:/usr/php53/lib/php/:/apachetmp/) in /data/f/i/filatelista.eu/web/system/PHPExcel/Classes/PHPExcel/Shared/File.php on line 136
2013-02-21 14:16:50 - PHP Warning:  tempnam() [<a href='function.tempnam'>function.tempnam</a>]: open_basedir restriction in effect. File() is not within the allowed path(s): (/data/web/filatelista.eu/:/data/f/i/filatelista.eu/:/usr/php53/lib/php/:/apachetmp/) in /data/f/i/filatelista.eu/web/system/PHPExcel/Classes/PHPExcel/Writer/Excel2007.php on line 205
2013-02-21 14:16:50 - PHP Exception:  Could not close zip file php://output. in /data/f/i/filatelista.eu/web/system/PHPExcel/Classes/PHPExcel/Writer/Excel2007.php on line 378
and your older version of Import/Export tool was ok, just do this:
in /admin/model/tool/export.php
edit line 2613 from

Code: Select all

header('Content-Disposition: attachment;filename="backup_categories_products.xlsx"');
to

Code: Select all

header('Content-Disposition: attachment;filename="backup_categories_products.xls"');
edit line 2615 from

Code: Select all

$objWriter = PHPExcel_IOFactory::createWriter($workbook, 'Excel2007');
to

Code: Select all

$objWriter = PHPExcel_IOFactory::createWriter($workbook, 'Excel5');
Back to server I imported the .xls file and it's ok.

Sorry JNeuhoff for those edits. Hope, you won't be angry. Hope that this will help to somebody.

Re: [RELEASED] Export/Import tool for OpenCart 1.5.5.x

Posted: Fri May 03, 2013 7:59 pm
by JNeuhoff
mettty wrote: I'm like a spammer, but I solved it. ;D Problem is in Excel2007, which (I don't know why) has another method for temp directories on server then Excel5. So back to Excel5.
I think it would have a been a lot easier to just change webhost. Some webhosts are simply not up to the task.

Re: [RELEASED] Export/Import tool for OpenCart 1.5.5.x

Posted: Thu May 09, 2013 11:48 pm
by superwaterman
Hello Juergen,

I just loaded this on our test site ... final.watercheck.biz

On an export request, I am getting the following error message ...

Error: MySQL server has gone away
Error No: 2006
SELECT `product_id`, `image`, `sort_order` FROM `final_mijoshop_product_image` pi ORDER BY pi.`product_id`, pi.`sort_order`, pi.`image`;

The site is running OpenCart: 1.5.5.1 / MijoShop: 1.6.2

Do you have any ideas on what the issue may be ??

Thanks in advance for your great and simple solution to this issue

Love,
Leslie Gabriel, WaterMan

Re: [RELEASED] Export/Import tool for OpenCart 1.5.5.x

Posted: Fri May 10, 2013 11:25 am
by irulswift
it's work
thank's

Re: [RELEASED] Export/Import tool for OpenCart 1.5.5.x

Posted: Fri May 10, 2013 4:39 pm
by kromanluv
After I install Export/Import tool for OpenCart 1.5.5.x, I got error "500 Internal Server Error" for my opencart control panel (www.[domain]/admin) but, my front panel is alright.

I am using OpenCart version 1.5.5.1, with custom theme.
Now I have to restore backup to get back previous working state.

I tried 2 times already, but still getting same error.
Could someone help me how can I install sucessfully?

Thanks & Regards,
Kromanluv

Re: [RELEASED] Export/Import tool for OpenCart 1.5.5.x

Posted: Sat May 11, 2013 12:04 am
by JNeuhoff
kromanluv wrote:After I install Export/Import tool for OpenCart 1.5.5.x, I got error "500 Internal Server Error" for my opencart control panel (www.[domain]/admin) but, my front panel is alright.

I am using OpenCart version 1.5.5.1, with custom theme.
Now I have to restore backup to get back previous working state.

I tried 2 times already, but still getting same error.
Could someone help me how can I install sucessfully?

Thanks & Regards,
Kromanluv
Check the entries in your server's error_log, ask your webhost for help.

Re: [RELEASED] Export/Import tool for OpenCart 1.5.5.x

Posted: Wed May 15, 2013 9:16 pm
by Pyrocrafter
JNeuhoff wrote:The Export/Import tool is now available for OpenCart 1.5.5.x.

This latest version contains an improved error handler. And it now uses the XLSX as the default spreadsheet file format.

Still on our to-do list:

- Make it more override-friendly for customisations
- Incremental Import
- Multilingual support
I've tried installing this with no success. Get this message:
Notice: Cannot find controller class file for route 'tool/export' in /web2/user42276/website/upload/system/engine/factory.php on line 155

Re: [RELEASED] Export/Import tool for OpenCart 1.5.5.x

Posted: Wed May 15, 2013 11:59 pm
by Pyrocrafter
Further to my other posts. I've now managed to install the Import/Export tool but get this error log when I try to export the site. (I forgot to upload all the folders - as others before me have done)

2013-05-15 15:50:55 - PHP Warning: stream_wrapper_unregister() [<a href='function.stream-wrapper-unregister'>function.stream-wrapper-unregister</a>]: Unable to unregister protocol zip:// in /web2/user42276/website/upload/system/PHPExcel/Classes/PHPExcel/Shared/ZipStreamWrapper.php on line 69
2013-05-15 15:50:56 - PHP Fatal Error: Class 'ZipArchive' not found in /web2/user42276/website/upload/system/PHPExcel/Classes/PHPExcel/Writer/Excel2007.php on line 234
2013-05-15 15:50:56 - PHP Warning: Cannot modify header information - headers already sent by (output started at /web2/user42276/website/upload/system/PHPExcel/Classes/PHPExcel/Writer/Excel2007.php:234) in /web2/user42276/website/upload/admin/model/tool/export.php on line 49
2013-05-15 15:50:56 - PHP Warning: Cannot modify header information - headers already sent by (output started at /web2/user42276/website/upload/system/PHPExcel/Classes/PHPExcel/Writer/Excel2007.php:234) in /web2/user42276/website/upload/admin/model/tool/export.php on line 50

Any info would be greatly appreciated. Thanks

Re: [RELEASED] Export/Import tool for OpenCart 1.5.5.x

Posted: Thu May 16, 2013 4:13 am
by JNeuhoff
Pyrocrafter wrote:Further to my other posts. I've now managed to install the Import/Export tool but get this error log when I try to export the site. (I forgot to upload all the folders - as others before me have done)

2013-05-15 15:50:55 - PHP Warning: stream_wrapper_unregister() [<a href='function.stream-wrapper-unregister'>function.stream-wrapper-unregister</a>]: Unable to unregister protocol zip:// in /web2/user42276/website/upload/system/PHPExcel/Classes/PHPExcel/Shared/ZipStreamWrapper.php on line 69
2013-05-15 15:50:56 - PHP Fatal Error: Class 'ZipArchive' not found in /web2/user42276/website/upload/system/PHPExcel/Classes/PHPExcel/Writer/Excel2007.php on line 234
....
Any info would be greatly appreciated. Thanks
Some cheap webhosts are simply not worth their money. :(

Ask your webhost to install support for PHPs ZIP library. Or better, change your webhost to a another one.

Re: [RELEASED] Export/Import tool for OpenCart 1.5.5.x

Posted: Wed May 22, 2013 8:54 am
by ricpan
Hi,
Just started using this extension with the latest opencart but when trying to export/import I get this error:

Fatal error: require_once(): Failed opening required 'Classes/PHPExcel.php' (include_path='.:/usr/local/Cellar/php54/5.4.14/lib/php') in /Users/myusername/Sites/ecommerce/admin/model/tool/export.php on line 2469

All files are there. I'm running opencart on my mac.

Any tip how to solve this issue? Thanks in advance.

Re: [RELEASED] Export/Import tool for OpenCart 1.5.5.x

Posted: Fri May 24, 2013 6:28 am
by burley
HI, just upgraded to 1551 and the latest version of your mod.

Exporting go's without a hitch, importing is giving me problems thought.
I keep getting the following error;

Code: Select all

Notice: Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0,0,0,'1','1','1','1')' at line 1
Error No: 1064
INSERT INTO `product` (`product_id`,`quantity`,`sku`,`upc`,`ean`,`jan`,`isbn`,`mpn`,`location`,`stock_status_id`,`model`,`manufacturer_id`,`image`,`shipping`,`price`,`points`,`date_added`,`date_modified`,`date_available`,`weight`,`weight_class_id`,`status`,`tax_class_id`,`viewed`,`length`,`width`,`height`,`length_class_id`,`sort_order`,`subtract`,`minimum`) VALUES (24,50,'V767106','','','','','','1',5,'108x68',13,'',1,200,0,'2013-05-14 02:54:51','0000-00-00 00:00:00','2013-05-13',0,1,1,9,,0,0,0,'1','1','1','1'); in /home/bluepoin/public_html/mad/system/database/mysql.php on line 50
Can't find anything bad in my xlsx file, any clues?

Re: [RELEASED] Export/Import tool for OpenCart 1.5.5.x

Posted: Fri May 24, 2013 4:29 pm
by JNeuhoff
burley wrote:HI, just upgraded to 1551 and the latest version of your mod.

Exporting go's without a hitch, importing is giving me problems thought.
I keep getting the following error;

Can't find anything bad in my xlsx file, any clues?
Yes, it is the 'viewed' column.

Juergen

Re: [RELEASED] Export/Import tool for OpenCart 1.5.5.x

Posted: Fri May 24, 2013 5:34 pm
by burley
Thanks!!

Re: [RELEASED] Export/Import tool for OpenCart 1.5.5.x

Posted: Mon May 27, 2013 6:16 am
by Maestroluc
I have an installation of newly installed Opencart 1.5.5.1. The component works well in export but to import fails (Uploaded file is not a valid spreadsheet file or its values ​​are not in the expected formats!) Only when overtaking the 200 lines in the table "products" xlsx file. Any idea?

Thank you very much!

Re: [RELEASED] Export/Import tool for OpenCart 1.5.5.x

Posted: Tue May 28, 2013 11:27 pm
by NITCO
Maestroluc wrote:I have an installation of newly installed Opencart 1.5.5.1. The component works well in export but to import fails (Uploaded file is not a valid spreadsheet file or its values ​​are not in the expected formats!) Only when overtaking the 200 lines in the table "products" xlsx file. Any idea?

Thank you very much!
Just save you file as xls and then try upload. Worked for me!

Re: [RELEASED] Export/Import tool for OpenCart 1.5.5.x

Posted: Thu May 30, 2013 1:02 am
by Maestroluc
NITCO wrote:Just save you file as xls and then try upload. Worked for me!
Works!!!…

Thanks NITCO!

Re: [RELEASED] Export/Import tool for OpenCart 1.5.5.x

Posted: Mon Jun 03, 2013 5:07 pm
by v-v
Hi,
i am using import/export tool on some "old" OC installation successfuly, now i have 1.5.5.1 and cant make this import/export tool work - "Could not close zip file php://output message" appears ...

Anyone knows how to fix it?

Many thanks,
V.

Re: [RELEASED] Export/Import tool for OpenCart 1.5.5.x

Posted: Mon Jun 03, 2013 6:19 pm
by v-v
Well,
I would like to thank matty for his help - i did suggested steps, and export tool works ...

Thank you!

Re: [RELEASED] Export/Import tool for OpenCart 1.5.5.x

Posted: Mon Jun 03, 2013 8:17 pm
by murtazadoc
I upgraded opencart from 1.5.1.3 to 1.5.5.x and am getting the following error

Error: MySQL server has gone away
Error No: 2006
SELECT `product_id`, `image`, `sort_order` FROM `product_image` pi ORDER BY pi.`product_id`, pi.`sort_order`, pi.`image`;
See also 'System > Error Logs' for more details.

Error Logs
2013-06-03 12:07:18 - PHP Notice: Error: MySQL server has gone away<br />Error No: 2006<br />SELECT `product_id`, `image`, `sort_order` FROM `product_image` pi ORDER BY pi.`product_id`, pi.`sort_order`, pi.`image`; in /home/dodhia/public_html/system/database/mysql.php on line 50

Please anyone came accross this error kindly advise...thanx...