HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


[Resolved] Catalog field issues

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#95897 (In Topic #19060)
Avatar

Community saint

I'm stumped

Can someone tell me if there is a settable limit to the number of catalog fields in a category?

I have several catalogs, one of which has 51 fields. I can add fields to the smaller catalogs, but not the big one. I can populate the form, hit the save button and it appears to save it. But, when opening the catalog to add an entry, the new field isn't there.

I originally thought this was a permission problem, but the permissions are set identically on all catalogs. It doesn't matter which user (administrator or normal user with elevated privileges) is trying to add the new field, the results are the same.

Or, maybe I've gone off the deep end and totally forgotten how to use catalogs.  O_o  :lol:

Steve
Back to the top
 
Posted
Rating:
#95898
Avatar

Look at PHP post_max_vars setting, and similar Suhosin setting. Our recommended.htaccess should have example overrides.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#95899
Avatar

Actually I got the names wrong, see these bits of recommended.htaccess:

php_value max_input_vars "2000"
php_value suhosin.post.max_vars "2000"
php_value suhosin.request.max_vars "2000"
php_value suhosin.post.max_totalname_length "10000"
php_value suhosin.request.max_totalname_length "10000"


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#95901
Avatar

Community saint

Chris Graham said

Actually I got the names wrong, see these bits of recommended.htaccess:

php_value max_input_vars "2000"
php_value suhosin.post.max_vars "2000"
php_value suhosin.request.max_vars "2000"
php_value suhosin.post.max_totalname_length "10000"
php_value suhosin.request.max_totalname_length "10000"


I've increased those values in my .htacess by 1,000% with no change in results after restarting Apache with each increase.

Looking at phpinfo, it appears the .htaccess values are not being picked up. I'll look into this more over the next few days and make the changes server-wide if need be.

Thanks, Chris, for getting me pointed in the right direction.

Steve
Back to the top
 
Posted
Rating:
#95904
Avatar

Community saint

This is working now.

htaccess was being read but those values were not being picked up so I ended up just putting them in the php.ini config for my domain. If I have the same issues with my other domains on the server, I'll just make this change server-wide.

Steve
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: