Hi, I just install the newest Module of CCK, Rule and Views at the same time and run the update.php at my multi-site. But the results were very different!! These modules had been installed under the /site/all/modules/ directory.

2 sites meet unexpeted error during update and return the following message in every page.
Fatal error: Call to undefined function rules_include() in
/home/mysite/public_html/sites/all/modules/rules/rules_admin/rules_admin.sets.inc on line 9

1 site meet unexpeted error during update and show the following message in status report
Database updates Out of date
Some modules have database schema updates to install. You should run the database update script immediately.

After I clear the cache of the problem sites, this site also shows the same message
Fatal error: Call to undefined function rules_include() in
/home/mysite/public_html/sites/all/modules/rules/rules_admin/rules_admin.sets.inc on line 9

But the other 3 sites is OK after the update.php. Why's that?

What can I do now??? Any suggestion???

Yes, I didn't back up the database and the files..........^^||| Please help!!! Thanks in advance.

Comments

happydrupal’s picture

After a detail review of database, I found that the schema_version of rule module in those failed upgrade sites is 6004, but the schema_version of rule module in those successful upgrade sites is 6005. Seems that upgrade to the corrected schema will get rid off the situation.

Is that possible upgrade the schema manually??? Pls help..Thanks in advance.

fago’s picture

Status: Active » Fixed

You can run the updates again - that doesn't harm. Just manually select them.
@fatal errors: Try removing all files and use a fresh module directory, so there are no old files in there. Then go to admin/build/modules and hit submit, to be sure the rules cache got cleared. Then it should work.

happydrupal’s picture

@fago, Thanks

Well........

I delete the rule module under the /site/all/modules/ directory and reinstall it. And the cache_rules table returns empty in phpMyAdmin.

After that, I got the same one line waring message in the white blank browser window when I run http://mysite/, http://mysite/user or http://mysite/admin over and over.
Fatal error: Call to undefined function rules_include() in /home/mysite/public_html/sites/all/modules/rules/rules_admin/rules_admin.sets.inc on line 9

When I run http://mysite/update.php I only got a blank window in Browser. Try to do the above step in different computer but got the same results.

Any clue??? Thanks in advnace!

happydrupal’s picture

Status: Fixed » Closed (won't fix)

I still want to know how to manually invoke or run the shema patch since update.php can not execute.....

Thanks in advance

happydrupal’s picture

Status: Closed (won't fix) » Active

keep status open again for help........Thanks.

mitchell’s picture

Title: Upgrade CCK, RULES, VIEWS module at the same time on the multisite but got very different results, why???? » Running multiple updates at the same time using multisite produces different results
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)
Issue tags: +multi-site

@happydrupal: This could be two separate issues, but for starters which versions produced each of those errors? And which error message do they associate with?

Suggestions:
1. Always make backups! There is no guarantee that volunteer developers will be able to solve your problem, so you have to be more careful.

2. Don't run multiple updates at the same time. Updating Drupal has proven to be rather delicate for me. If you have a backup, it helps to make sure you've done it right before moving to the next one.

3. I personally don't recommend Drupal's multi-site features. There are a number of other ways to do this, but an easy tip for sharing contributed modules across several drupal sites is to make symlink to 'sites/all/modules' from a common source.

happydrupal’s picture

Thanks for the above response and help..............I just learned a lot, especially under the back online pressure.

Yes, I should back up the data first before I do any update.
Yes, I shouldn't upgrade multiple modules at the same time which make things more complex.

Gee........ However, I just figured out some steps and solved the mess already. Here's how.........
1) Disabled the rule module from the database directly........find rule related modules in the "$db_prefix_system" table and set the status to 0 to disable these rule modules. Then the site should back online since rule modules didn't run anymore.

2) Uninstall the rule modules under http://mysite/admin/build/modules/uninstall.

3) Run http://mysite/update.php again to update the CCK and Views module. .....Yes, I did back up the data before I run uninstall, I learned already.

4) Copy the rule modules to the under the /sites/mysite/modules/ directory

5) enable the rule modules and then run http://mysite/update.php again ......Tada, Rule module finally updated!!!

OK, I'll back up the data first before I do any update.
OK, I'll not upgrade multiple modules at the same time which make things more complex.

I'll keep the above in mind.

Thanks again!

@mitchell

BTW, do you mean we should keep the drupal core separately in their root but only using symlink to share the common source of 'sites/all/modules'?? Thanks for the reply again.

mitchell’s picture

Status: Postponed (maintainer needs more info) » Fixed

@happydrupal: yes, that's what I do.

Status: Fixed » Closed (fixed)

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

mitchell’s picture

Component: Miscellaneous » Rules Core

Updated component.