Quiz fails to proceed on save
When I click Proceed on the quiz we get the attached error. And the screen hangs.
Standard Joomla! Template, Fresh Joomla! Install.
When I click Proceed on the quiz we get the attached error. And the screen hangs.
Standard Joomla! Template, Fresh Joomla! Install.
Re: Quiz fails to proceed on save
by maverick » 2 years ago
Re: Quiz fails to proceed on save
by tonyp » 2 years ago
If you access this url:
xxxx
it will auto log youn in an show you the basic quiz. It's just shoved together for now with a single question.
Many thanks
Tony
Re: Quiz fails to proceed on save
by maverick » 2 years ago
There is a PHP notice message in json response.
<b>Notice</b>: Trying to get property of non-object in <b>.../components/com_communityquiz/controllers/response.json.php</b> on line <b>158</b><br />
As per above notice, the line at 158 in components/com_communityquiz/controllers/response.json.php is
$pageId = $app->input->getInt('jumptopageid', 0);
The variable $app can never be null. So I assume you have some custom modifications here. Could you please post code from line 155 to line 160 in that file?
Re: Quiz fails to proceed on save
by tonyp » 2 years ago
Hello,
No core files have been modified. I'll debug it and let you know.
Many thanks
Tony
Re: Quiz fails to proceed on save
by tonyp » 2 years ago
The issue is: $response is null, set it's not been set.
Change the duration if statement from:
if($duration > 0)
to:
if($duration > 0 && !is_null($response))
as a solution. You may know of a better one.
Many thanks
Tony
Re: Quiz fails to proceed on save
by maverick » 2 years ago
Re: Quiz fails to proceed on save
by tonyp » 2 years ago
As requested. This has been modified to if($duration > 0 && !is_null($response)).
Many thanks
Tony
Powered by CjForum
This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.