When posting images to the board or trying to use images in your signature you get the message:
Cause
This is nearly always down to the host disabling the allow_url_fopen function in the php.ini as such when you enable the max height and width limitation in the post/signature settings the error is returned. It could also be that the host has blocked/disabled the php getimagesize() function.
Solution
You need to open the php.ini and make sure this function is allowed, if not allow it and restart the server. It has been known for this function to be disabled in two places in the php.ini so you will need to double check it is not enabled in one place and disabled in another, For example, first with "disable_functions allow_url_fopen" and then a second time with "allow_url_fopen Off".
OPEN:
/includes/message_parser.php
FIND:
if ($stats === false)
{
AFTER, ADD:
if (function_exists('curl_exec'))
{
$c_img = curl_init();
$c_timeout = 8; //The timeout, in seconds. You may want to change this
$c_max_filesize = 64000; //The max file size loaded into memory
curl_setopt($c_img, CURLOPT_URL, $in);
curl_setopt($c_img, CURLOPT_RETURNTRANSFER, 1);
@curl_setopt($c_img, CURLOPT_BUFFERSIZE, $c_max_filesize);
curl_setopt($c_img, CURLOPT_CONNECTTIMEOUT, $c_timeout);
curl_setopt($c_img, CURLOPT_FOLLOWLOCATION,1);
$grabbed_img = @curl_exec($c_img);
curl_close($c_img);
$stats[0] = $stats[1] = false;
if ($grabbed_img)
{
$grabbed_img = @imagecreatefromstring($grabbed_img);
$stats[1] = @imagesx($grabbed_img);
$stats[0]= @imagesy($grabbed_img);
unset($grabbed_img, $c_img);
}
if (!$stats[0] || !$stats[1])
{
$stats = false;
}
}
}
if ($stats === false)
{
Save the file, and the problem should go away. I've tried hard to choose settings in order to prevent the server loading a huge image into memory by accident, but it may need some tweaking.
Това е било решението