Download & Extend

Fix undefined feeds_reschedule() when upgrading (feeds not updating on cron)

Project:Feeds
Version:6.x-1.x-dev
Component:User interface
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

An error occurred. http://www.mysite.com/mysite/update.php?id=67&op=do
Fatal error: Call to undefined function feeds_reschedule() in /home/autop5/public_html/subdomain/sites/all/modules/feeds/feeds.install on line 557

This occurs after running update php on newest feeds version.

When I proceed to error page, I get this:
user warning: Unknown table 'feeds_schedule' query: DROP TABLE feeds_schedule in /home/autop5/public_html/mysite/includes/database.mysql-common.inc on line 261.

The update process was aborted prematurely while running update #6012 in feeds.module. All errors have been logged.

Comments

#1

Title:Error message» undefined feeds_reschedule() when upgrading
Status:active» postponed (maintainer needs more info)

What version do you upgrade from?

The situation looks very strange. It's almost like you're upgrading on a site that has a Feeds beta 7 schema, a beta 7 .install file, and a beta 5 .module file..

Please make sure that prior to upgrading you've replaced (i. e. removed old directory, moved new directory in place), not overwritten your existing feeds directory.

#2

I upgraded from beta 5 and did all of the following. Maybe an isolated issue so I just uninstalled and deleted all the old files to get a completely fresh beta 7 install and everything is good now. Thanks.

#3

Same thing happened to me, same error. Updating from beta 5.

The update process was aborted prematurely while running update #6012 in feeds.module. All errors have been logged. You may need to check the watchdog database table manually.

An error occurred. http://www.mysite.com/update.php?id=151&op=do
Fatal error: Call to undefined function feeds_reschedule() in /var/www/vhosts/mysite.com/httpdocs/sites/all/modules/feeds/feeds.install on line 557

Logged error:
Unknown table 'mysite_feeds_schedule' query: DROP TABLE mysite_feeds_schedule in /var/www/vhosts/mysite.com/httpdocs/includes/database.mysql-common.inc on line 261.

#4

Status:postponed (maintainer needs more info)» needs review

Please apply this patch and let me know whether this works. Relying on the module's API function again turns out to be not advisable. I may commit this patch rather sooner than later.

AttachmentSizeStatusTest resultOperations
916962-4_reschedule.patch1.65 KBIgnored: Check issue status.NoneNone

#5

Title:undefined feeds_reschedule() when upgrading» undefined feeds_reschedule() when upgrading (feeds not updating on cron)
Priority:normal» critical

This issue is critical, overlapping bug reports at the end of the thread here: #705444: Feed Nodes don't import on Cron with Feeds Beta7 + Job Scheduler

#6

Improved patch, will reschedule feeds for all versions, also from beta7.

Testing now and committing soon.

AttachmentSizeStatusTest resultOperations
916962-6_reschedule.patch2.29 KBIgnored: Check issue status.NoneNone

#7

Title:undefined feeds_reschedule() when upgrading (feeds not updating on cron)» Fix undefined feeds_reschedule() when upgrading (feeds not updating on cron)
Version:6.x-1.0-beta7» 6.x-1.x-dev
Status:needs review» fixed

This is committed now. Thank you for reporting.

http://drupal.org/cvs?commit=427334

#8

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.