here is the link to the picture
http://i51.photobucket.com/albums/f387/ ... pink-1.jpg" onclick="window.open(this.href);return false;
![Image](http://i51.photobucket.com/albums/f387/sk8er_dude802/mx3pixelcarpink-1.jpg)
Jackal wrote:[heading]Problem[/heading]When posting images to the board or trying to use images in your signature you get the messageIt was not possible to determine the dimensions of the image
[heading]Cause[/heading]This is nearly always down to the host disabling the allow_url_fopen function in the php.ini
[heading]Solution[/heading]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".
Also if you can use cURL here is a quick work around provided by Jhong
A quick workaround is to use cURL to fetch the image and check the size. The mod is as follows:
OPEN: /includes/message_parser.php
FIND:AFTER, ADD:Code: Select all
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 ahuge image into memory by accident, but it may need some tweaking.Code: Select all
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) {