Call to undefined function settings_get() since update

stanlog - July 12, 2009 - 10:15
Project:BitTorrent
Version:6.x-9.2-alpha6
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi,
I've got a problem when I'm updating Bittorrent module from "bittorrent-6.x-9.1.tar.gz" to "bittorrent-6.x-9.2-alpha6.tar.gz". After I've updated the module, i've got the message "Call to undefined function settings_get() in /xxxxx/sites/all/modules/bittorrent/bt_profile/bt_profile.module on line 48"

When I browse update.php, the page is displayed, I start update, and on finish (update.php?id=70&op=finished), I've got already the message "Call to undefined function settings_get() in..." blablabla ;-)

Could you help me ?
Thanks a lot
Regards

#1

stanlog - July 12, 2009 - 10:52

Now, I've the same error on line 103 :
"Fatal error: Call to undefined function settings_get() in /xxxxx/sites/all/modules/bittorrent/bt_profile/bt_profile.module on line 103"
line 103 in bt_profile.module : "if ($node->type == settings_get('content_profile_node_type_name')) {..."
However, I've got "settings-6.x-1.1-alpha3.tar.gz" installed and actived.

If these informations can help...
Regards

#2

overall - July 12, 2009 - 17:13

I'll try to solve this issue, need to think.

#3

overall - July 12, 2009 - 20:37

I cannot reproduce this error...

You can try to run following SQL script on your DB:
UPDATE system SET weight = -100 WHERE name = 'settings'
Or you can use http://drupal.org/project/util module to set "settings" module weight to "-100".

If this will not help, I'll try to help you again.

#4

ask - July 14, 2009 - 00:42

1) just roll back to alpha3
2) install the new dependency module http://ftp.drupal.org/files/projects/settings-6.x-1.1-alpha3.tar.gz
3) update to alpha6 or higher.

#5

ask - July 17, 2009 - 19:28

Sorry, I accept the problem is still there even after the install of 'settings' module. The problem appears when update.php is running. I've been updating from alpha3 to alpha6.
I've changed the priority of the settings module, but no luck, update.php is still failing with "Call to undefined function settings_get() in XXX/bt_profile.module on line 48".

 
 

Drupal is a registered trademark of Dries Buytaert.