-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught Error: Call to a member function set() on null in include/class.schedule.php:370 #6167
Comments
Looks like the issue happens when importing default schedules. Did you get any SQL errors related to schedule table? |
Where can i find this errors? |
In your MySQL error logs. You can check your MySQL config or consult the MySQL documentation to find the path to your MySQL error logs. You can also check the osTicket System Logs to see if any SQL Errors were logged there as well. Cheers. |
I found this error |
I increased the max_execution_time and for 2 times the upgrade works successfully! |
@JediKev @protich What i noticed is that cron job was executing, it can be the cause of the problem? |
Any solution? |
I fixed the problem by migrating to new server |
Prerequisites
[] Do you have any errors in the PHP error log, or javascript console? Yes
[] Did you check the osTicket forums? Yes
[*] Did you perform a cursory search to see if your bug or enhancement is already reported? Yes
Description
I tried to upgrade Osticket from 1.12 to 15.7, i followed all steps in this docs link but the upgrade failed.
The PHP Error
PHP Fatal error: Uncaught Error: Call to a member function set() on null in /public_html/include/class.schedule.php:370
Stack trace:
#0 /include/upgrader/streams/core/00c949a6-8b923d61.task.php(9): Schedule::create(Array)
#1 /include/class.upgrader.php(348): ScheduleCreator->run(30)
#2 /include/class.upgrader.php(121): StreamUpgrader->doTask()
#3 /include/ajax.upgrader.php(35): Upgrader->call('doTask', Array)
#4 /include/class.dispatcher.php(145): UpgraderAjaxAPI->upgrade()
#5 /include/class.dispatcher.php(38): UrlMatcher->dispatch('/upgrader', NULL)
#6 /scp/ajax.php(316): Dispatcher->resolve('/upgrader')
#7 {main}
thrown in /include/class.schedule.php on line 370
The database size is big about 50G
Steps to Reproduce
Expected behavior: Upgrade successfully made
Actual behavior: Upgrade failed
Versions
OS: Centos 7.9
WHM/Cpanel v102.0.15
Firefox 99.0 (64-bit)
The text was updated successfully, but these errors were encountered: