[pmwiki-users] mini not displaying image

david roundell roundelld at hotmail.com
Thu Oct 9 20:40:51 CDT 2008


petko
 
i said i'd get back to you - apologies for the delay but here goes. i think it's possibly a problem with our installation of php as even with the latest cookbook, all points towards the gd2 extension not being correctly enabled.
 
it is enabled in php.ini and the relative path is correct, however when i directly look at the picture in the browser (ie6) i see - 
Fatal error: Call to undefined function: imagecreatefromjpeg() in C:\Inetpub\wwwroot\cookbook\mini.php on line 172
PHP Warning: Unknown(): Unable to load dynamic library '.c:\php\extensions\php_gd2.dll' - The specified module could not be found. in Unknown on line 0 
 
so i checked line 172 in the cookbook which resolves to 
 
$imcreate=($gd2)?'imagecreatetruecolor':'imagecreate';
 
with gd2 enabled i get an error at the bottom of the wiki
 
PHP Warning: Unknown(): Unable to load dynamic library '.c:\php\extensions\php_gd2.dll' - The specified module could not be found. in Unknown on line 0 
 
and trying to display the picture now in the sandbox shows:
 
Mini: PHP-GD image library not found. Exiting. 
 
whereas previously i was getting a red 'x' but i could still click on the photo
 
we are running php4.4.2. should i upgrade to php 5.2?
 
thanks
 
david 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20081010/b337c13a/attachment.html 


More information about the pmwiki-users mailing list