Problem with upgrading from 5.6.0.2 to 5.6.2.1 in database
Permalink
I have been able to point Concrete5 to the new 5.6.2.1 core in the upgrades folder, but my database still thinks it is using 5.6.0.2.
I tried using the upgrade tool at mysite.com/index.php/tools/required/upgrade.php, however I got this error message:
"Fatal error: Cannot instantiate abstract class Job in /home/percep9/public_html/updates/concrete5.6.2.1_updater/concrete/core/models/job.php on line 271"
The site is still working, not broken, but I cannot find any information on this error or how to fix it in the forums. The error is originating in the new core package. Any thoughts?
I tried using the upgrade tool at mysite.com/index.php/tools/required/upgrade.php, however I got this error message:
"Fatal error: Cannot instantiate abstract class Job in /home/percep9/public_html/updates/concrete5.6.2.1_updater/concrete/core/models/job.php on line 271"
The site is still working, not broken, but I cannot find any information on this error or how to fix it in the forums. The error is originating in the new core package. Any thoughts?
I'm having the very same error message when attempting to update. Have you had any success in dealing with it?
I'm having the same issue with a clients site.
Tried various C5 updating methods, none seem to work?
Tried various C5 updating methods, none seem to work?
weird. seems like a bug to me. do you have any custom automated jobs defined for your site? the code is trying to instantiate a class that's defined as abstract only to fill it with a bunch of "your job is invalid" type of data. a quick and dirty workaround for now would maybe be to override that behavior in the core by just commenting out the stuff around line 271 like this:
just make sure you save the old copy though.
}else{ //$invalidJob = new Job(); //$invalidJob->jName = $className; //$invalidJob->jHandle=$jHandle; //$invalidJob->jDescription = t('Error: Invalid Job file. The class %s was not found in %s .', $className, $path); //$invalidJob->invalid=1; //$jobObjs[$jHandle] = $invalidJob; }
just make sure you save the old copy though.
Here's a screenshot of my jobs dashboard. You aren't talking about the automated jobs, right? I have no custom jobs setup. I am not sure where I need to look for the line of code you quoted to comment it out.
I have had no success. I tried a different update method, broke the site, had to re-upload the files, and then gave up after that and forgot about my post here.
I have another site using the same host, and I tried to update that today and got the exact same error message, which made me think it was an issue with my host. I have no special jobs setup or anything. I am using Web Hosting Hub. I have also considered contacting them to see if they can help me resolve this issue.
I will try cherry cake's suggestion on my site that is much smaller, not so many files to re-upload if it breaks again.
I have another site using the same host, and I tried to update that today and got the exact same error message, which made me think it was an issue with my host. I have no special jobs setup or anything. I am using Web Hosting Hub. I have also considered contacting them to see if they can help me resolve this issue.
I will try cherry cake's suggestion on my site that is much smaller, not so many files to re-upload if it breaks again.
Thanks to cherry, I found an old custom job, changed file name and C5 updated.
Success! Thanks for your input Steve. I accessed my Jobs folder and there were two index files in there for some unknown reason. I downloaded the files, deleted them from the server and tried updating again, and it worked!
Hope this thread helps some others out there.
Hope this thread helps some others out there.