Post by gemini99 » Thu May 02, 2013 9:25 pm

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

Driver xcen.se som säljer belysningslösningar


New member

Posts

Joined
Sun Feb 06, 2011 4:55 am
Location - Tokyo

Post by mettty » Fri May 03, 2013 4:04 pm

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.

Newbie

Posts

Joined
Wed May 01, 2013 6:40 pm

Post by JNeuhoff » Fri May 03, 2013 7:59 pm

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.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by superwaterman » Thu May 09, 2013 11:48 pm

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

Love,
Leslie Gabriel, WaterMan, CEO, H2OAmbassador

Website - www.WaterCheck.biz

PS WaterCheck.biz donates a portion of our revenues to H2O Sustainability Projects here and around the globe.


User avatar
Newbie

Posts

Joined
Sat Jan 26, 2013 12:09 am
Location - Hillsdale, NY, United States

Post by irulswift » Fri May 10, 2013 11:25 am

it's work
thank's

Newbie

Posts

Joined
Fri May 10, 2013 11:23 am

Post by kromanluv » Fri May 10, 2013 4:39 pm

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

Newbie

Posts

Joined
Fri Apr 12, 2013 1:10 pm

Post by JNeuhoff » Sat May 11, 2013 12:04 am

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.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by Pyrocrafter » Wed May 15, 2013 9:16 pm

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

New member

Posts

Joined
Tue May 14, 2013 4:49 am

Post by Pyrocrafter » Wed May 15, 2013 11:59 pm

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

New member

Posts

Joined
Tue May 14, 2013 4:49 am

Post by JNeuhoff » Thu May 16, 2013 4:13 am

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.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by ricpan » Wed May 22, 2013 8:54 am

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.

Newbie

Posts

Joined
Wed May 22, 2013 8:51 am

Post by burley » Fri May 24, 2013 6:28 am

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?

User avatar
Active Member

Posts

Joined
Sun Oct 09, 2011 3:30 pm

Post by JNeuhoff » Fri May 24, 2013 4:29 pm

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

User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by burley » Fri May 24, 2013 5:34 pm

Thanks!!

User avatar
Active Member

Posts

Joined
Sun Oct 09, 2011 3:30 pm

Post by Maestroluc » Mon May 27, 2013 6:16 am

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!

User avatar
Newbie

Posts

Joined
Tue May 08, 2012 3:34 pm


Post by NITCO » Tue May 28, 2013 11:27 pm

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!

Newbie

Posts

Joined
Tue May 28, 2013 11:18 pm

Post by Maestroluc » Thu May 30, 2013 1:02 am

NITCO wrote:Just save you file as xls and then try upload. Worked for me!
Works!!!…

Thanks NITCO!

User avatar
Newbie

Posts

Joined
Tue May 08, 2012 3:34 pm


Post by v-v » Mon Jun 03, 2013 5:07 pm

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.

v-v
Active Member

Posts

Joined
Wed Jun 16, 2010 10:09 pm

Post by v-v » Mon Jun 03, 2013 6:19 pm

Well,
I would like to thank matty for his help - i did suggested steps, and export tool works ...

Thank you!

v-v
Active Member

Posts

Joined
Wed Jun 16, 2010 10:09 pm

Post by murtazadoc » Mon Jun 03, 2013 8:17 pm

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

Newbie

Posts

Joined
Sat Sep 10, 2011 6:08 pm
Who is online

Users browsing this forum: No registered users and 15 guests