WPPIZZA_MAX_TEMPLATESPP

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #12155
    Olly
    Admin & Mod

      THIS CONSTANT IS NOT REQUIRED ON MOST SERVERS

      what it does:
      by default wppizza->templates will show 5 templates per page. Templates can have many variables that need to be posted to save the settings.

      Although most servers will have a default limit of accepting 1000 post variables (or more) at the same time, some are set to accept a lot fewer (especially servers with suhosin installed might limit this significantly).

      If you find that variables/settings/templates are not saved, try setting this constant to fewer than 5 (perhaps 3 or even just 1).

      However, if you still experience problems saving your templates/values even with these lower settings, you will have to ask your host or server administrator to increase the post_max_variables settings (or equivalent for suhosin if installed) as there is nothing i would be able to do to work around these restrictions.

      affects:
      admin/backend only

      usable:
      anytime, can also be changed or deleted again at any time.

      example:

      
      define('WPPIZZA_MAX_TEMPLATESPP',3);/*integer >=1*/
      

      where to add/define:

      in your wp-config.php before:
      /* That's all, stop editing! Happy blogging. */

      Disclaimer:
      As with all filters, actions and constants:
      Although these should be safe to use as indicated, there are no guarantees. Use at your own risk. Make backups before usage.

    Viewing 1 post (of 1 total)
    • The topic ‘WPPIZZA_MAX_TEMPLATESPP’ is closed to new replies.