fl4p / WP-Filebase

WP-Filebase
http://wpfilebase.com/
34 stars 36 forks source link

WP-Filebase Error: Could not include class file 'CCron'! #21

Closed wcanermaster closed 8 years ago

wcanermaster commented 8 years ago

After updating the wordpress to new version 4.4.1, the wp-cron file was changed and there has occured a problem on crons. When i run the link 'http://www.website.com/wp-cron.php?doing_wp_cron', the problem 'WP-Filebase Error: Could not include class file 'CCron'!' has been appaired. Thus, my wordpress and other apps using cron do not work properly.

I have find the new rows which are ''if (defined('DOING_CRON') && DOING_CRON) { wpfb_loadclass('CCron'); WPFB_CCron::SetLogFile(self::GetLogFile('ccron')); WPFB_CCron::doCron($_GET); }" added on WP-cron and probably causing the problem.

clickwork-git commented 8 years ago

Same or similar here.

The file CCron.php in /wp-filebase/classes is missing.

Till it's fixed you can delete the following from /wp-filebase/classes/Core.php (line 107);

if (defined('DOING_CRON') && DOING_CRON) {
   wpfb_loadclass('CCron');
   WPFB_CCron::SetLogFile(self::GetLogFile('ccron'));
   WPFB_CCron::doCron($_GET);
}
fl4p commented 8 years ago

Has been fixed. https://github.com/f4bsch/WP-Filebase/commit/5ffbfeaa9dbee07466bfeb912b73f44cd6453c9e#diff-1b9a7c8734bc52a00c418e7723d78a83L107

wcanermaster commented 8 years ago

Thanks for fast response! Great job..