Getting error in php editor

Johnpbx

New Member
Feb 28, 2018
10
0
1
42
When attempting to open php editor, I'm getting this error.



Fatal error: Call to undefined function imagecreate() in /var/www/fusionpbx/resources/classes/captcha.php on line 143

ANY help is appreciated
 

Adrian Fretwell

Active Member
Aug 13, 2017
528
100
43
The library shouldn't be missing if you installed Fusion using the recommended installer on a clean install of the recommended operating system. But to answer your question:

Assuming you are running Debian as your OS the standard method would be...
If you are logged in as root just run:
apt-get install php-gd
or, if non root:
sudo apt-get install php-gd

But be aware, I believe that Fusion uses different php source than the standard Debian packages.
 

Johnpbx

New Member
Feb 28, 2018
10
0
1
42
It was a clean install and it always worked, I tried to update PHP package but didn't help
 

JamesBorne

Active Member
Jan 24, 2019
294
48
28
Australia
I just installed FusionPBX on Debian 10 and had no issues with Adminer.
I suspect you changed something to get that result.