Post by Dizi » Tue May 10, 2016 11:31 pm

Hi everyone,
I'm facing an issue when uploading massive images to my opencart store.
I'm adding images to options, about 60, and i can't save anymore. Opencart simply delete some, and only let me save with 42 images total. I thought there was no limit.
This is the message that appear when i try to save:
Notice: Undefined index: points in /home/heldera/public_html/prodecor_new.pt/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 139Notice: Undefined index: price in /home/heldera/public_html/prodecor_new.pt/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 194Notice: Undefined index: points in /home/heldera/public_html/prodecor_new.pt/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 194Notice: Undefined index: points_prefix in /home/heldera/public_html/prodecor_new.pt/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 194Notice: Undefined index: weight in /home/heldera/public_html/prodecor_new.pt/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 194Notice: Undefined index: weight_prefix in /home/heldera/public_html/prodecor_new.pt/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 194Warning: Cannot modify header information - headers already sent by (output started at /home/heldera/public_html/prodecor_new.pt/admin/index.php:83) in /home/heldera/public_html/prodecor_new.pt/vqmod/vqcache/vq2-system_engine_controller.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /home/heldera/public_html/prodecor_new.pt/admin/index.php:83) in /home/heldera/public_html/prodecor_new.pt/vqmod/vqcache/vq2-system_engine_controller.php on line 29
Can anyone give a little help?

Thank you so much
Last edited by straightlight on Wed Aug 03, 2016 1:58 am, edited 2 times in total.
Reason: Added quote tags.

Active Member

Posts

Joined
Thu Dec 29, 2011 7:44 pm

Post by IP_CAM » Wed May 11, 2016 1:47 am

there is a limit, set, in your BOTH php.ini Files,

Code: Select all

memory_limit = 64M;
max_execution_time = 36000;
upload_max_filesize = 999M;
meaning, that you only allow 64MB of Server memory, to be used, by OC DEFAULT Setting,
wich is actually good for nothing much - but you have a (giant) max. Upload Size of 999 MB in total,
at least, as set by the OC Default php.ini.

But, if this is the case on the Server, remains to be another question.
Since all this only has an effect, on the SERVER, if the Server configuration
DOES allow such Settings, done by it's Customers, and according to the Server Contract with the Customer.
---
And if you have ACCESS to your Server ADMIN PHP Console, you may so enlarge the MEMORY Limit
to the thenfold Value (640MB), to double make sure, in your SERVER SIDE ADMIN CONSOLE php.ini File.
But be aware, that more Server RAM is usually not just included in your Server-Abo, ask your Hoster first about max.Limits, or it possibly just won't work.
---
Or then, you have to get a hold onto Your Server Management, and find out, if they are willing to raise the
Server RAM ACCESS Limit to 640MB, or at least 512MB, or, in the worst case to miminum 256MB, or then,
rent a server, including more RAM.
---
And you may check the Upload_max_filesize Value as well, as long as you're playing around in there...
And edit your both OC php.ini files accordingly, as well, by nature of things ! :D
---
Good Luck ;)
Ernie
Last edited by IP_CAM on Wed May 11, 2016 2:11 am, edited 8 times in total.

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by artcore » Wed May 11, 2016 2:01 am

This one is not memory related I think.
Add to your .htaccess

Code: Select all

php_value max_input_vars 3000
php_value suhosin.get.max_vars 3000
php_value suhosin.post.max_vars 3000
php_value suhosin.request.max_vars 3000
And hopefully that'll sort it.

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands

Post by Dizi » Wed May 11, 2016 2:33 am

Hi,
thank you both for so quick answer.

This is what i have in my php.ini:
magic_quotes_gpc = Off;
register_globals = Off;
default_charset = UTF-8;
memory_limit = 64M;
max_input_time = 18000;
post_max_size = 60M;
max_execution_time = 18000;
upload_max_filesize = 999M;
safe_mode = Off;
mysql.connect_timeout = 20;
session.use_cookies = On;
session.use_trans_sid = Off;
session.gc_maxlifetime = 12000000;
allow_url_fopen = on;
Tried to set memory_limit to 999Mb on both files, but still the same.

Going to add your lines now, artcore.
Last edited by straightlight on Wed Aug 03, 2016 1:59 am, edited 1 time in total.
Reason: Added quote tags.

Active Member

Posts

Joined
Thu Dec 29, 2011 7:44 pm

Post by Dizi » Wed May 11, 2016 2:46 am

Ardcore, could you please tell me where do i put this lines in .htacess? Is showing 500 internal server error

Active Member

Posts

Joined
Thu Dec 29, 2011 7:44 pm

Post by IP_CAM » Wed May 11, 2016 3:12 am

999MB would not work anyway, exept, if you know a Hoster very personally, or have your own Server ! ;D
Better start with 256MB, to check it out.
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by artcore » Wed May 11, 2016 4:22 am

Dizi wrote:Artcore, could you please tell me where do i put this lines in .htacess? Is showing 500 internal server error
Leave out the suhosin lines, maybe you're not allowed to change this by your host.
You can add it at the very bottom of the file

http://php.net/manual/en/info.configura ... input-vars

Or try adding it to php.ini
max_input_vars = 3000;

If this doesn't work you have to ask your host to do it for you! If they have suhosin and you're not allowed to change it, you're toast :)

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands

Post by Dizi » Wed May 11, 2016 5:36 am

Here's my feedback.
Tried to change memory_limit to 256M and nothing. Then tried 128M and nothing again.
Add the line php_value max_input_vars 3000 into .htacess and got a 500 internal server error.
With any hope tried to add the line max_input_vars = 3000 into php.ini as artcore recommend and works perfectly.

Thank you so much both.

Active Member

Posts

Joined
Thu Dec 29, 2011 7:44 pm

Post by IP_CAM » Wed May 11, 2016 7:08 am

But, as I wrote, it's absolutely useless, trying to change the max.memory value, without contacting a Hoster first,
and make sure, one really get's this Amount of memory. In most Cases, on cheap Servers, this WILL NOT be the case.
Just to re-mention this!
Ernie3

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by artcore » Wed May 11, 2016 2:50 pm

It won't matter Ernie if you change it in htaccess or ini, a decent host will never allow you to raise the memory; on shared hosting at least. No reason to contact them like you wouldn't contact your car dealer that you're about to drive at 300 km/h with your 25 year old Opel Astra (I know ou like metaphors :) )

Memory issues are when you time out, ie it fills up and halts the app.
This is about the maximum amount of variables that PHP allows to process. You should really look at each case as a different matter and read carefully about the issue at hand.

Just saying as to not confuse future readers.
BTW I'm in the hosting business myself :)

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands

Post by Dizi » Wed May 11, 2016 6:37 pm

Good morning,
Lol Artcore. Nice metaphor :D
I've changed the memory_limit to 128M, but i think it's useless. 128M or 999M it's still the same because it didn't increase server memory. For now, i'm working without no errors, but never know what is going to happen in a few days.

Active Member

Posts

Joined
Thu Dec 29, 2011 7:44 pm
Who is online

Users browsing this forum: Baidu [Spider] and 20 guests