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.

Found critical bug.

August 25, 2011 6:39am

Subscribe [4]
  • #1 / Aug 25, 2011 6:39am

    rusk

    4 posts

    Already posted it in core support forum and bug tracker.. The problem is still here. Can anybody help me?

    ExpressionEngine v2.1.1

    Api_channel_entries.php: line 86

    $this->_initialize(array('channel_id', 'entry_id', 'autosave'));

    Api.php: line 101

    foreach ($params as $param => $val)
    {
        $this->{$param} = $val;
    }

    Assigning class property with digital name breaks script on Ubuntu 10.04, php+xdebug enviroinment.

    How to reproduce: install xdebug, EE and try to add new entry to EE channel.

    See here rules for variable naming:

    http://www.php.net/manual/en/language.variables.basics.php

  • #2 / Aug 25, 2011 5:21pm

    Lisa Wess

    20502 posts

    Hi rusk,

    Can you confirm your version? You say 2.1.1 in which case this is likely fixed.

    Thank you!

  • #3 / Oct 25, 2011 5:48am

    rusk

    4 posts

    Thank you for reply.

    The next question is how can I update my installation? I’m a developer myself and have entered product code here in my user registration profile, but when I click “download here” link from my installation, I get documentation downloads only.

  • #4 / Oct 25, 2011 8:50am

    Sue Crocker

    26054 posts

    Hi, rusk. We show you as having a Support Credit, but not an actual license. You’d need to have the actual license holder do the download.

    Does that help?

  • #5 / Oct 26, 2011 9:53am

    rusk

    4 posts

    Yes, thank you. I’ve called to license holder and got new version.

    By the way. New version have an old easy to fix issue, which do not allow xdebug usage with EE. I’ve allready fixed it a while ago but installer owerwrited my fix.

    system/expressionengine/libraries/Functions.php line 3699

    $this->action_ids[ucfirst($class)][$method] = $method;

    This line breaks script execution without any messages. It’s likely xdebug issue, I’ve allready wrote them in bugtracker. Looks like xdebug memory usage error.

    By the way if you will assign ucfirst() return value to a variable and use this variable as array index - it works fine. Here is exact my fix:

    function fetch_action_id($class, $method)
    {
    if ($class == '' OR $method == '')
    {
    return FALSE;
    }
      $tt = ucfirst($class);
      $this->action_ids[$tt][$method] = $method;
     
      return LD.‘AID:’.ucfirst($class).’:’.$method.RD;
    }

    This issue affects xdebug users only.

  • #6 / Oct 27, 2011 7:30pm

    Dan Decker

    7338 posts

    rusk,

    Thanks for taking the time to outline the issue and the fix, we sure do appreciate it. Is there anything else we can assist you with?

    Cheers,

  • #7 / Oct 28, 2011 9:15am

    rusk

    4 posts

    No, thanx. Just add please this little fix to sources so i will not need to search and fix it again after next update.

  • #8 / Oct 29, 2011 8:55am

    Mark Bowen

    12637 posts

    Hi rusk,

    Glad that you’re all sorted now. Thanks for letting us know.

    If anything else crops up then please don’t hesitate to post again as needed.

    Thanks,

    Mark

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

ExpressionEngine News!

#eecms, #events, #releases