Post by gristur1 » Mon Jun 23, 2014 12:10 am

Well the only things there that could be related:

Error logs in the cpanel tells me:

[Sat Jun 21 13:38:30 2014] [warn] [client 66.220.158.119] mod_fcgid: stderr: PHP Warning: mysql_close() expects parameter 1 to be resource, boolean given in /home/meremart/public_html/system/database/ipsmysql.php on line 156
[Sat Jun 21 13:38:30 2014] [warn] [client 69.171.237.117] mod_fcgid: stderr: PHP Warning: mysql_close() expects parameter 1 to be resource, boolean given in /home/meremart/public_html/system/database/ipsmysql.php on line 156
[Sat Jun 21 13:38:30 2014] [warn] [client 66.220.152.117] mod_fcgid: stderr: PHP Warning: mysql_close() expects parameter 1 to be resource, boolean given in /home/meremart/public_html/system/database/ipsmysql.php on line 156
[Sat Jun 21 13:38:30 2014] [warn] [client 66.220.158.112] mod_fcgid: stderr: PHP Warning: mysql_close() expects parameter 1 to be resource, boolean given in /home/meremart/public_html/system/database/ipsmysql.php on line 156
[Sat Jun 21 13:38:30 2014] [warn] [client 66.220.158.112] mod_fcgid: stderr: PHP Warning: mysql_close() expects parameter 1 to be resource, boolean given in /home/meremart/public_html/system/database/ipsmysql.php on line 156

Poternially relevant logs given to me by my webhost include:

[21-Jun-2014 09:21:45 America/Denver] PHP Fatal error: require(): Failed opening required '/home/meremart/public_html/vqmod/vqcache/vq2-catalog_language_english_common_footer.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/meremart/public_html/vqmod/vqcache/vq2-system_library_language.php on line 21

there was something about expired/timeout headers yesterday, but customer support rep was not able to locate the record today.

that is about it.

Newbie

Posts

Joined
Sun Apr 06, 2014 11:33 pm

Post by JNeuhoff » Mon Jun 23, 2014 5:28 pm

Unless you can provide the exact matching error_log entry for your Internal Server 500 error, from exactly the same time your 500 error occured, I am not able to help you.

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 therugworld » Mon Jun 23, 2014 10:08 pm

Hi JNeuhoff,

Can you help me with my query I have posted here - http://forum.opencart.com/viewtopic.php?f=119&t=126898

Which reads:

'I am using the Export/Import Tool - http://www.opencart.com/index.php?route ... sion_id=17

I have recently purchased the SEO Page Title Tag Editor - http://www.opencart.com/index.php?route ... on_id=8837

I need a custom field in the Export/Import Excel Spreadsheet to export the Title Tags.. without this all title tags are deleted when importing the spreadsheet. This is causing me large issues as my SEO company needs these fields.

I did find this post by the creator (JNeuhoff) - search.php?keywords=custom&t=81305&sf=msgonly - Can anyone make sense of this for me, I have had a look and need some assistance.'

Any help will be appreciated.

http://www.TheRugWorld.co.uk - Rugs, Carpet, Vinyl & Laminates! FREE UK Delivery - Worldwide Shipping!


New member

Posts

Joined
Sat Mar 10, 2012 1:12 am
Location - London

Post by Pat251 » Fri Jul 04, 2014 3:14 am

mettty wrote:
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.
It works! Thanks tooo much! :joker:

Newbie

Posts

Joined
Thu Feb 27, 2014 12:06 am

Post by aaron1988 » Sat Jul 19, 2014 6:04 am

HI, wondrered if anyone had fixed this problem on 1.5.6.4.

when exporting i get this:

Code: Select all

2014-07-18 20:38:15 - PHP ErrorException:  Error: MySQL server has gone away<br />Error No: 2006<br />SELECT `product_id`, `image`, `sort_order` FROM `oc_product_image` pi ORDER BY pi.`product_id`, pi.`sort_order`, pi.`image`; in /home/inkoptionsco/public_html/system/database/mysqli.php on line 41
I am on a dedicated server so any settings, i have the limits like they are above by other people for example memory_allowed_size to: 2048 etc

Thanks
Aaron

Active Member

Posts

Joined
Thu Jan 27, 2011 10:03 am

Post by schiggi » Tue Jul 22, 2014 7:59 pm

Moving my site from one hoster to another. Get the same error at the new hoster's site while exporting data:

Code: Select all

Server error!

The server encountered an internal error and was unable to complete your request.

Error message: 
Premature end of script headers: index.php

If you think this is a server error, please contact the webmaster.

Error 500
My memory allowances should be high enough (~5000 SKUs) with a 512MB memory limit. PHP version 5.3/MySQL 5.5. I suspect that maybe some php extensions are needed/have to be allowed.

