I have phpfusion CMS installed on my localhost. I'm using the last version of Wamp 1.7.0. Can anybody tell my why when i configure to work thise extensions and restart Wamp Server - my gdinfo is saying: "The GD extension isn't loaded"
Log form phpfusion: Fatal error: Call to undefined function imagecreatefromjpeg() in C:\wamp\www\administration\photos.php on line 1
extension=php_gd2.dll is "uncheked" in php.ini
gdinfo.php file
<?php /** * Get which version of GD is installed, if any. * * Returns the version (1 or 2) of the GD extension. */ function gdVersion($user_ver = 0) { if (! extension_loaded('gd')) { return; } static $gd_ver = 0; // Just accept the specified setting if it's 1. if ($user_ver == 1) { $gd_ver = 1; return 1; } // Use the static variable if function was called previously. if ($user_ver !=2 && $gd_ver > 0 ) { return $gd_ver; } // Use the gd_info() function if possible. if (function_exists('gd_info')) { $ver_info = gd_info(); preg_match('/\d/', $ver_info['GD Version'], $match); $gd_ver = $match[0]; return $match[0]; } // If phpinfo() is disabled use a specified / fail-safe choice... if (preg_match('/phpinfo/', ini_get('disable_functions'))) { if ($user_ver == 2) { $gd_ver = 2; return 2; } else { $gd_ver = 1; return 1; } } // ...otherwise use phpinfo(). ob_start(); phpinfo(8); $info = ob_get_contents(); ob_end_clean(); $info = stristr($info, 'gd version'); preg_match('/\d/', $info, $match); $gd_ver = $match[0]; return $match[0]; } // End gdVersion()
// Usage:
if ($gdv = gdVersion()) { if ($gdv >=2) { echo 'TrueColor functions may be used.'; } else { echo 'GD version is 1. Avoid the TrueColor functions.'; } } else { echo "The GD extension isn't loaded."; } ?>
Where is the errror i have gd2 libs from Wamp Server i have also checked with that file gdinfo.php if gd is working and is not working! What can i do???
Yes i have even restart whole windows! Some ppl have the same problem as I but there is no answer. Just: restart wamp, change extension...
That is strange becouse on the servage.net everything is working. Problem is not with CMS a have tested on new no modifited files of phpfusion 6.01.6. Let say it could be something with windows?
ok problem whose solved. You don't belive me I don't know why but don't edit php.ini with wamp That is crazy that is the same file I have go to C:/wamp/php.ini and then edit manualy it. Open php.ini form windows explorer and that whose worked! Also in apache2/bin You have to change that That's amazing what a hell???? heh but it's working now.
Here is a solution to the prpoblem that still hasn't been published here yet: (This is for getting GD2 to make images work in a Moodle server but works with anything)
open every php.ini file you can find (do a search for them in your web folders, php etc...) and remove the ; from every reference to php_gd2.dll. Should be two of these files with one instance of the ; in each.