Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ALuserX

Pages: [1]
1
Hi guys!

First of all, I have freshly installed v1.7.9 without any mods.

First I've had an issue about uploading files larger than 2MB, but went through your forums and fixed some values in php.ini .

Then I thought everything would work fine, but unfortunately it does not, and I recognized, that it doesn't really matter if filesize goes over 2MB. When I've tried uploading a large image, that is just ~500KB, but 2700x3356 big and nothing was coming up on the screen, it was blank white. So I went to the scripts and added some debug-echoes just to see where script stops doing anything. And that's what came up:

"CODE1"
image_utils.php, function resize_image_gd, line ~80-90 (I've added some echoes, so I can't specify the exact line-number)
	
echo 
"<pre>";
	
print_r("=resize_image_gd=2=");
	
echo 
"</pre>";
	

  if (
$image $image_create_handle($src)) {

	
echo 
"<pre>";
	
print_r("=resize_image_gd=2.1=");
	
echo 
"</pre>";


The only thing I've got on my screen was following:
Quote
=resize_image_gd=2=

"CODE2"
Then I've tried to expand it a little:

	
echo 
"<pre>";
	
print_r("=resize_image_gd=2=");
	
print_r($image_create_handle);
	
print_r($src);
	
$testimage imagecreatefromjpeg("./data/media/19/00bs57fw4.jpg");
	
print_r($testimage);
	
print_r("=resize_image_gd=2x=");
	
echo 
"</pre>";


Still, the only thing coming up was:
Quote
=resize_image_gd=2=

But now comes the best part!

I've created a script called test.php in the gallery-root-dir (directory with member.php, e.t.c.), and filled it with exactly the same as showed in the "CODE2"! And when I execute it I get following:
Quote
=resize_image_gd=2=Resource id #3=resize_image_gd=2x=

So does anyone have an Idea what the hell is happening?
I'd be happy to read what you guys think. =)

PS (almost forgot):
PHP 5.2.0
post_max_size   50M
upload_max_filesize   50M
memory_limit   45M
max_input_time   3600
register_globals   Off
safe_mode   Off
Code: [Select]
gd
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
feel free to ask if you want to know any other settings

Pages: [1]