MyBB Community Forums

Full Version: undefined function imagecreate() in /inc/class_graph.php:97
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Recently reinstalled mybb with only newest files from mybb 1.8.21 and using a backed up database.
Statistics Graphs in admin panel are not working.
Also in rebuild & recount, recount statistic is stuck on N/A

Any idea on how to fix this ?
This is the only error logs I can get, no error when checking mybb files, no error for read/write access.. :/

mod_fcgid: stderr: #0 public_html/admin/modules/tools/statistics.php(284): Graph->__construct()
mod_fcgid: stderr: #1 public_html/admin/modules/tools/statistics.php(23): create_graph('posts', Array)
mod_fcgid: stderr: #2 public_html/admin/index.php(821): require('/home/mysite...')

mod_fcgid: stderr:  thrown in public_html/inc/class_graph.php on line 97
mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Call to undefined function imagecreate() in public_html/inc/class_graph.php:97
What's your PHP version? Is GD correctly installed and enabled in your PHP? See https://stackoverflow.com/questions/3106...magecreate

And have a file integrity check in your AdminCP? Maybe some files are corrupted, though I'm not sure. Read more: https://docs.mybb.com/1.8/administration...d-database
Yup found the solution at the same time, I did switch from 7.1 to 7.3 but 7.3 was missing GD.
Thanks working now !