Forums | Mahara Community

Developers /
Stress test - php warning generate a site unavailable message


Aurelien Besson's profile picture
Posts: 10

17 May 2019, 7:39 AM

Hi,

Sometimes during my stress test (25 users in 1 min to acces some randomly pages) , i get this error in php logs :

[WAR] b9 (lib/errors.php:540) Unsupported operand types
[16-May-2019 14:24:59 America/Atikokan] Call stack (most recent first):
[16-May-2019 14:24:59 America/Atikokan] * exception(object(Error)) at Unknown:0

And in the result page i can see 

Site unavailable
A nonrecoverable error occurred. This probably means you have encountered a bug in the system

 

I am not able to trace what happened and why some users can get this message, and if this php warning generate a site unavailable message.

 

Thank you

 

 

Robert Lyon's profile picture
Posts: 488

17 May 2019, 8:54 AM

Hi Aurelien,

It sounds similar to this bug https://bugs.launchpad.net/mahara/+bug/1816840

Where the cached DWOO template doesn't exist so the template is generated but the generation fails

These generated templates live in [dataroot]/dwoo/cache and [dataroot]/dwoo/compile directories

I thought this was fixed but it sounds like it is still happening

Cheers

Robert

Aurelien Besson's profile picture
Posts: 10

18 May 2019, 2:00 AM

Finaly it's allrights, my test was on 18.10.

After applying you patch the result is perfect :

  • stress test with 25 users in 1 minutes - OK no erros
    test with 125 users during 30 minutes - OK no errors
  • We plan to deploy 18.10.1 just after another test charge, to valide the good results.

Thank you Robert

3 results