Fatal Error After Cache Clearing Job

Permalink
I am getting a fatal error message that shows up on the bottom of every page.
This happened after I installed the "Clear Cache" addon. The addon is basically just a job that clears the cache. I tried uninstalling it, but the error is still there, even after clearing cache manually.

Fatal error: Call to undefined function curl_init() in C:\Web Sites\ejequipment.com\concrete\startup\jobs.php on line 35


Ideas for a fix?

PineCreativeLabs
 
JohntheFish replied on at Permalink Reply
JohntheFish
At a guess, curl is either not enabled or not installed. The core jobs page thinks it has a job scheduled and is trying to run it.

You can hack the database to clear the entries in the Jobs table for isScheduled and remove the row for the job you have deleted.

Failing that, the whole section of core startup code is gated by the constant ENABLE_JOB_SCHEDULING that looks like it is set from the Config table. Deleting that entry should disable that block of startup code.

You may alternatively be able to define the constant ENABLE_JOB_SCHEDULING in config/site as false.

Also check whether you have curl available with phpinfo.

With that out of the way, you could report it as a core bug 'ENABLE_JOB_SCHEDULING causes a crash if curl is not available'

I suspect the section of breaking code would be more robust if it used the file helper to get the file rather than curl directly, as the file helper already handles errors.