Page 1 of 1

chmod related PHP error is returned by ajaxCall()

Posted: 13 November 2020, 23:44
by zigareth
Good evening,

The following payload is returned after calling an action through ajaxCall() on the client side :

<br />
<b>Warning</b>: chmod() has been disabled for security reasons in <b>/usr/share/php/Log/file.php</b> on line <b>223</b><br />
{"status":"0","error":"More than one possible action at this state","expected":0,"code":100,"stack":"#0 \/var\/tournoi\/release\/games\/ziga\/999999-9999\/ziga.game.php(247): Gamestate->nextState()\n#1 \/var\/tournoi\/release\/games\/ziga\/999999-9999\/ziga.action.php(71): ziga->st_getRandomDice()\n#2 \/var\/tournoi\/release\/tournoi-201112-0929-gs\/www\/include\/webActionCore.inc.php(189): action_ziga->doRollAction()\n#3 \/var\/tournoi\/release\/tournoi-201112-0929-gs\/www\/index.php(242): launchWebAction('ziga', 'action_ziga', 'doRollAction', false, false, NULL, true, false)\n#4 {main}"}

This makes it impossible for ajaxCall() to parse the return. I'm doing something wrong that make me encounter this ?

Zigareth

Re: chmod related HPP error is returned by ajaxCall()

Posted: 14 November 2020, 01:10
by Victoria_La
i think its just random error, can you reproduce it?

Re: chmod related HPP error is returned by ajaxCall()

Posted: 14 November 2020, 11:38
by zigareth
Victoria_La wrote: 14 November 2020, 01:10 i think its just random error, can you reproduce it?
Not today, 100% reproducible yesterday night though !
Will keep you posted if I reproduce it.
Thank you for your feedback !