Everything was working fine, and then.... bam:

Fatal error: Call to undefined function: file_directory_path() in /home/villedem/public_html/modules/contrib/logotool/logotool.module on line 4

?

Comments

igorik’s picture

the similar problem, I got blank screen when I put the newest logo tool module into modules directory

pobster’s picture

Why is that a similar problem?... File another bug report and PLEASE GIVE ME SOME USEFUL INFORMATION...

Both of you tell me;

The version of Drupal you're running
What version of logotool
What your cache settings are set to
What settings you've set for logotool
Does the logotool/logos page show all your logos correctly?
Do you *only* have logos in your logos directory (no extra directories or anything)
Have you altered the code in *any* way at all (core or module)
Does the logotool/logo screen show a blank page with a logo on it
Have you had any trouble with corruption to your cache (and does emptying it fix the problem?)

file_directory_path() is a perfectly valid function (http://api.drupal.org/api/5/function/file_directory_path) - these sort of problems seem to arise out of certain caching problems and I'd really appreciate detailed answers to the questions above as I'm working on a 'cure' (!) the 4.7 module has already been updated, I've not got round to the 5.x version yet as I'm not actually running a 5.x live site myself so tbh, I'm in no hurry.

Pobster

Anonymous’s picture

I pretty much followed the instruction from the drupal website.

I created a directory "logos" in "files"

I then added 6 0r 7 .jpgs in this folder

I set the rendering to "random"

I did nothing else

The images were running swell, and then - error.

I was using "masquerade" and the error occured after switching users. I'm not sure that that had anything to do with it, but maybe it will shed light?

The version of Drupal you're running
5.1

What version of logotool
1.2

What your cache settings are set to
Caching mode: normal
Aggregate and compress CSS files: enabled

What settings you've set for logotool
I'm not sure. I hade to remove the module so that the website was back up.

Does the logotool/logos page show all your logos correctly?
Yes, they were

Do you *only* have logos in your logos directory (no extra directories or anything)
only .jpg

Have you altered the code in *any* way at all (core or module)
no

Does the logotool/logo screen show a blank page with a logo on it
no, just the error

Have you had any trouble with corruption to your cache (and does emptying it fix the problem?)
no. I did do a ctrl f5 to clear page cache.

Hope this helps.

Thanks for the help - really!

pobster’s picture

Just for you (seriously!) I updated the logo.php 4.7 version to Drupal 5.x - it *should* resolve caching issues (hopefully!)

http://ftp.osuosl.org/pub/drupal/files/projects/logotool-5.x-2.0.tar.gz

I unfortunately can't test it very well as I don't have a 5.x live site - but I can't see any reason why it won't work?

Let me know!

Thanks,

Pobster

pobster’s picture

Status: Active » Fixed

Okay new version (as of 5.x-2.3) should stop these problems.

Thanks,

Pobster

pobster’s picture

Status: Fixed » Closed (fixed)