Jump to content

WHMCS on XAMPP -- GD2 not working


stumblrmonk3

Recommended Posts

Hello folks,

 

I have moved our WHMCS to our intranet and it's currently running on XAMPP. The reason for this move is because we couldn't find a reliable host for our WHMCS (we're not in the hosting business).

 

All works well after migration except for graphs. I have scoured the net for answers but I cannot find anything relevant. All graphs generate this error:

The image “http://portal.xxx.com/admin/reports.php?displaygraph=graph_monthly_signups&homepage=true” cannot be displayed, because it contains errors.

 

I have GD2 enabled in my php.ini. I have actually installed PHPGraphLib on same XAMPP server and ran an example successfully (it graphs it), so this means that GD2 is working fine in my installation using the exact same lib that WHMCS uses.

 

My assumption is that there's something Linux-specific in the WHMCS code that is not stopping graphs from working in Windows Apache.

 

Can someone lend a helpng hand please?

 

Thanks!

Link to comment
Share on other sites

Allright, this is my progress:

 

I disabled output_buffering in php.ini and it showed raw PNG data. I google around for a solution and that apparently happens when there's a blank line and/or HTML tags sent BEFORE the header() in PHP.

 

Since WHMCS is encoded, I cannot check the scripts where this problem could be.

 

But there's another issue: this same WHMCS installation with the same MySQL DB works perfectly fine on a CentOS WHM/Cpanel setup, just not in my WinXP 32-bit installed with XAMPP.

 

I confirmed GD2 works. I confirmed MIME types work.

 

I will post results if I get somewhere. In the meantime, if anyone could help, I would greatly appreciate it!

 

Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated