Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-17674

TC-78 - Registering a new user raises a php_warning

    Details

      Description

      Hi,

      When clicking the "Register" button, there is a php_warning:
      array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in /data1/www/apache2php52/ezporacle/.run/kernel/classes/ezpersistentobject.php on line 123

      Steps to reproduce
      • Access the plain_site
      • Click on register button
      • register the new user
      • when commiting the new user information the error is raised

        Issue Links

          Activity

          Hide
          Bertrand Dunogier added a comment -

          Couldn't reproduce, please provide more details if any. Or as André said, a trace could let us figure out when and why it happens.

          Show
          Bertrand Dunogier added a comment - Couldn't reproduce, please provide more details if any. Or as André said, a trace could let us figure out when and why it happens.
          Hide
          Paulo Cardiga added a comment -

          Cannot reproduce anylonger. (4.5.0beta1)

          Show
          Paulo Cardiga added a comment - Cannot reproduce anylonger. (4.5.0beta1)
          Hide
          Paulo Cardiga added a comment -

          Cannot reproduce on V4.5.0 Beta1

          Show
          Paulo Cardiga added a comment - Cannot reproduce on V4.5.0 Beta1
          Hide
          Paulo Cardiga added a comment -

          The same warning appeared on Oracle environment today.

          Show
          Paulo Cardiga added a comment - The same warning appeared on Oracle environment today.
          Hide
          Bertrand Dunogier added a comment -

          Reproduced on plain_site/ezoracle:

          Warning: array_key_exists() expects parameter 2 to be array, string given in kernel/classes/ezpersistentobject.php on line 125
          Call Stack

          1. Time Memory Function Location
            1 0.0004 335260 {main}

            ( ) ../index.php:0
            2 0.0645 2063788 eZModule->run( ) ../index.php:712
            3 0.0646 2069868 eZProcess::run( ) ../ezmodule.php:1574
            4 0.0646 2070148 eZProcess->runFile( ) ../ezprocess.php:41
            5 0.0646 2071652 include( 'kernel/user/register.php' ) ../ezprocess.php:66
            6 0.0716 2270284 include( kernel/content/attribute_edit.php' ) ../register.php:311
            7 0.7398 5040484 eZModule->runHooks( ) ../attribute_edit.php:411
            8 0.7398 5041532 call_user_func_array ( ) ../ezmodule.php:1241
            9 0.7398 5041592 checkContentActions( ) ../ezmodule.php:0
            10 0.7400 5044156 eZOperationHandler::execute( ) ../register.php:202
            11 0.7449 5274772 eZModuleOperationInfo->execute( ) ../ezoperationhandler.php:80
            12 0.7530 5342476 eZModuleOperationInfo->executeBody( ) ../ezmoduleoperationinfo.php:240
            13 0.7592 5433076 eZModuleOperationInfo->executeClassMethod( ) ../ezmoduleoperationinfo.php:553
            14 0.7628 5535308 call_user_func_array ( ) ../ezmoduleoperationinfo.php:833
            15 0.7628 5535560 eZUserOperationCollection->sendActivationEmail( ) ../ezmoduleoperationinfo.php:0
            16 0.7678 5550148 eZUserOperationCollection::activation( ) ../ezuseroperationcollection.php:134
            17 0.7795 5593612 eZPersistentObject->store( ) ../ezuseroperationcollection.php:303
            18 0.7795 5593656 eZPersistentObject::storeObject( ) ../ezpersistentobject.php:257
            19 0.7797 5599688 eZPersistentObject::replaceFieldsWithShortNames( ) ../ezpersistentobject.php:421
            20 0.7798 5600080 array_key_exists ( ) ../ezpersistentobject.php:125

          Show
          Bertrand Dunogier added a comment - Reproduced on plain_site/ezoracle: Warning: array_key_exists() expects parameter 2 to be array, string given in kernel/classes/ezpersistentobject.php on line 125 Call Stack Time Memory Function Location 1 0.0004 335260 {main} ( ) ../index.php:0 2 0.0645 2063788 eZModule->run( ) ../index.php:712 3 0.0646 2069868 eZProcess::run( ) ../ezmodule.php:1574 4 0.0646 2070148 eZProcess->runFile( ) ../ezprocess.php:41 5 0.0646 2071652 include( 'kernel/user/register.php' ) ../ezprocess.php:66 6 0.0716 2270284 include( kernel/content/attribute_edit.php' ) ../register.php:311 7 0.7398 5040484 eZModule->runHooks( ) ../attribute_edit.php:411 8 0.7398 5041532 call_user_func_array ( ) ../ezmodule.php:1241 9 0.7398 5041592 checkContentActions( ) ../ezmodule.php:0 10 0.7400 5044156 eZOperationHandler::execute( ) ../register.php:202 11 0.7449 5274772 eZModuleOperationInfo->execute( ) ../ezoperationhandler.php:80 12 0.7530 5342476 eZModuleOperationInfo->executeBody( ) ../ezmoduleoperationinfo.php:240 13 0.7592 5433076 eZModuleOperationInfo->executeClassMethod( ) ../ezmoduleoperationinfo.php:553 14 0.7628 5535308 call_user_func_array ( ) ../ezmoduleoperationinfo.php:833 15 0.7628 5535560 eZUserOperationCollection->sendActivationEmail( ) ../ezmoduleoperationinfo.php:0 16 0.7678 5550148 eZUserOperationCollection::activation( ) ../ezuseroperationcollection.php:134 17 0.7795 5593612 eZPersistentObject->store( ) ../ezuseroperationcollection.php:303 18 0.7795 5593656 eZPersistentObject::storeObject( ) ../ezpersistentobject.php:257 19 0.7797 5599688 eZPersistentObject::replaceFieldsWithShortNames( ) ../ezpersistentobject.php:421 20 0.7798 5600080 array_key_exists ( ) ../ezpersistentobject.php:125
          Hide
          Bertrand Dunogier added a comment -

          Fixed in https://github.com/ezsystems/ezpublish/commit/02b269f. Caused by a loose persistent object fields definition in eZUserAccountKey.

          Show
          Bertrand Dunogier added a comment - Fixed in https://github.com/ezsystems/ezpublish/commit/02b269f . Caused by a loose persistent object fields definition in eZUserAccountKey.
          Hide
          ezrobot added a comment -

          This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

          Show
          ezrobot added a comment - This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

            People

            • Assignee:
              Bertrand Dunogier
              Reporter:
              Paulo Cardiga
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: