Post by mixosx » Tue May 12, 2015 6:08 pm

I have 266 filters in 1 group in opencart. Then I am trying to add the 267th and I get this error:

Notice: Undefined index: filter_description in /home/eshop/public_html/admin/controller/catalog/filter.php on
line 386

Warning: Invalid argument supplied for foreach() in
/home/eshop/public_html/admin/controller/catalog/filter.php on
line 386

Notice: Undefined index: sort_order in
/home/eshop/public_html/vqmod/vqcache/vq2-admin_model_catalog_filter.php
on line 48

Notice: Undefined index: filter_description in
/home/eshop/public_html/vqmod/vqcache/vq2-admin_model_catalog_filter.php
on line 53

Warning: Invalid argument supplied for foreach() in
/home/eshop/public_html/vqmod/vqcache/vq2-admin_model_catalog_filter.php
on line 53

Warning: Cannot modify header information - headers already
sent by (output started at
/home/eshop/public_html/admin/index.php:85) in
/home/eshop/public_html/vqmod/vqcache/vq2-system_engine_controller.php
on line 28

Warning: Cannot modify header information - headers already
sent by (output started at
/home/eshop/public_html/admin/index.php:85) in
/home/eshop/public_html/vqmod/vqcache/vq2-system_engine_controller.php
on line 29

Is there a limit in the number of filters in a group? My Oc version is 1.5.6.4

Newbie

Posts

Joined
Tue May 12, 2015 6:03 pm

Post by blinkin21 » Wed Jul 08, 2015 6:58 pm

any idea? i need to add more filters to group.
is there a way to remove the max no of filters in a group?

thanks

Newbie

Posts

Joined
Fri Apr 05, 2013 3:31 pm

Post by deepvision » Wed Jul 08, 2015 10:19 pm

There is no such limit in the OpenCart.
Maybe there is a limit on the maximum size of post requests on your hosting.
Try adding the following into the php.ini in your site root:

Code: Select all

post_max_size 100M

ImageImageImage


User avatar
Active Member

Posts

Joined
Tue May 19, 2015 1:03 am

Post by blinkin21 » Thu Jul 09, 2015 3:55 pm

thanks for your reply... no positive results.
this is what i get still:

Code: Select all

Notice: Undefined index: filter_description in /home/dezmembraripeuge/public_html/admin/controller/catalog/filter.php on line 386Warning: Invalid argument supplied for foreach() in /home/dezmembraripeuge/public_html/admin/controller/catalog/filter.php on line 386Notice: Undefined index: sort_order in /home/dezmembraripeuge/public_html/admin/model/catalog/filter.php on line 40Notice: Undefined index: filter_description in /home/dezmembraripeuge/public_html/admin/model/catalog/filter.php on line 47Warning: Invalid argument supplied for foreach() in /home/dezmembraripeuge/public_html/admin/model/catalog/filter.php on line 47Warning: Cannot modify header information - headers already sent by (output started at /home/dezmembraripeuge/public_html/admin/index.php:85) in /home/dezmembraripeuge/public_html/vqmod/vqcache/vq2-system_engine_controller.php on line 44Warning: Cannot modify header information - headers already sent by (output started at /home/dezmembraripeuge/public_html/admin/index.php:85) in /home/dezmembraripeuge/public_html/vqmod/vqcache/vq2-system_engine_controller.php on line 45
if i go to filters, and try adding a filter, i can insert one, but it deletes the last one ever inserted.

i'm stuck...can't figure this thing out...
any help would be very much appreciated.

thanks.

later edit:
i have removed 3 filter entries, saved, and tried adding one by one.
so: i added: "test 2", saved ok
added "test 3", saved ok.
but when adding "test 4" filter, it returned the error posted earlier.
i counted all the filters and i have 249 successfully inserted filters in in filter category.
when trying to add the 250th, it returns that error.

any ideas? thank you.

later edit2:
i have found that max tables is set to 250. and cannot increase to 500.
now i'm working on that :(
Image
http://tinypic.com/r/9zlev9/8

later edit 3:
well, the value will be increased to 500 by the host admin, and everything should work out great. i hope this feedback will help someone sometimes.

so, if you cannot add more filters in a filter category, check in sql config:

Code: Select all

$cfg['MaxTableList']
Type:	integer
Default value:	250
have a nice day

Newbie

Posts

Joined
Fri Apr 05, 2013 3:31 pm

Post by deepvision » Thu Jul 09, 2015 7:31 pm

MaxTableList has nothing to do with your problem.

ImageImageImage


User avatar
Active Member

Posts

Joined
Tue May 19, 2015 1:03 am

Post by deepvision » Thu Jul 09, 2015 7:56 pm

What is your OC version? 1.5.x ?
Would you put the following code into a new file named info.php inside you admin folder, then open it in the browser:
http://your-domain.com/admin/info.php
and send me its output?

Code: Select all

<?php
phpinfo();

ImageImageImage


User avatar
Active Member

Posts

Joined
Tue May 19, 2015 1:03 am

Post by deepvision » Thu Jul 09, 2015 10:57 pm

Turned out that

Code: Select all

max_input_vars = 1000 
was not enough.

The following line in admin/.htaccess fixed the issue

Code: Select all

php_value max_input_vars 2000 

ImageImageImage


User avatar
Active Member

Posts

Joined
Tue May 19, 2015 1:03 am
Who is online

Users browsing this forum: No registered users and 10 guests