Can someone assist me with this problem?

Thank you!

New member

Posts

Joined
Tue May 13, 2014 4:23 am

Post by corpz » Tue Jul 22, 2014 10:35 pm

I`m using OC 1.5.6.4
Recently I tryed to import ~1000 products, tool said "it`s ok", but no updates on my store. I had ~800 products then. After this I can`t do export(I see blank/white page, instead of export result). Now I try to import small base(like ~200 items) and comment/uncomment "set_time_limit( 1800 );"-line, but it doesn`t work anyway. There is nothing in error logs.

Before this incident all worked good.
Please help!

Newbie

Posts

Joined
Wed Jun 25, 2014 10:02 pm

Post by CloudCyberSystems » Wed Jul 23, 2014 7:10 pm

Im getting the following error.....

Code: Select all

Parse error: syntax error, unexpected $end in /home/cloudcyb/public_html/system/PHPExcel/Classes/PHPExcel/Calculation.php on line 2926

Fatal error: Class 'PHPExcel_Calculation' not found in /home/cloudcyb/public_html/system/PHPExcel/Classes/PHPExcel.php on line 151


Posts

Joined
Wed Jul 23, 2014 7:06 pm

Post by CloudCyberSystems » Thu Jul 24, 2014 7:13 pm

getting this error...

Code: Select all

Parse error: syntax error, unexpected $end in /home/cloudcyb/public_html/system/PHPExcel/Classes/PHPExcel/Calculation.php on line 2926

Fatal error: Class 'PHPExcel_Calculation' not found in /home/cloudcyb/public_html/system/PHPExcel/Classes/PHPExcel.php on line 151


Posts

Joined
Wed Jul 23, 2014 7:06 pm

Post by JNeuhoff » Sat Jul 26, 2014 9:39 pm

CloudCyberSystems wrote:getting this error...

Code: Select all

Parse error: syntax error, unexpected $end in /home/cloudcyb/public_html/system/PHPExcel/Classes/PHPExcel/Calculation.php on line 2926

Fatal error: Class 'PHPExcel_Calculation' not found in /home/cloudcyb/public_html/system/PHPExcel/Classes/PHPExcel.php on line 151
I am unable to reproduce your error. Don't use formula's in your spreadsheet values.

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 schiggi » Mon Jul 28, 2014 6:48 pm

I am bit lost with my issue. Could somebody point me to a direction, where I could start to look for the problem? Using the latest OC version and the latest update of the export/import tool.
schiggi wrote:Moving my site from one hoster to another. Get the same error at the new hoster's site while exporting data:

Code: Select all

Server error!

The server encountered an internal error and was unable to complete your request.

Error message: 
Premature end of script headers: index.php

If you think this is a server error, please contact the webmaster.

Error 500
My memory allowances should be high enough (~5000 SKUs) with a 512MB memory limit. PHP version 5.3/MySQL 5.5. I suspect that maybe some php extensions are needed/have to be allowed.

Can someone assist me with this problem?

Thank you!

New member

Posts

Joined
Tue May 13, 2014 4:23 am

Post by Cue4cheap » Mon Jul 28, 2014 8:51 pm

schiggi wrote:I am bit lost with my issue. Could somebody point me to a direction, where I could start to look for the problem? Using the latest OC version and the latest update of the export/import tool.
schiggi wrote:Moving my site from one hoster to another. Get the same error at the new hoster's site while exporting data:

Code: Select all

Server error!

The server encountered an internal error and was unable to complete your request.

Error message: 
Premature end of script headers: index.php

If you think this is a server error, please contact the webmaster.

Error 500
My memory allowances should be high enough (~5000 SKUs) with a 512MB memory limit. PHP version 5.3/MySQL 5.5. I suspect that maybe some php extensions are needed/have to be allowed.

Can someone assist me with this problem?

Thank you!

Did you read JNeuhoff's reply and check your spreadsheet?

Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by schiggi » Mon Jul 28, 2014 9:09 pm

Thanks for the reply. I think, JNeuhoff meant another user with his reply. In any case, during the export I getting this error.

New member

Posts

Joined
Tue May 13, 2014 4:23 am

Post by baronen » Mon Jul 28, 2014 9:21 pm

Hi, I'm probably dumb, but followed the instructions and can't get the addon to work. It does not show up anywhere.
I have OC 1.5.5.1 and downloaded opencart-1-5-5-x-export-import-17.
I use VQmod but I cant find the addon.
Reinstalled VQmod and verified that it works by trying another addon.
Also selected the tool in top admin user group.

Is it just that the addon is hidden or something?

Newbie

Posts

Joined
Thu Aug 01, 2013 7:18 pm

Post by JNeuhoff » Mon Jul 28, 2014 9:34 pm

