Diferior CMS on steroids
+41 / 1944219 ( online 11 )

NFO generating error ...


Forum posts: 98
p2pmylife (Talks a lot) @ 09 08 02 - 09:39:51
Hi, Iam always on the way to find out all the bugs in my website, and i find a new bug !

I got an error when i click on the png generation if an nfo file is joined with a torrent ...

That's the error :

imagecreatefrompng(DIR/resources/nfo_font.png) [function.imagecreatefrompng]: failed to open stream: No such file or directory (#2) in /functions/nfo.php on line 128
Avatar
Blog posts: 11
Added downloads: 2
Comments: 18
Forum posts: 572
UnrealX (Lead code monkey) @ 09 08 02 - 13:42:43
Check NFO_FONT value in your conf.php. It should say something like this:
# Font for NFO image generation define ( 'NFO_FONT', DIR .'/resources/nfo_font.png' );
Forum posts: 98
p2pmylife (Talks a lot) @ 09 08 11 - 13:05:36
Yes, its what i have ... i check the file too ... nothing wrong ... its not very important for me so i disable the png generation for the moment !

But the bug is still there ...
Avatar
Blog posts: 11
Added downloads: 2
Comments: 18
Forum posts: 572
UnrealX (Lead code monkey) @ 09 08 11 - 23:15:46
Is the DIR constant properly defined in conf.php?
Forum posts: 98
p2pmylife (Talks a lot) @ 09 08 13 - 12:00:31
I dont know if its right, but this is what I have :

define ( 'DIR', dirname ( __FILE__ ) );
Avatar
Blog posts: 11
Added downloads: 2
Comments: 18
Forum posts: 572
UnrealX (Lead code monkey) @ 09 08 13 - 16:12:44
Seems to be right. Weird.
Try modifying error level in conf.php:
define ( 'ERR_LEVEL', 4 );

See what error message will you get then.