Hello, i just patch my server to latest version of Zend Server, but now everytime i add new module (even on fresh clean install), the pop up return:
500 - An error has occurred.
Serialization of 'SimpleXMLElement' is not allowed
Also the old error of "*Warning*: usort() [function.usort<http://cyclops/ercomx2/administrator/function.usort>]: Array was modified by the user comparison function in * D:\zend\Apache2\htdocs\xxxxxxx\libraries\joomla\utilities\arrayhelper.php*o n line *463" *is still exist
hope someone here can share a light on me... any zend server user here ?
On Sat, Jul 28, 2012 at 7:13 AM, Viktor Iwan <vic...@doxadigital.com> wrote:
> Hello,
> i just patch my server to latest version of Zend Server, but now everytime i
> add new module (even on fresh clean install), the pop up return:
> 500 - An error has occurred.
> Serialization of 'SimpleXMLElement' is not allowed
> Also the old error of "Warning: usort() [function.usort]: Array was modified
> by the user comparison function in
> D:\zend\Apache2\htdocs\xxxxxxx\libraries\joomla\utilities\arrayhelper.php on
> line 463"
> is still exist
> hope someone here can share a light on me... any zend server user here ?
> --
> You received this message because you are subscribed to the Google Groups
> "Joomla! General Development" group.
> To view this discussion on the web, visit
> https://groups.google.com/d/msg/joomla-dev-general/-/PDANHd5-B4kJ.
> To post to this group, send an email to joomla-dev-general@googlegroups.com.
> To unsubscribe from this group, send email to
> joomla-dev-general+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/joomla-dev-general?hl=en-GB.
i trace the error and find the problem arise on /components/com_moudles/models/select.php line 145: $items = JArrayHelper::sortObjects($items, 'name', 1, true, $lang->getLocale());
so the problem caused by the 'famous' usort bug:
What makes this funny and challanging is that usort() is never been a problem in version 2.5.3 and previous. It all start happen in 2.5.4 and above... i compare source code of arrayhelper.php in 2.5.3 and 2.5.6 and there's no such difference..
what makes me curious is there's no problem in 2.5.3 and previous version, i assume joomla use different approach to use JArrayHelper::sortObjects() in 2.5.4 and above
> On Sat, Jul 28, 2012 at 7:13 AM, Viktor Iwan <vic...@doxadigital.com> > wrote: > > Hello, > > i just patch my server to latest version of Zend Server, but now > everytime i > > add new module (even on fresh clean install), the pop up return:
> > 500 - An error has occurred.
> > Serialization of 'SimpleXMLElement' is not allowed
> > Also the old error of "Warning: usort() [function.usort]: Array was > modified > > by the user comparison function in
> D:\zend\Apache2\htdocs\xxxxxxx\libraries\joomla\utilities\arrayhelper.php > on > > line 463" > > is still exist
> > hope someone here can share a light on me... any zend server user here ?
> > -- > > You received this message because you are subscribed to the Google > Groups > > "Joomla! General Development" group. > > To view this discussion on the web, visit > > https://groups.google.com/d/msg/joomla-dev-general/-/PDANHd5-B4kJ. > > To post to this group, send an email to > joomla-dev-general@googlegroups.com. > > To unsubscribe from this group, send email to > > joomla-dev-general+unsubscribe@googlegroups.com. > > For more options, visit this group at > > http://groups.google.com/group/joomla-dev-general?hl=en-GB.
Since it seems to be an issue when there is an exception it makes me wonder if something was changed to an exception and that's where it is coming from. The solution in the comments of the php manual of turning off warnings before using usort seems like a not great but workable solution.
On Sunday, July 29, 2012 12:09:21 AM UTC-4, Viktor Iwan wrote:
> Zend Server 5.6 SP2 is based on php 5.3.14
> i trace the error and find the problem arise on > /components/com_moudles/models/select.php line 145: > $items = JArrayHelper::sortObjects($items, 'name', 1, true, > $lang->getLocale());
> so the problem caused by the 'famous' usort bug:
> What makes this funny and challanging is that usort() is never been a > problem in version 2.5.3 and previous. It all start happen in 2.5.4 and > above... > i compare source code of arrayhelper.php in 2.5.3 and 2.5.6 and there's no > such difference..
> what makes me curious is there's no problem in 2.5.3 and previous version, > i assume joomla use different approach to use JArrayHelper::sortObjects() > in 2.5.4 and above
> On Sunday, July 29, 2012 12:27:54 AM UTC+7, Samuel Moffatt wrote:
>> On Sat, Jul 28, 2012 at 7:13 AM, Viktor Iwan <vic...@doxadigital.com> >> wrote: >> > Hello, >> > i just patch my server to latest version of Zend Server, but now >> everytime i >> > add new module (even on fresh clean install), the pop up return:
>> > 500 - An error has occurred.
>> > Serialization of 'SimpleXMLElement' is not allowed
>> > Also the old error of "Warning: usort() [function.usort]: Array was >> modified >> > by the user comparison function in
>> D:\zend\Apache2\htdocs\xxxxxxx\libraries\joomla\utilities\arrayhelper.php >> on >> > line 463" >> > is still exist
>> > hope someone here can share a light on me... any zend server user here >> ?
>> > -- >> > You received this message because you are subscribed to the Google >> Groups >> > "Joomla! General Development" group. >> > To view this discussion on the web, visit >> > https://groups.google.com/d/msg/joomla-dev-general/-/PDANHd5-B4kJ. >> > To post to this group, send an email to >> joomla-dev-general@googlegroups.com. >> > To unsubscribe from this group, send email to >> > joomla-dev-general+unsubscribe@googlegroups.com. >> > For more options, visit this group at >> > http://groups.google.com/group/joomla-dev-general?hl=en-GB.
Can you try changing line 463 to: $errorReporting = error_reporting(); error_reporting(0); usort($a, array(__CLASS__, '_sortObjects')); error_reporting($errorReporting); and see if that "solves" it?
On Sunday, July 29, 2012 8:04:54 AM UTC-4, elin wrote:
> Since it seems to be an issue when there is an exception it makes me > wonder if something was changed to an exception and that's where it is > coming from. The solution in the comments of the php manual of turning off > warnings before using usort seems like a not great but workable solution.
> Elin
> On Sunday, July 29, 2012 12:09:21 AM UTC-4, Viktor Iwan wrote:
>> Zend Server 5.6 SP2 is based on php 5.3.14
>> i trace the error and find the problem arise on >> /components/com_moudles/models/select.php line 145: >> $items = JArrayHelper::sortObjects($items, 'name', 1, true, >> $lang->getLocale());
>> so the problem caused by the 'famous' usort bug:
>> What makes this funny and challanging is that usort() is never been a >> problem in version 2.5.3 and previous. It all start happen in 2.5.4 and >> above... >> i compare source code of arrayhelper.php in 2.5.3 and 2.5.6 and there's >> no such difference..
>> i'm hoping someone can dig deeper as this is beyond my expertise.. the >> problem already reported here, but no one seems care about it >> https://github.com/joomla/joomla-cms/issues/179
>> what makes me curious is there's no problem in 2.5.3 and previous >> version, i assume joomla use different approach to use >> JArrayHelper::sortObjects() in 2.5.4 and above
>> On Sunday, July 29, 2012 12:27:54 AM UTC+7, Samuel Moffatt wrote:
>>> On Sat, Jul 28, 2012 at 7:13 AM, Viktor Iwan <vic...@doxadigital.com> >>> wrote: >>> > Hello, >>> > i just patch my server to latest version of Zend Server, but now >>> everytime i >>> > add new module (even on fresh clean install), the pop up return:
>>> > 500 - An error has occurred.
>>> > Serialization of 'SimpleXMLElement' is not allowed
>>> > Also the old error of "Warning: usort() [function.usort]: Array was >>> modified >>> > by the user comparison function in
>>> D:\zend\Apache2\htdocs\xxxxxxx\libraries\joomla\utilities\arrayhelper.php >>> on >>> > line 463" >>> > is still exist
>>> > hope someone here can share a light on me... any zend server user here >>> ?
>>> > -- >>> > You received this message because you are subscribed to the Google >>> Groups >>> > "Joomla! General Development" group. >>> > To view this discussion on the web, visit >>> > https://groups.google.com/d/msg/joomla-dev-general/-/PDANHd5-B4kJ. >>> > To post to this group, send an email to >>> joomla-dev-general@googlegroups.com. >>> > To unsubscribe from this group, send email to >>> > joomla-dev-general+unsubscribe@googlegroups.com. >>> > For more options, visit this group at >>> > http://groups.google.com/group/joomla-dev-general?hl=en-GB.
Now, my temporary solution is to ignore the warning with '@' : @usort($a, array(__CLASS__, '_sortObjects'));
This bug slow down my joomla... in Extension Manager > Manage ... the query to list all component, module, and plugin is more than 60 seconds in local computer.. :( it highly related to usort's bug...
On Sunday, July 29, 2012 7:28:11 PM UTC+7, elin wrote:
> Can you try changing line 463 to: > $errorReporting = error_reporting(); > error_reporting(0); > usort($a, array(__CLASS__, '_sortObjects')); > error_reporting($errorReporting); > and see if that "solves" it?
> Elin
> On Sunday, July 29, 2012 8:04:54 AM UTC-4, elin wrote:
>> Since it seems to be an issue when there is an exception it makes me >> wonder if something was changed to an exception and that's where it is >> coming from. The solution in the comments of the php manual of turning off >> warnings before using usort seems like a not great but workable solution.
>> Elin
>> On Sunday, July 29, 2012 12:09:21 AM UTC-4, Viktor Iwan wrote:
>>> Zend Server 5.6 SP2 is based on php 5.3.14
>>> i trace the error and find the problem arise on >>> /components/com_moudles/models/select.php line 145: >>> $items = JArrayHelper::sortObjects($items, 'name', 1, true, >>> $lang->getLocale());
>>> so the problem caused by the 'famous' usort bug:
>>> What makes this funny and challanging is that usort() is never been a >>> problem in version 2.5.3 and previous. It all start happen in 2.5.4 and >>> above... >>> i compare source code of arrayhelper.php in 2.5.3 and 2.5.6 and there's >>> no such difference..
>>> i'm hoping someone can dig deeper as this is beyond my expertise.. the >>> problem already reported here, but no one seems care about it >>> https://github.com/joomla/joomla-cms/issues/179
>>> what makes me curious is there's no problem in 2.5.3 and previous >>> version, i assume joomla use different approach to use >>> JArrayHelper::sortObjects() in 2.5.4 and above
>>> On Sunday, July 29, 2012 12:27:54 AM UTC+7, Samuel Moffatt wrote:
>>>> On Sat, Jul 28, 2012 at 7:13 AM, Viktor Iwan <vic...@doxadigital.com> >>>> wrote: >>>> > Hello, >>>> > i just patch my server to latest version of Zend Server, but now >>>> everytime i >>>> > add new module (even on fresh clean install), the pop up return:
>>>> > 500 - An error has occurred.
>>>> > Serialization of 'SimpleXMLElement' is not allowed
>>>> > Also the old error of "Warning: usort() [function.usort]: Array was >>>> modified >>>> > by the user comparison function in
>>>> D:\zend\Apache2\htdocs\xxxxxxx\libraries\joomla\utilities\arrayhelper.php >>>> on >>>> > line 463" >>>> > is still exist
>>>> > hope someone here can share a light on me... any zend server user >>>> here ?
>>>> > -- >>>> > You received this message because you are subscribed to the Google >>>> Groups >>>> > "Joomla! General Development" group. >>>> > To view this discussion on the web, visit >>>> > https://groups.google.com/d/msg/joomla-dev-general/-/PDANHd5-B4kJ. >>>> > To post to this group, send an email to >>>> joomla-dev-general@googlegroups.com. >>>> > To unsubscribe from this group, send email to >>>> > joomla-dev-general+unsubscribe@googlegroups.com. >>>> > For more options, visit this group at >>>> > http://groups.google.com/group/joomla-dev-general?hl=en-GB.
@ is not going to solve the problem just turn off the warning, not a good idea. And yes I am wondering if that is why we get some of the slow load reports we do, it could be because of an exception thrown far away. Please try what i suggested and let us know what happens.
On Monday, July 30, 2012 3:16:13 PM UTC-4, Viktor Iwan wrote:
> Now, my temporary solution is to ignore the warning with '@' : > @usort($a, array(__CLASS__, '_sortObjects'));
> This bug slow down my joomla... in Extension Manager > Manage ... the > query to list all component, module, and plugin is more than 60 seconds in > local computer.. :( > it highly related to usort's bug...
> On Sunday, July 29, 2012 7:28:11 PM UTC+7, elin wrote:
>> Can you try changing line 463 to: >> $errorReporting = error_reporting(); >> error_reporting(0); >> usort($a, array(__CLASS__, '_sortObjects')); >> error_reporting($errorReporting); >> and see if that "solves" it?
>> Elin
>> On Sunday, July 29, 2012 8:04:54 AM UTC-4, elin wrote:
>>> Since it seems to be an issue when there is an exception it makes me >>> wonder if something was changed to an exception and that's where it is >>> coming from. The solution in the comments of the php manual of turning off >>> warnings before using usort seems like a not great but workable solution.
>>> Elin
>>> On Sunday, July 29, 2012 12:09:21 AM UTC-4, Viktor Iwan wrote:
>>>> Zend Server 5.6 SP2 is based on php 5.3.14
>>>> i trace the error and find the problem arise on >>>> /components/com_moudles/models/select.php line 145: >>>> $items = JArrayHelper::sortObjects($items, 'name', 1, true, >>>> $lang->getLocale());
>>>> so the problem caused by the 'famous' usort bug:
>>>> What makes this funny and challanging is that usort() is never been a >>>> problem in version 2.5.3 and previous. It all start happen in 2.5.4 and >>>> above... >>>> i compare source code of arrayhelper.php in 2.5.3 and 2.5.6 and there's >>>> no such difference..
>>>> i'm hoping someone can dig deeper as this is beyond my expertise.. the >>>> problem already reported here, but no one seems care about it >>>> https://github.com/joomla/joomla-cms/issues/179
>>>> what makes me curious is there's no problem in 2.5.3 and previous >>>> version, i assume joomla use different approach to use >>>> JArrayHelper::sortObjects() in 2.5.4 and above
>>>> On Sunday, July 29, 2012 12:27:54 AM UTC+7, Samuel Moffatt wrote:
>>>>> On Sat, Jul 28, 2012 at 7:13 AM, Viktor Iwan <vic...@doxadigital.com> >>>>> wrote: >>>>> > Hello, >>>>> > i just patch my server to latest version of Zend Server, but now >>>>> everytime i >>>>> > add new module (even on fresh clean install), the pop up return:
>>>>> > 500 - An error has occurred.
>>>>> > Serialization of 'SimpleXMLElement' is not allowed
>>>>> > Also the old error of "Warning: usort() [function.usort]: Array was >>>>> modified >>>>> > by the user comparison function in
>>>>> D:\zend\Apache2\htdocs\xxxxxxx\libraries\joomla\utilities\arrayhelper.php >>>>> on >>>>> > line 463" >>>>> > is still exist
>>>>> > hope someone here can share a light on me... any zend server user >>>>> here ?
>>>>> > -- >>>>> > You received this message because you are subscribed to the Google >>>>> Groups >>>>> > "Joomla! General Development" group. >>>>> > To view this discussion on the web, visit >>>>> > https://groups.google.com/d/msg/joomla-dev-general/-/PDANHd5-B4kJ. >>>>> > To post to this group, send an email to >>>>> joomla-dev-general@googlegroups.com. >>>>> > To unsubscribe from this group, send email to >>>>> > joomla-dev-general+unsubscribe@googlegroups.com. >>>>> > For more options, visit this group at >>>>> > http://groups.google.com/group/joomla-dev-general?hl=en-GB.
On Tuesday, July 31, 2012 4:34:52 AM UTC+7, elin wrote:
> @ is not going to solve the problem just turn off the warning, not a good > idea. And yes I am wondering if that is why we get some of the slow load > reports we do, it could be because of an exception thrown far away. Please > try what i suggested and let us know what happens.
> Elin
> On Monday, July 30, 2012 3:16:13 PM UTC-4, Viktor Iwan wrote:
>> Now, my temporary solution is to ignore the warning with '@' : >> @usort($a, array(__CLASS__, '_sortObjects'));
>> This bug slow down my joomla... in Extension Manager > Manage ... the >> query to list all component, module, and plugin is more than 60 seconds in >> local computer.. :( >> it highly related to usort's bug...
>> On Sunday, July 29, 2012 7:28:11 PM UTC+7, elin wrote:
>>> Can you try changing line 463 to: >>> $errorReporting = error_reporting(); >>> error_reporting(0); >>> usort($a, array(__CLASS__, '_sortObjects')); >>> error_reporting($errorReporting); >>> and see if that "solves" it?
>>> Elin
>>> On Sunday, July 29, 2012 8:04:54 AM UTC-4, elin wrote:
>>>> Since it seems to be an issue when there is an exception it makes me >>>> wonder if something was changed to an exception and that's where it is >>>> coming from. The solution in the comments of the php manual of turning off >>>> warnings before using usort seems like a not great but workable solution.
>>>> Elin
>>>> On Sunday, July 29, 2012 12:09:21 AM UTC-4, Viktor Iwan wrote:
>>>>> Zend Server 5.6 SP2 is based on php 5.3.14
>>>>> i trace the error and find the problem arise on >>>>> /components/com_moudles/models/select.php line 145: >>>>> $items = JArrayHelper::sortObjects($items, 'name', 1, true, >>>>> $lang->getLocale());
>>>>> so the problem caused by the 'famous' usort bug:
>>>>> What makes this funny and challanging is that usort() is never been a >>>>> problem in version 2.5.3 and previous. It all start happen in 2.5.4 and >>>>> above... >>>>> i compare source code of arrayhelper.php in 2.5.3 and 2.5.6 and >>>>> there's no such difference..
>>>>> i'm hoping someone can dig deeper as this is beyond my expertise.. the >>>>> problem already reported here, but no one seems care about it >>>>> https://github.com/joomla/joomla-cms/issues/179
>>>>> what makes me curious is there's no problem in 2.5.3 and previous >>>>> version, i assume joomla use different approach to use >>>>> JArrayHelper::sortObjects() in 2.5.4 and above
>>>>> On Sunday, July 29, 2012 12:27:54 AM UTC+7, Samuel Moffatt wrote:
>>>>>> On Sat, Jul 28, 2012 at 7:13 AM, Viktor Iwan <vic...@doxadigital.com> >>>>>> wrote: >>>>>> > Hello, >>>>>> > i just patch my server to latest version of Zend Server, but now >>>>>> everytime i >>>>>> > add new module (even on fresh clean install), the pop up return:
>>>>>> > 500 - An error has occurred.
>>>>>> > Serialization of 'SimpleXMLElement' is not allowed
>>>>>> > Also the old error of "Warning: usort() [function.usort]: Array was >>>>>> modified >>>>>> > by the user comparison function in
>>>>>> D:\zend\Apache2\htdocs\xxxxxxx\libraries\joomla\utilities\arrayhelper.php >>>>>> on >>>>>> > line 463" >>>>>> > is still exist
>>>>>> > hope someone here can share a light on me... any zend server user >>>>>> here ?
>>>>>> > -- >>>>>> > You received this message because you are subscribed to the Google >>>>>> Groups >>>>>> > "Joomla! General Development" group. >>>>>> > To view this discussion on the web, visit >>>>>> > https://groups.google.com/d/msg/joomla-dev-general/-/PDANHd5-B4kJ. >>>>>> > To post to this group, send an email to >>>>>> joomla-dev-general@googlegroups.com. >>>>>> > To unsubscribe from this group, send email to >>>>>> > joomla-dev-general+unsubscribe@googlegroups.com. >>>>>> > For more options, visit this group at >>>>>> > http://groups.google.com/group/joomla-dev-general?hl=en-GB.
Hope several core joomla team can aware of this problem, coz i've been (and i believe some developer as well) 'living' with this bug since march. Have to be patience when joomla becomes slow...
On Tuesday, July 31, 2012 10:53:59 PM UTC+7, Viktor Iwan wrote:
> Hi Elin, thanks to put your attention in it... > no its not solve the problem.. i'll put some video for this...
> On Tuesday, July 31, 2012 4:34:52 AM UTC+7, elin wrote:
>> @ is not going to solve the problem just turn off the warning, not a good >> idea. And yes I am wondering if that is why we get some of the slow load >> reports we do, it could be because of an exception thrown far away. Please >> try what i suggested and let us know what happens.
>> Elin
>> On Monday, July 30, 2012 3:16:13 PM UTC-4, Viktor Iwan wrote:
>>> Now, my temporary solution is to ignore the warning with '@' : >>> @usort($a, array(__CLASS__, '_sortObjects'));
>>> This bug slow down my joomla... in Extension Manager > Manage ... the >>> query to list all component, module, and plugin is more than 60 seconds in >>> local computer.. :( >>> it highly related to usort's bug...
>>> On Sunday, July 29, 2012 7:28:11 PM UTC+7, elin wrote:
>>>> Can you try changing line 463 to: >>>> $errorReporting = error_reporting(); >>>> error_reporting(0); >>>> usort($a, array(__CLASS__, '_sortObjects')); >>>> error_reporting($errorReporting); >>>> and see if that "solves" it?
>>>> Elin
>>>> On Sunday, July 29, 2012 8:04:54 AM UTC-4, elin wrote:
>>>>> Since it seems to be an issue when there is an exception it makes me >>>>> wonder if something was changed to an exception and that's where it is >>>>> coming from. The solution in the comments of the php manual of turning off >>>>> warnings before using usort seems like a not great but workable solution.
>>>>> Elin
>>>>> On Sunday, July 29, 2012 12:09:21 AM UTC-4, Viktor Iwan wrote:
>>>>>> Zend Server 5.6 SP2 is based on php 5.3.14
>>>>>> i trace the error and find the problem arise on >>>>>> /components/com_moudles/models/select.php line 145: >>>>>> $items = JArrayHelper::sortObjects($items, 'name', 1, true, >>>>>> $lang->getLocale());
>>>>>> so the problem caused by the 'famous' usort bug:
>>>>>> What makes this funny and challanging is that usort() is never been a >>>>>> problem in version 2.5.3 and previous. It all start happen in 2.5.4 and >>>>>> above... >>>>>> i compare source code of arrayhelper.php in 2.5.3 and 2.5.6 and >>>>>> there's no such difference..
>>>>>> i'm hoping someone can dig deeper as this is beyond my expertise.. >>>>>> the problem already reported here, but no one seems care about it >>>>>> https://github.com/joomla/joomla-cms/issues/179
>>>>>> what makes me curious is there's no problem in 2.5.3 and previous >>>>>> version, i assume joomla use different approach to use >>>>>> JArrayHelper::sortObjects() in 2.5.4 and above
>>>>>> On Sunday, July 29, 2012 12:27:54 AM UTC+7, Samuel Moffatt wrote:
>>>>>>> On Sat, Jul 28, 2012 at 7:13 AM, Viktor Iwan <vic...@doxadigital.com> >>>>>>> wrote: >>>>>>> > Hello, >>>>>>> > i just patch my server to latest version of Zend Server, but now >>>>>>> everytime i >>>>>>> > add new module (even on fresh clean install), the pop up return:
>>>>>>> > 500 - An error has occurred.
>>>>>>> > Serialization of 'SimpleXMLElement' is not allowed
>>>>>>> > Also the old error of "Warning: usort() [function.usort]: Array >>>>>>> was modified >>>>>>> > by the user comparison function in
>>>>>>> D:\zend\Apache2\htdocs\xxxxxxx\libraries\joomla\utilities\arrayhelper.php >>>>>>> on >>>>>>> > line 463" >>>>>>> > is still exist
>>>>>>> > hope someone here can share a light on me... any zend server user >>>>>>> here ?
>>>>>>> > -- >>>>>>> > You received this message because you are subscribed to the Google >>>>>>> Groups >>>>>>> > "Joomla! General Development" group. >>>>>>> > To view this discussion on the web, visit >>>>>>> > https://groups.google.com/d/msg/joomla-dev-general/-/PDANHd5-B4kJ.
>>>>>>> > To post to this group, send an email to >>>>>>> joomla-dev-general@googlegroups.com. >>>>>>> > To unsubscribe from this group, send email to >>>>>>> > joomla-dev-general+unsubscribe@googlegroups.com. >>>>>>> > For more options, visit this group at >>>>>>> > http://groups.google.com/group/joomla-dev-general?hl=en-GB.