aman207 / DonatorExpress

Allows members on your server to view and purchase ranks/items without any hassle.
http://dev.bukkit.org/bukkit-plugins/donator-express/
2 stars 3 forks source link

Error: The server could not create this image. #24

Closed michalet closed 11 years ago

michalet commented 11 years ago

As the title says, I get this for all four package images. I'm rather a newbie with apache/php, but will try to get any needed info.

xvenom1291x commented 11 years ago

I am receiving the same error. Was looking at the php files and everything looked correct. Unless I overlooked something.....Any solutions?

aman207 commented 11 years ago

Try to install Imagick on your web server or contact your web host.

HiddenMotives commented 11 years ago

Method 1)

Edit /generate/diamond.php and try including the FULL/ABSOLUTE path for the SHOWG.TTF font file.

Example for cPanel Servers: Find: "$font_file = 'SHOWG.TTF';" in diamond.php and then Edit it to something like: "$font_file = '/home/cpanelusr/public_html/donate/generate/SHOWG.TTF';" Where the "cpanelusr" is the username for the cPanel account and "donate" is the installation directory of the portal.

Method 2)

Edit login-home.php and find the following lines:

<img src="generate/diamond.php?text=<?php echo $diamond1; ?>">
<img src="generate/diamond.php?text=<?php echo $diamond2; ?>">
<img src="generate/diamond.php?text=<?php echo $diamond3; ?>">
<img src="generate/diamond.php?text=<?php echo $diamond4; ?>">

Replace them with:

<img src="http://targetcraft.net/demo/dep/generate/diamond.php?text=<?php echo $diamond1; ?>">
<img src="http://targetcraft.net/demo/dep/generate/diamond.php?text=<?php echo $diamond2; ?>">
<img src="http://targetcraft.net/demo/dep/generate/diamond.php?text=<?php echo $diamond3; ?>">
<img src="http://targetcraft.net/demo/dep/generate/diamond.php?text=<?php echo $diamond4; ?>">

What this will do is generate the image from our web server which is running the demo portal efficiently resolving your problems!

graywolf336 commented 11 years ago

Method one worked for me, thanks.

michalet commented 11 years ago

First one worked for me as well, thank you.