News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMF Quiz

Started by Diego Andrés, February 18, 2009, 01:08:19 PM

Previous topic - Next topic

jsx

What are these quizzes? What is this modification all about? I ask because I don't really understand. Are they some kind of games?

Dave J

Quote from: jsx on September 13, 2024, 05:18:15 PMWhat are these quizzes? What is this modification all about? I ask because I don't really understand. Are they some kind of games?

Have a look here https://www.quizland.co.uk/index.php?action=SMFQuiz

You wont be able to play quizzes or games unless your a member/logged in

Dave J

Hi Diego,

I'm  getting a reoccurring error in my php log as attached. Do you know why and if you do could you fix it please?
I have uninstalled the mod and reinstalled it but the error remains. I have checked the scheduled tasks and the quiz is there and enabled

[19-Sep-2024 22:05:22 Europe/London] PHP Fatal error:  Uncaught Error: Class "Quiz\Tasks\Scheduled" not found in quizland.co.uk/public_html/Sources/Subs.php:5978
Stack trace:
#0 quizland.co.uk/public_html/Sources/ScheduledTasks.php(112): call_helper()
#1 quizland.co.uk/public_html/cron.php(150): AutoTask()
#2 {main}
  thrown in quizland.co.uk/public_html/Sources/Subs.php on line 5978

Diego Andrés

I can't reproduce it, what PHP version are you running?
You should have that file in Sources/Quiz/Tasks/Scheduled.php

The error in your Subs.php implies that you're missing the callable in the row in smf_scheduled_tasks, for the row that has quiz_maintenance as value in the task column. You should also verify this.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Dave J

#1124
Hi Diego,

I'm running php8.0. The file is there and I have uninstalled the quiz and reinstalled it and the error is still remains

Diego Andrés

I'm running the same version, installed the MOD in two forums, don't have the issue.
Did you check the table?
What happens when you run the task manually?

SMF Tricks - Free & Premium Responsive Themes for SMF.

Dave J

I'll try it manually now. Manually doesn't cause the error it seems it's only the auto schedule that's causing it.

extracts from todays php log

  thrown in /quizland.co.uk/public_html/Sources/Subs.php on line 5978
[22-Sep-2024 13:27:32 Europe/London] PHP Fatal error:  Uncaught Error: Class "Quiz\Tasks\Scheduled" not found in /quizland.co.uk/public_html/Sources/Subs.php:5978
Stack trace:
#0 /quizland.co.uk/public_html/Sources/ScheduledTasks.php(112): call_helper()
#1 /quizland.co.uk/public_html/cron.php(150): AutoTask()
#2 {main}
  thrown in /quizland.co.uk/public_html/Sources/Subs.php on line 5978
[22-Sep-2024 14:02:12 Europe/London] PHP Fatal error:  Uncaught Error: Class "Quiz\Tasks\Scheduled" not found in /quizland.co.uk/public_html/Sources/Subs.php:5978
Stack trace:
#0 /quizland.co.uk/public_html/Sources/ScheduledTasks.php(112): call_helper()
#1 /quizland.co.uk/public_html/cron.php(150): AutoTask()
#2 {main}
  thrown in /quizland.co.uk/public_html/Sources/Subs.php on line 5978
[22-Sep-2024 15:05:34 Europe/London] PHP Fatal error:  Uncaught Error: Class "Quiz\Tasks\Scheduled" not found in /quizland.co.uk/public_html/Sources/Subs.php:5978
Stack trace:
#0 /quizland.co.uk/public_html/Sources/ScheduledTasks.php(112): call_helper()
#1 /quizland.co.uk/public_html/cron.php(150): AutoTask()
#2 {main}
  thrown in /quizland.co.uk/public_html/Sources/Subs.php on line 5978
[22-Sep-2024 16:04:01 Europe/London] PHP Fatal error:  Uncaught Error: Class "Quiz\Tasks\Scheduled" not found in /quizland.co.uk/public_html/Sources/Subs.php:5978
Stack trace:
#0 /quizland.co.uk/public_html/Sources/ScheduledTasks.php(112): call_helper()
#1 /quizland.co.uk/public_html/cron.php(150): AutoTask()
#2 {main}
  thrown in /quizland.co.uk/public_html/Sources/Subs.php on line 5978
[22-Sep-2024 17:02:34 Europe/London] PHP Fatal error:  Uncaught Error: Class "Quiz\Tasks\Scheduled" not found in /quizland.co.uk/public_html/Sources/Subs.php:5978
Stack trace:
#0 /quizland.co.uk/public_html/Sources/ScheduledTasks.php(112): call_helper()
#1 /quizland.co.uk/public_html/cron.php(150): AutoTask()
#2 {main}
  thrown in /quizland.co.uk/public_html/Sources/Subs.php on line 5978

Dave J

Sorry I have to go for a while I'll be back later. What table do you mean?

Diego Andrés

This one.

Quote from: Diego Andrés on September 22, 2024, 11:55:50 AMThe error in your Subs.php implies that you're missing the callable in the row in smf_scheduled_tasks, for the row that has quiz_maintenance as value in the task column. You should also verify this.

There isn't much to go on from there if the task is working and the file isn't missing... Probably something else.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Advertisement: