how to ADD back "Generate Sitemap File" ?
Permalink
Accidentaly I've clicked remove under "Generate Sitemap File" in Scheduled Jobs/Installed jobs.
Now I don't see it as job any more.
How to reinstall this feature ?
Now I don't see it as job any more.
How to reinstall this feature ?
I too have deleted the generate_sitemap job from the Job page and would like to add the functionality back. Any tips anyone?
I you accidentally remove your "generate sitemap" job, you can restore it by running this query in phpMyAdmin or whatever tool you use to access your database:
INSERT INTO `Jobs` (`jName`,`jDescription`,`jDateInstalled`,`jDateLastRun`,`pkgID`,`jLastStatusText`,`jLastStatusCode`,`jStatus`,`jHandle`,`jNotUninstallable`) VALUES ('Generate Sitemap File','Generate the sitemap.xml file that search engines use to crawl your site.','',NULL,0,NULL,0,'ENABLED','generate_sitemap',0);
I you accidentally remove your "generate sitemap" job, you can restore it by running this query in phpMyAdmin or whatever tool you use to access your database:
INSERT INTO `Jobs` (`jName`,`jDescription`,`jDateInstalled`,`jDateLastRun`,`pkgID`,`jLastStatusText`,`jLastStatusCode`,`jStatus`,`jHandle`,`jNotUninstallable`) VALUES ('Generate Sitemap File','Generate the sitemap.xml file that search engines use to crawl your site.','',NULL,0,NULL,0,'ENABLED','generate_sitemap',0);
But I'd just suggest to replace the last zero with a 1 to make the job uninstallable to prevent the issue happening again :-)
INSERT INTO `Jobs` (`jName`,`jDescription`,`jDateInstalled`,`jDateLastRun`,`pkgID`,`jLastStatusText`,`jLastStatusCode`,`jStatus`,`jHandle`,`jNotUninstallable`) VALUES ('Generate Sitemap File','Generate the sitemap.xml file that search engines use to crawl your site.','',NULL,0,NULL,0,'ENABLED','generate_sitemap',1)
Thanks, that did the trick!
Just move the 'generate_sitemap.php' file from '/concrete/jobs/' to '/jobs/' (which is empty by default). Then you'll see the job with Install button in the dashboard.
Thank you ppl. mysql solution was OK for me.
c/p into jobs throw this error:
Fatal error: Cannot redeclare class GenerateSitemap in /home/***website***.com/public_html/concrete/jobs/generate_sitemap.php on line 104
c/p into jobs throw this error:
Fatal error: Cannot redeclare class GenerateSitemap in /home/***website***.com/public_html/concrete/jobs/generate_sitemap.php on line 104
Not copy, but MOVE. It would work.:-)
oic tnx :)
Be sure to move it back after restoring the job. . . in case you have to do it again sometime.
Sitemap generator was taking an unusually long time, so I removed it and reinstalled. Works fine now. Then I moved the generate_sitemap file back into concrete/jobs.
Sitemap generator was taking an unusually long time, so I removed it and reinstalled. Works fine now. Then I moved the generate_sitemap file back into concrete/jobs.