Post by carlos001 » Thu Nov 26, 2009 12:44 am

Hi ,
when i try to upload a 25mb file for download item i get .
anyone can help me please?

Code: Select all

Notice: Undefined index: download_description in /home1/atrevida/public_html/admin/controller/catalog/download.php on line 394Warning: Invalid argument supplied for foreach() in /home1/atrevida/public_html/admin/controller/catalog/download.php on line 394Notice: Undefined index: download in /home1/atrevida/public_html/admin/controller/catalog/download.php on line 400Notice: Undefined index: download in /home1/atrevida/public_html/admin/controller/catalog/download.php on line 25Notice: Undefined index: remaining in /home1/atrevida/public_html/admin/model/catalog/download.php on line 4Notice: Undefined index: download_description in /home1/atrevida/public_html/admin/model/catalog/download.php on line 12Warning: Invalid argument supplied for foreach() in /home1/atrevida/public_html/admin/model/catalog/download.php on line 12Warning: Cannot modify header information - headers already sent by (output started at /home1/atrevida/public_html/admin/index.php:59) in /home1/atrevida/public_html/system/engine/controller.php on line 22

New member

Posts

Joined
Sat Oct 31, 2009 5:12 pm

Post by Xsecrets » Thu Nov 26, 2009 12:55 am

strange errors, but my guess would be that either
1) you exceeded your php max execution time.
or
2) you exceeded your php max upload limit.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by carlos001 » Thu Nov 26, 2009 12:56 am

This is my error log:
How i can change my php execution time and my upload?

Code: Select all

2009-11-25 9:47:05 - PHP Notice:  Undefined index:  download_description in /home1/atrevida/public_html/admin/controller/catalog/download.php on line 394
2009-11-25 9:47:05 - PHP Warning:  Invalid argument supplied for foreach() in /home1/atrevida/public_html/admin/controller/catalog/download.php on line 394
2009-11-25 9:47:05 - PHP Notice:  Undefined index:  download in /home1/atrevida/public_html/admin/controller/catalog/download.php on line 400
2009-11-25 9:47:05 - PHP Notice:  Undefined index:  download in /home1/atrevida/public_html/admin/controller/catalog/download.php on line 25
2009-11-25 9:47:05 - PHP Notice:  Undefined index:  remaining in /home1/atrevida/public_html/admin/model/catalog/download.php on line 4
2009-11-25 9:47:05 - PHP Notice:  Undefined index:  download_description in /home1/atrevida/public_html/admin/model/catalog/download.php on line 12
2009-11-25 9:47:05 - PHP Warning:  Invalid argument supplied for foreach() in /home1/atrevida/public_html/admin/model/catalog/download.php on line 12
2009-11-25 9:47:05 - PHP Warning:  Cannot modify header information - headers already sent by (output started at /home1/atrevida/public_html/admin/index.php:59) in /home1/atrevida/public_html/system/engine/controller.php on line 22
2009-11-25 9:51:54 - PHP Notice:  Undefined index:  download_description in /home1/atrevida/public_html/admin/controller/catalog/download.php on line 394
2009-11-25 9:51:54 - PHP Warning:  Invalid argument supplied for foreach() in /home1/atrevida/public_html/admin/controller/catalog/download.php on line 394
2009-11-25 9:51:54 - PHP Notice:  Undefined index:  download in /home1/atrevida/public_html/admin/controller/catalog/download.php on line 400
2009-11-25 9:51:54 - PHP Notice:  Undefined index:  download in /home1/atrevida/public_html/admin/controller/catalog/download.php on line 25
2009-11-25 9:51:54 - PHP Notice:  Undefined index:  remaining in /home1/atrevida/public_html/admin/model/catalog/download.php on line 4
2009-11-25 9:51:54 - PHP Notice:  Undefined index:  download_description in /home1/atrevida/public_html/admin/model/catalog/download.php on line 12
2009-11-25 9:51:54 - PHP Warning:  Invalid argument supplied for foreach() in /home1/atrevida/public_html/admin/model/catalog/download.php on line 12
2009-11-25 9:51:54 - PHP Warning:  Cannot modify header information - headers already sent by (output started at /home1/atrevida/public_html/admin/index.php:59) in /home1/atrevida/public_html/system/engine/controller.php on line 22

New member

Posts

Joined
Sat Oct 31, 2009 5:12 pm

Post by carlos001 » Thu Nov 26, 2009 1:06 am

This is my php.ini

Code: Select all

magic_quotes_gpc = Off;
register_globals = Off;
default_charset	= UTF-8;
memory_limit = 64M;
max_execution_time = 18000;
max_upload_filesize = 100M;
safe_mode = Off;
mysql.connect_timeout = 20;
session.use_cookies = On;
session.use_trans_sid = Off;
session.gc_maxlifetime = 12000000;

