All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Disallowed Key Characters error

Es Kay 7 Mar 2014 23:27 problem, complete

Hi,
I was playing around with the latest version of EE 2.8.0 & Low Variables 2.4.2 and while on my local dev environment everything was working great, when I migrated the testing site to an online staging server to debug it, when I tried to create a new low var, I got the error "Disallowed Key Characters".

In CodeIgniter's core/Input.php I edited the function _clean_input_keys($str)
and changed
exit('Disallowed Key Characters.');
to
exit('Disallowed Key Characters.' . ' : ' . $str);
so that I can see what string causes the problem.

It was the string: /cp/addons_modules/show_module_cp?module
from the full url:
http://my-staging-server-domain.com/s...

Any info on what's going on would be much appreciated,
Thanks in advance

Replies

  1. Low 8 Mar 2014 15:34

    I can't seem to replicate this. What kind of var were you saving? And what's your PHP version? Can you consistently recreate this behaviour?

  2. Es Kay 8 Mar 2014 23:36

    On my local dev environment it is working great with PHP 5.3.4
    On the online server with PHP 5.4.25 it happens constantly regardless of the variable type I choose.

    And I have no idea where to start debugging this behavior from.. It gives me no other info other than the error message itself and the string causing the problem which I forcefully grabbed by editing the core Input class.

    Where would you start looking for any clues?

  3. Low 9 Mar 2014 11:10

    Then it looks like it's environmental. Do you have mod_security installed on that server?

  4. Es Kay 9 Mar 2014 20:03

    This is a shared hosting server account so I don't have that much privilleges over its configuration.
    I ran a phpinfo() but the mod_security didn't show up.
    In fact the whole "Loaded Modules" section did not show up.
    I don't know if that means that the specific module is not there or if I can't see it due to missing privilleges..

  5. Low 10 Mar 2014 07:24

    Hmm, I see no reason why this is triggered. I'll need to take a look myself. Please send SuperAdmin login credentials to hi at gotolow dot com if you can.

  6. Es Kay 18 Mar 2014 16:02

    Hi again & excuse me for the late response but I was out of town on a business trip.

    I have taken down that staging server and I will rebuild it because it was giving me the feeling that some environmental variables were misconfigured.
    Not only regarding Low Variables, but other addons too.

    I will perform the same setup process step by step but this time I will debug/test every module & extension between steps hoping to track down what the fault was in the previous setup.

    I have the belief that it had something to do with the required session in Admin settings (as opposed to setting it to "cookies only") & the newest version of EE v2.8.0 (which is a little bit buggy)..

    If I find anything I will report it back in this thread for you and other people to study.

    Thanks again and keep up the great work!