CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Error on upgrade to 4.08
Pages: [1]

Author Topic: Error on upgrade to 4.08  (Read 910 times)

dotman

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.0
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Error on upgrade to 4.08
January 31, 2012, 10:01:50 pm
Followed the directions and everything went fine. Reneabled all supporting crm modules, and then i ran the "update" script afterwards on the modules page, which said I had one pending update relating to Civi (7400 - Update CiviCRM module weight), and got this error:

An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://itmlui.org/update.php?id=24&op=do StatusText: OK ResponseText: Fatal error: Call to undefined function update_sql() in /home/itmlui/www/www/sites/all/modules/civicrm/drupal/civicrm.install on line 61

Is my install fubared? Also on my dashboard, instead of showing what is configured, it is showing a login form for each item even though I'm logged in and I've taken the site out of Maintenance mode.

I do seem to be able to navigate the Civi pages, but there is definitely something wrong.

Any thoughts on what I should do next?

Thanks,
Doug
« Last Edit: January 31, 2012, 10:20:28 pm by dotman »

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Error on upgrade to 4.08
January 31, 2012, 10:49:58 pm
Quote
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://itmlui.org/update.php?id=24&op=do StatusText: OK ResponseText: Fatal error: Call to undefined function update_sql() in /home/itmlui/www/www/sites/all/modules/civicrm/drupal/civicrm.install on line 61

This was a bug and fixed in 4.1, can you make following changes:

Replace:
Quote
return array(update_sql("UPDATE {system} SET weight = 100 WHERE name = 'civicrm'"));
With:
Quote
db_query("UPDATE {system} SET weight = 100 WHERE name = 'civicrm'");

And then run update.php

Quote
Is my install fubared? Also on my dashboard, instead of showing what is configured, it is showing a login form for each item even though I'm logged in and I've taken the site out of Maintenance mode.
Can you try "Refresh Dashboard" and check if that works.

Quote
I do seem to be able to navigate the Civi pages, but there is definitely something wrong.
Can you double check if your "Resource Url" is correct.

HTh
Kurund
Found this reply helpful? Support CiviCRM

dotman

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.0
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Re: Error on upgrade to 4.08
February 01, 2012, 08:01:05 am
Thanks for the patch, that made the update go smoothly this time. The dashboard seems to be a permission problem with the admin user. I've given him full access in drupal, synced his role in civi as well as added him the administrator group in civi, but he still get's a lot of "access denied" on some pages.

Doesn't make a lot of sense since I went in to drupal and created a new user with admin permissions, gave him full access to administer CiviCRM, synced his role and civi and added him to the admin group, and he doesn't have those issues. Is there something I might have missed?

Thanks,
Doug

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Error on upgrade to 4.08

This forum was archived on 2017-11-26.