Not sure what the problem is.
It happened after I re-indexed my site, as soon as I clicked on Configuration which is the only link from within Admin that generates the above error.

Comments

thomas.frobieter’s picture

Issue tags: +fatal error, +xml, +sitemap

I agree, when i call the configuration page "/admin/config":

"Fatal error: Call to undefined function file_directory_path() in .../html/blog/sites/all/modules/xmlsitemap/xmlsitema"

I had only the xml sitemap module enabled.. no sitemap custom or the others..

jennifermontes’s picture

I've been getting this error as well. I didn't have any previous versions of this module installed and visiting /admin/config will generate a WSOD and display the "Fatal error".

I'm running Drupal 7.0 and PHP 5.2.14.

jennifermontes’s picture

This seems to be a simple porting issue. The porting guide (found here: http://drupal.org/update/modules/6/7#file_directory_path) says that

<?php
file_default_scheme() . ':/'
?>

should be used instead of file_directory_path().

If I knew how to create a patch I would fix this myself. :s

Dave Reid’s picture

Status: Active » Closed (duplicate)

This has already been fixed. Use 7.x-2.x-dev.

almaceria’s picture

Dave, I think you should remove the Download link to the 7.x-2.0-beta1 version. It's a bit confusing that the beta version is less stable than the one in development.

lagerassassin’s picture

@almaceria

your lucky you can get any of them to work mate!

dev = no
beta= no

same old error every time on each one:

Fatal error: Call to undefined function file_directory_path() in /home/*****/public_html/*****/modules/xmlsitemap/xmlsitemap.module on line 975

lagerassassin’s picture

ok can someone tell me how #4 (7.x-2.x-dev) works? because it isn't for me:

modules/xmlsitemap/xmlsitemap.module on line 975

edit...

after retrying the dev I'm now getting this error when trying to access "configuration"

PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'max_filesize' in 'field list': SELECT MAX(max_filesize) FROM {xmlsitemap_sitemap}; Array ( ) in xmlsitemap_requirements() (line 81 of /home/*****/public_html/*****/modules/xmlsitemap/xmlsitemap.install).

sp_key’s picture

Are you guys working on a fresh d7 installation?
Mine was an alpha-to-beta-to-7 and apparently this wasn't supported.
Once I reinstalled a fresh d7 version and tried the dev version of xml sitemap it worked.

Having said that I agree that the beta link should be removed.
It is frustrating to go through all these trial and errors and wasting so much energy, especially when it is known that we shouldn't use that version!

wavesailor’s picture

Hi Dave,

When will the RC release be updated with all the DEV changes? The last release was in Dec 2011.

Thx,

JJ