Have you checked these first?
Help us help you: include your environment details. We've made this easy for you. Use the Copy System Info button in Admin Panel › osAwesome › Diagnostics, then paste below.
Note: Never paste the contents of your ost-config.php file here; it holds your database credentials.
Two quick checks before posting: try clearing your browser cache, and press SHIFT+O on any Staff Panel page to enter Safe Mode (a stock osTicket with no enhancements). If the problem still shows in Safe Mode, it's in osTicket itself, not osTicket Awesome. But let us know about the issue either way.
Help us help you: include your environment details. We've made this easy for you. Use the Copy System Info button in Admin Panel › osAwesome › Diagnostics, then paste below.
This forum is public. Never post order numbers, full license keys, email addresses, or payment details.
This is the place for general questions about how billing and licensing work — renewals, activation, staging slots, plan differences, and what happens when a license lapses.
For anything tied to your specific account, refund, or payment, contact us directly instead.
When using the Initials avatar mode in osTicket Awesome theme, the avatar generation fails with a fatal error:
Fatal error: Uncaught ValueError: imagecreatetruecolor(): Argument #1 ($width) must be greater than 0
Root cause:
The LocalAvatar::getUrl() method only adds the size parameter to the URL when $this->size is truthy. However, when getAvatar() is called without a size parameter (e.g., <?php echo $user->getAvatar(); ?> in templates), $this->size becomes an empty string "" rather than null.
When the empty string is passed to the avatar URL, PHP's (int) "" converts it to 0, which the GD library's imagecreatetruecolor() cannot accept.
Example problematic URL: avatar.php?uid=1&mode=initials&size=&name=Casper+
We are running 1.8.3
Hi Carsten,
Great catch, and thank you for the thorough diagnosis. You've nailed the root cause exactly: when getAvatar() is called without a size parameter, the empty string slips through to imagecreatetruecolor() as zero.
This has been fixed in release 1.18.3-4, but if you'd rather not update right now, you can fix it in place by adding this line near the top of the render function in osta/php/avatar-initials.php, just before the image generation call:
$size = max((int)$size, 80);
Thanks for reporting this!