New member

Posts

Joined
Sat Oct 31, 2009 5:12 pm

Post by JNeuhoff » Thu Nov 26, 2009 2:06 am

The Undefined Index for download_description indicates that your download file couldn't be successfully uploaded. In particular, the Opencart server didn't find the posted download_description which comes from the Download Name field of the file upload form. Make sure the latter is non-empty and doesn't use white-spaces or any strange characters.

MHC Web Design
Override Engine * Integrated VQMod * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Rich Snippets * Google Tag Manager * Export/Import Tool * SpamBot Buster


User avatar
Expert Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by carlos001 » Thu Nov 26, 2009 2:26 am

oka , I change to
my download name is: Atrevida Invierno 2009
my file name is: AtrevidaInvierno2009.zip
Size: 21.7mb
and i have the same problem

New member

Posts

Joined
Sat Oct 31, 2009 5:12 pm

Post by Daniel » Thu Nov 26, 2009 3:22 am

try spliting the file up using win rar or something.

its really down to you to setup your max exection time and upload limit.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by carlos001 » Thu Nov 26, 2009 6:24 am

Daniel,
i use bluehost you think is a host limitation?
i try with a 5mb and i get (Warning: The uploaded file exceeds the upload_max_filesize directive in php.ini!)
and my php.ini is:
agic_quotes_gpc = Off;
register_globals = Off;
default_charset = UTF-8;
memory_limit = 64M;
file_uploads = On ;
max_execution_time = 18000;
max_upload_filesize = 1000M;
safe_mode = Off;
mysql.connect_timeout = 20;
session.use_cookies = On;
session.use_trans_sid = Off;
session.gc_maxlifetime = 12000000;

New member

Posts

Joined
Sat Oct 31, 2009 5:12 pm

Post by carlos001 » Thu Nov 26, 2009 8:10 am

SOLUTION!! upload problem
PHP.ini change to =>

Code: Select all

magic_quotes_gpc = Off;
register_globals = Off;
default_charset	= UTF-8;
memory_limit = 64M;
file_uploads = On ;
max_execution_time = 18000;
max_input_time = 40;
accept.
post_max_size = 25M
files.
upload_max_filesize = 999M
safe_mode = Off;
mysql.connect_timeout = 20;
session.use_cookies = On;
session.use_trans_sid = Off;
session.gc_maxlifetime = 12000000;

New member

Posts

Joined
Sat Oct 31, 2009 5:12 pm

Post by Qphoria » Sat Nov 28, 2009 5:12 am

I have a new mod that allows AutoDetect and Insert of downloads into your OpenCart system.
Simply upload the files to your download folder, and when you edit/insert a product or goto the downloads area, all the downloads will be uploaded and inserted for you.

http://www.opencart.com/index.php?route ... ion_id=185
No more file size issues or php memory limits

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by linuxaisle » Mon Jul 12, 2010 8:35 am

carlos001 wrote:SOLUTION!! upload problem
PHP.ini change to =>
.....
Thanks, setting upload_max_filesize = 999M worked for me.

OpenCart user since 4/27/10


New member

Posts

Joined
Wed Apr 28, 2010 2:01 pm

Post by peal » Thu Dec 16, 2010 5:15 pm

I think whenever there is an error when we try to upload something, it must most certainly be of the following errors; one is where you are uploading something which exceeds the overall suggested size, the other is when you are trying to upload something which has some kind of malware or a virus in it, and the other is when your internet connection goes off or doesn’t stay stable when uploading your respected file. See which suits you and deal with it!

automating processes


Newbie

Posts

Joined
Thu Dec 16, 2010 3:19 pm

Post by recuerdoslarevista » Thu Feb 16, 2012 4:09 am

I'm using bluehost and my file is 21.5 mb. I'm getting the same error reports. I don't know how to find the php.ini file in my screen.

My opencart version is 1.5.1.3


Posts

Joined
Wed Feb 15, 2012 11:15 am

Post by Qphoria » Thu Feb 16, 2012 5:45 am

The php.ini file is viewable in your ftp client in the root path of your store.
But most shared hosts won't allow files larger than 10MB
Your only option is likely the Download Auto-insert mod
http://www.opencart.com/index.php?route ... ion_id=185

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by mailey1974 » Tue Mar 13, 2012 11:45 pm

JNeuhoff wrote:The Undefined Index for download_description indicates that your download file couldn't be successfully uploaded. In particular, the Opencart server didn't find the posted download_description which comes from the Download Name field of the file upload form. Make sure the latter is non-empty and doesn't use white-spaces or any strange characters.
what are white spaces & strange characters? you mean like signs like these:-*&#

Newbie

Posts

Joined
Wed Feb 22, 2012 5:23 am
Who is online

Users browsing this forum: No registered users and 14 guests