Download & Extend

Call to undefined function _globalredirect_get_settings()

Project:Global Redirect
Version:7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

When trying to run the update function for this module, I got the following fatal error:

An unrecoverable error has occurred. You can find the error message below. It is advised to copy it to the clipboard for reference.
Please continue to the error page

An error occurred. http://www.mysite.com/update.php?id=21&op=do
Fatal error: Call to undefined function _globalredirect_get_settings() in /path/to/drupal/sites/all/modules/contrib/globalredirect/globalredirect.install on line 31

Comments

#1

The missing function is in globalredirect.module. I copied it over to the .install file and ran update with no problem.

#2

Thank you, solved my problem.

#3

Status:active» fixed

The easy solution was to add a drupal_load('module', 'globalredirect') right before calling the function. This has been fixed in the lastest CVS:
http://drupal.org/cvs?commit=434744
http://drupal.org/cvs?commit=434746

#4

Status:fixed» closed (fixed)

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

#5

Version:6.x-1.3-alpha1» 7.x-1.3
Status:closed (fixed)» reviewed & tested by the community

I got the error back while upgrading from D6, the patch fixed the error.

#6

Status:reviewed & tested by the community» fixed

SebCorbin: This was already fixed in the development branch after 7.x-1.3. See http://ftp.drupal.org/files/projects/globalredirect-HEAD.tar.gz

-Brad

#7

Status:fixed» closed (fixed)

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

#8

Version:7.x-1.3» 7.x-1.x-dev
Status:closed (fixed)» needs review

Apparently the fix in #3 didn't survive the Great Git Migration.

AttachmentSizeStatusTest resultOperations
modules_globalredirect.patch433 bytesIgnored: Check issue status.NoneNone

#9

Status:needs review» closed (fixed)

It was fixed right here: http://drupalcode.org/project/globalredirect.git/commitdiff/94534de

The confusion is coming from #1045842: Development releases link to wrong branch which is that all of the fixes are going into the master branch which is != to the 7.x-1.x branch.

#10

Category:bug report» support request
Status:closed (fixed)» active

So should I be pulling from 7.x-1.x or from master? Or both?

And when I submit a patch relative to "master" which is different from "7.x-1.x" should I set the version to "<none>" since there is no version option labeled "master" ?

Wouldn't it be simpler to just merge the changes in master back into the 7.x-1.x branch?

Or delete the 7.x-1.x branch and then rename master to 7.x-1.x ?

Or rename the master branch to 7.x-2.x and release against that?

#11

Category:support request» bug report
Status:active» needs review

Well, I answered my own question. I checked out "master" and it totally broke my site.

Okay, I've created a functional local branch combining the 7.x-1.x branch with the master branch.

So here are two patches.

AttachmentSizeStatusTest resultOperations
modules_globalredirect.7.x-1.x..local_.patch11.51 KBIgnored: Check issue status.NoneNone
modules_globalredirect.master..local_.patch10.05 KBIgnored: Check issue status.NoneNone

#12

Status:needs review» fixed

This is now fixed on the correct branch, 7.x-1.x.

#13

Status:fixed» closed (fixed)

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