ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

[Bug] Input class nulls post value/object if any special chars are used on PHP Version 5.3.5

April 25, 2011 2:06am

Subscribe [4]
  • #1 / Apr 25, 2011 2:06am

    iain

    317 posts

    Doing some looking around and it appears to be a CI issue: Bitbucket bug report, but thought I’d post here too as it appears to be affecting ExpressionEngine here on my local install.

    Running MAMP, PHP Version 5.3.5 - any post data is returned as null if any special chars are used.

    To replicate publish a new entry in EE, with the title set as “wäre”. The entry is not accepted and user is notified “The Title field is required.”

    I noticed this whilst building a module and $this->EE->input->post() was returning NULL if any special/foreign chars were used.

    Thought I’d post here before filing a bug as it appears to be logged on BitBucket, but would appreciate if there was a hot-fix other than rolling back a PHP version…

  • #2 / Apr 25, 2011 2:39pm

    Sue Crocker

    26054 posts

    Thanks, Iain. I’ll mention this to the dev team. Thanks in advance for your patience.

  • #3 / Apr 25, 2011 7:05pm

    iain

    317 posts

    Hiya,

    in the attached archive there’s a phpinfo and a php.ini, running a pretty vanilla MAMP setup Version (1.9.5)

    Cheers!

  • #4 / Apr 26, 2011 12:12pm

    Sue Crocker

    26054 posts

    Thanks for the additional info. The dev team have a link to this particular thread..

  • #5 / May 01, 2011 7:54am

    goodmixer

    31 posts

    Having similar problem running ee2.1.3 and Mamp Pro 1.9.6.1

    If any special characters are entered into a custom field (€, ‘’ etc) it causes the entire contents of the field to drop.

  • #6 / May 01, 2011 2:46pm

    Greg Salt

    3988 posts

    Hi goodmixer,

    Are you also running PHP 5.3.5 in Mamp Pro 1.9.6.1? Are you getting any error message like Iain?

    Cheers

    Greg

  • #7 / May 01, 2011 6:15pm

    goodmixer

    31 posts

    Greg,

    Running PHP 5.3.5 in MAMP Pro. I had not got error message as I had not put special chars in a required field. Quick test shows that a € symbol in title throws up same error as Iain.

  • #8 / May 02, 2011 6:33am

    goodmixer

    31 posts

    Issue not present when PHP Version is rolled back to 5.2.17

  • #9 / May 03, 2011 12:29pm

    Sue Crocker

    26054 posts

    Hi, goodmixer. Yes, I can replicate the issue as well on PHP 5.3.5 MAMP. I’m mentioning this to the dev team to see what they have to say about it.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases