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 |
Jump to:
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
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
I'll try to solve this issue, need to think.
#3
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
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
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".