• Resolved alanbaker

    (@bakeralanbakernet)


    Thanks for your excellent plugin.

    In Manage Reports I can create a report with up to about 42 fields displayed. When I add more and click the Save Changes button, those fields are not saved. How can I build a report with more fields? I need about 70 in all.

    Alan

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    You’ll want to tweak your PHP configuration (possibly php.ini on your host, ask your host how to modify it), specifically the max_input_vars option.

    https://stackoverflow.com/a/9399708/423330

    For each report field, there are something like 10-15 inputs for all of the options available. So that’s around 1050 inputs, which means you want to set your max_input_vars to something more like 1500-2000.

    Thread Starter alanbaker

    (@bakeralanbakernet)

    Thanks, Scott. max_input_vars was at 2000, so I bumped it up to 3000 and got two more fields. I bumped it up again to 4000, but there was no improvement, so I’m still unable to add abut 16 fields.

    Any other suggestions? My php.ini looks like this:

    post_max_size = 64M
    upload_max_size = 64M
    upload_max_filesize = 64M
    memory_limit = 256M
    max_execution_time = 300
    max_input_time = 1000
    max_input_vars = 4000;

    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    Historically this has been resolved with max_input_vars increase.

    Try upping the post_max_size or the memory_limit to see if that helps further?

    Thread Starter alanbaker

    (@bakeralanbakernet)

    Doubling those two enabled me to add two more fields. Tough one. I’m running out of (your) ideas. 8-(

    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    Is it timing out? Or does it just save those first few only, and loads up the page again without the others?

    Thread Starter alanbaker

    (@bakeralanbakernet)

    No timeout. When the page refreshes after pressing Save Changes, the latest added fields are gone. It saves up to some limit.

    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    Is it possible your host is using Suhosin? If so, you could try setting these two other config options to match your max_input_vars

    
    max_input_vars = 4000
    suhosin.request.max_vars = 4000
    suhosin.post.max_vars = 4000
    
    Thread Starter alanbaker

    (@bakeralanbakernet)

    Alas, not that I know of.

    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    I had planned to refactor the interface so it wasn’t so heavy when submitting, but never got around to doing that. At some point I will be bringing this tool into a Pods interface which will be more easily refactored for this purpose but I don’t have a current plan to redo this plugin in the future. I only plan on adding minor fixes and enhancements until the Pods rewrite.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Create report with more than 42 fields’ is closed to new replies.