XF 2.2 "Extension GD Could Not Found" Except I Have it Enabled

Digital Jedi

Well-known member
I was upgrading xF after all these year today (from 1.2), and I've run into this error running PHP 8.1.

image.webp

Except I have this extension enabled.

rs1-hostrocket-com-Plugins.webp

My host claims this isn't an issue on their end, and told me to check with you what the problem is. I don't really know what else to do. Rolling back PHP versions doesn't help, and that's not really what I want to do anyway. What could be the problem? I don't really manage the PHP side of things on my shared server normally.
 
PHP:
if (!function_exists('gd_info'))
{
    $errors['gd'] = \XF::phrase('required_php_extension_x_not_found', ['extension' => 'GD']);
}

It checks if the function gd_info info exists before showing that message so if the function doesn't exist, it's definitely not enabled. You might need to restart PHP or Apache/Nginx.
 
I ran this by my host until I got someone who seemed to understand what I was asking. The first rep didn't seem to understand me. So this was resolved, but they didn't tell me how or why.
 
Back
Top Bottom