gd2.dll
Posted by: malwin23 (---.ztpnet.pl)
Date: February 23, 2007 07:18PM

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???

Options: ReplyQuote
Re: gd2.dll
Posted by: yfastud (---.cable.mindspring.com)
Date: February 23, 2007 08:26PM

Through tray icon, enable gd2.

Have fun

[www.jlbn.com] (testing web server)
[test.jlbn.com] (testing codes)
[forum.jlbn.com] (testing phpBB2)
[forums.jlbn.com] (testing phpBB3)
[mail.jlbn.com] (testing mailserver)
[ftp.jlbn.com] (testing ftp server)
[www.jlbn.com] (testing flashes)
[www.jlbn.com] (testing images)
[joomla.jlbn.com] (testing Joomla 1.0.10)
[fusion.jlbn.com] (testing phpFusion 6.01.6)
[nuke.jlbn.com] (testing phpNuke 7.9)
[nukep.jlbn.com] (testing phpNuke Platinum 7.6.b.4v2)
[pnuke.jlbn.com] (testing PostNuke 0.800-MS2)
[nukevo.jlbn.com] (testing phpNuke Evolution 2.0.1)
[wp.jlbn.com] (testing WordPress 2.1)
[ws.jlbn.com] (testing WebSpell 4.01.02)

Options: ReplyQuote
Re: gd2.dll
Posted by: malwin23 (---.ztpnet.pl)
Date: February 23, 2007 09:14PM

From try icon that is just automatic enable extension gd2 without manual configure php.ini. But thanks any way for trying to helpsmiling smiley

Problem is near. I don't know what is going on but i have never before such a stupid problem.

Options: ReplyQuote
Re: gd2.dll
Posted by: yfastud (---.cable.mindspring.com)
Date: February 23, 2007 11:34PM

Did you restart your server after enable it?

Have fun

[www.jlbn.com] (testing web server)
[test.jlbn.com] (testing codes)
[forum.jlbn.com] (testing phpBB2)
[forums.jlbn.com] (testing phpBB3)
[mail.jlbn.com] (testing mailserver)
[ftp.jlbn.com] (testing ftp server)
[www.jlbn.com] (testing flashes)
[www.jlbn.com] (testing images)
[joomla.jlbn.com] (testing Joomla 1.0.10)
[fusion.jlbn.com] (testing phpFusion 6.01.6)
[nuke.jlbn.com] (testing phpNuke 7.9)
[nukep.jlbn.com] (testing phpNuke Platinum 7.6.b.4v2)
[pnuke.jlbn.com] (testing PostNuke 0.800-MS2)
[nukevo.jlbn.com] (testing phpNuke Evolution 2.0.1)
[wp.jlbn.com] (testing WordPress 2.1)
[ws.jlbn.com] (testing WebSpell 4.01.02)

Options: ReplyQuote
Re: gd2.dll
Posted by: malwin23 (---.ztpnet.pl)
Date: February 24, 2007 12:22AM

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?

Options: ReplyQuote
Re: gd2.dll
Posted by: yfastud (---.cable.mindspring.com)
Date: February 24, 2007 01:09AM

Do you see it in my testing phpFusion?

Have fun

[www.jlbn.com] (testing web server)
[test.jlbn.com] (testing codes)
[forum.jlbn.com] (testing phpBB2)
[forums.jlbn.com] (testing phpBB3)
[mail.jlbn.com] (testing mailserver)
[ftp.jlbn.com] (testing ftp server)
[www.jlbn.com] (testing flashes)
[www.jlbn.com] (testing images)
[joomla.jlbn.com] (testing Joomla 1.0.10)
[fusion.jlbn.com] (testing phpFusion 6.01.6)
[nuke.jlbn.com] (testing phpNuke 7.9)
[nukep.jlbn.com] (testing phpNuke Platinum 7.6.b.4v2)
[pnuke.jlbn.com] (testing PostNuke 0.800-MS2)
[nukevo.jlbn.com] (testing phpNuke Evolution 2.0.1)
[wp.jlbn.com] (testing WordPress 2.1)
[ws.jlbn.com] (testing WebSpell 4.01.02)

Options: ReplyQuote
Re: gd2.dll
Posted by: malwin23 (---.ztpnet.pl)
Date: February 24, 2007 02:28AM

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.

Options: ReplyQuote
Re: gd2.dll
Posted by: yfastud (---.cable.mindspring.com)
Date: February 24, 2007 03:42AM

Glad you made it

Actually, there are 2 php.ini and the one should working on is in wamp/apache2/bin

Have fun

[www.jlbn.com] (testing web server)
[test.jlbn.com] (testing codes)
[forum.jlbn.com] (testing phpBB2)
[forums.jlbn.com] (testing phpBB3)
[mail.jlbn.com] (testing mailserver)
[ftp.jlbn.com] (testing ftp server)
[www.jlbn.com] (testing flashes)
[www.jlbn.com] (testing images)
[joomla.jlbn.com] (testing Joomla 1.0.10)
[fusion.jlbn.com] (testing phpFusion 6.01.6)
[nuke.jlbn.com] (testing phpNuke 7.9)
[nukep.jlbn.com] (testing phpNuke Platinum 7.6.b.4v2)
[pnuke.jlbn.com] (testing PostNuke 0.800-MS2)
[nukevo.jlbn.com] (testing phpNuke Evolution 2.0.1)
[wp.jlbn.com] (testing WordPress 2.1)
[ws.jlbn.com] (testing WebSpell 4.01.02)

Options: ReplyQuote
Re: gd2.dll
Posted by: loosersic (---.ais.com.sg)
Date: June 19, 2007 07:09AM

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.

Options: ReplyQuote


Sorry, only registered users may post in this forum.