By jamiegrinnell on
I just upgraded Drupal for a beta site that I am working on. I get this error now on the home page and can't get past it. When I comment out those lines, all of my custom colors are gone. I am using the Pixture_Reloaded theme if that helps. Is there a reason that this error is happening, and can someone help me fix it? My custom colors actually worked for a little while and I don't know what I did. I am very new at Drupal and CiviCRM so it is quite possible that I messed something up. I have deleted the files and replaced them multiple times, but this error just keeps happening.
Comments
idem
Hi, i just updated to d7.12 and get same problem plus this one...
undefined function drupal_basename() in /homepages/5/d214700893/htdocs/ffconcept/drupal-7.7/modules/update/update.manager.inc on line 819
rgds
researching
I am looking into this, and it looks like in the file.inc file we might need to change basename to drupal_basename since it isn't defined anywhere in our sites.
http://api.drupal.org/api/drupal/includes--file.inc/function/drupal_base...
http://drupal.org/node/1424840
http://drupal.org/node/278425
I found the answer to our
I found the answer to our problems! It allowed my color.module to work with no errors. One step closer!
Just create a new function in the file.inc file in your includes folder. includes/file.inc
I created it right before the function drupal_mkdir
function drupal_basename($uri, $suffix = NULL) {
$separators = '/';
if (DIRECTORY_SEPARATOR != '/') {
// For Windows OS add special separator.
$separators .= DIRECTORY_SEPARATOR;
}
// Remove right-most slashes when $uri points to directory.
$uri = rtrim($uri, $separators);
// Returns the trailing part of the $uri starting after one of the directory
// separators.
$filename = preg_match('@[^' . preg_quote($separators, '@') . ']+$@', $uri, $matches) ? $matches[0] : '';
// Cuts off a suffix from the filename.
if ($suffix) {
$filename = preg_replace('@' . preg_quote($suffix, '@') . '$@', '', $filename);
}
return $filename;
}
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging inf
Error report when trying to update modules using the Drupal update
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows
Path: /batch?render=overlay&id=87&op=do StatusText: OK ResponseText:
Fatal error: Call to undefined function drupal_basename()
modules/update/update.manager.inc on line 819
Fatal error trying to download.
This is after the Drupal upgrade from 7.11 to 7.12
Same error since updating to 7.12
Subscribing ... I will try jamiegrinnell's file.inc hack shortly.