schiggi wrote:Thanks for the reply. I think, JNeuhoff meant another user with his reply. In any case, during the export I getting this error.
Your need to ask your webhost for the error_log log entries for exactly the time when your Internal Server Error 500 occured. My guess is it could be a timeout issue.

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 baronen » Wed Jul 30, 2014 8:15 pm

baronen wrote:Hi, I'm probably dumb, but followed the instructions and can't get the addon to work. It does not show up anywhere.
I have OC 1.5.5.1 and downloaded opencart-1-5-5-x-export-import-17.
I use VQmod but I cant find the addon.
Reinstalled VQmod and verified that it works by trying another addon.
Also selected the tool in top admin user group.

Is it just that the addon is hidden or something?
Bump?
Any ideas of whats wrong?

Newbie

Posts

Joined
Thu Aug 01, 2013 7:18 pm

Post by JNeuhoff » Wed Jul 30, 2014 8:45 pm

baronen wrote:
baronen wrote:Hi, I'm probably dumb, but followed the instructions and can't get the addon to work. It does not show up anywhere.
I have OC 1.5.5.1 and downloaded opencart-1-5-5-x-export-import-17.
I use VQmod but I cant find the addon.
Reinstalled VQmod and verified that it works by trying another addon.
Also selected the tool in top admin user group.

Is it just that the addon is hidden or something?
Bump?
Any ideas of whats wrong?
It should be available at

System > Export / Import

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 balonik » Fri Aug 01, 2014 3:44 am

Hi All,

Probably many of you reading this forum had experience issue while exporting products.
The usual symptoms are:
- "PHP out of memory" in Style/Supervisor.php
- blank/white page

Basically it is the same error, but when you have blank/white page, showing PHP errors in page is turned off.

How to resolve it?

UPDATE PHPExcel Libraries!!!

When you are downloading this great extension it is bundled with PHPExcel 1.7.9, which has a bug.

Steps:
1. Download PHPExcel 1.8.0 (current latest stable at the time I write this post) from here https://phpexcel.codeplex.com/releases/view/119187
2. You can download the one with documentation, but "Source Code PHPExcel 1.8.0 - Code only (no Documentation)" is enough
3. Remove "Classes" folder in "system/PHPExcel"
4. Extract/Copy "Classes" folder from downloaded ZIP archive into "system/PHPExcel"
5. Done. Enjoy working export.

With PHPExcel 1.8.0 I was able to export eshop with 2000 products with only 128M memory_limit in php.ini on 1.5.6.4.

Hope this helps.

Newbie

Posts

Joined
Fri Aug 01, 2014 3:19 am

Post by JNeuhoff » Sat Aug 02, 2014 8:48 pm

Thank you for this tip.

BTW.: I am currently running some tests on a new multilingual version of the Export/Import tool which can be even more memory-hungry and time consuming. Hence I was looking at some alternative libraries for the Export to start with, the PHP_XLSXWriter looks quite promising, far less memory consuming, and faster, will see how it fares.

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 schiggi » Thu Aug 21, 2014 5:34 am

JNeuhoff wrote:
schiggi wrote:Thanks for the reply. I think, JNeuhoff meant another user with his reply. In any case, during the export I getting this error.
Your need to ask your webhost for the error_log log entries for exactly the time when your Internal Server Error 500 occured. My guess is it could be a timeout issue.
Thanks again for your reply. The server error logs tell me this story:

Code: Select all

[Wed Aug 20 22:57:31 2014] [warn] [client 91.64.44.88] Timeout waiting for output from CGI script /var/www/cgi-bin/cgi_wrapper/cgi_wrapper, referer: http://xxx.xx/admin/index.php?route=tool/export&token=7e595c3ba28533adbe8c5f77f7c44879
[Wed Aug 20 22:57:31 2014] [error] [client 91.64.44.88] Script timed out before returning headers: cgi_wrapper, referer: http://xxx.xx/admin/index.php?route=tool/export&token=7e595c3ba28533adbe8c5f77f7c44879
[Wed Aug 20 22:58:31 2014] [warn] [client 91.64.44.88] Timeout waiting for output from CGI script /var/www/cgi-bin/cgi_wrapper/cgi_wrapper, referer: http://xxx.xx/admin/index.php?route=tool/export&token=7e595c3ba28533adbe8c5f77f7c44879
I set the php-execution and input-time to 60s. Since I am on a managed vServer, I have some degrees of freedom if it comes to settings, but I just don't know, what to change to get the thing going. Also tried the new PHPexcel 1.8 module with the same result...:(

Would the phpinfo help to resolve the issue?

New member

Posts

Joined
Tue May 13, 2014 4:23 am
Who is online

Users browsing this forum: No registered users and 5 guests