It was not possible to determine the dimensions of the image

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
User avatar
xymox
Registered User
Posts: 63
Joined: Thu Jan 07, 2010 12:20 am

It was not possible to determine the dimensions of the image

Post by xymox »

Ive read LOTS of posts about this going back 10 years with all sorts of different solutions and causes.

Im confuzed which is the correct way to fix this on 3.2.1 php 7.1

I cant find any images I can load from a URL. I can attach just fine.

I have image size checking set to 0 x 0
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: It was not possible to determine the dimensions of the image

Post by 2600 »

I have had this same annoying problem many times. The only thing that seemed to fix it for me was setting the max and min image size to 0x0. I see you have that set so I don't know what to think. This issue needs to be resolved because it's very annoying when it happens. 10 years is flipping ridiculous.

Did you see this? viewtopic.php?f=556&t=2433381

I think it could have been a coincidence.
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
xymox
Registered User
Posts: 63
Joined: Thu Jan 07, 2010 12:20 am

Re: It was not possible to determine the dimensions of the image

Post by xymox »

Really weird. I have a second forum on the same server with what seem like the same settings and it works fine..
User avatar
xymox
Registered User
Posts: 63
Joined: Thu Jan 07, 2010 12:20 am

Re: It was not possible to determine the dimensions of the image

Post by xymox »

Both boards use the same style. So indeed that link was not my issue.
User avatar
xymox
Registered User
Posts: 63
Joined: Thu Jan 07, 2010 12:20 am

Re: It was not possible to determine the dimensions of the image

Post by xymox »

This one does not work http://lhcportal.com/Forum/index.php
This one does http://badmodems.com/Forum/

I suppose my php.ini might be different for the 2 ? But from the host it should be exactly the same as its on the same server..

This really is a weird and inexplicable issue.

10 years to have the same issue. This really should be addressed.
User avatar
xymox
Registered User
Posts: 63
Joined: Thu Jan 07, 2010 12:20 am

Re: It was not possible to determine the dimensions of the image

Post by xymox »

Yep. I give up. I have looked at every setting between the 2 boards and they are exactly the same. They are mirror copies as far as I can tell. Using ANY url based image one will handle it just fine, one will not handle any image at all. Same server and what seems like exactly the same environment for php..

This is a truly weird issue.
User avatar
xymox
Registered User
Posts: 63
Joined: Thu Jan 07, 2010 12:20 am

Re: It was not possible to determine the dimensions of the image

Post by xymox »

Just checking if anyone else has run into this and what solved it ?
User avatar
xymox
Registered User
Posts: 63
Joined: Thu Jan 07, 2010 12:20 am

Re: It was not possible to determine the dimensions of the image

Post by xymox »

OK ive tried everything suggested in all the threads I can find that are recent. The problem persists..

Ive change the php.ini allow_url_fopen and set that on. No effect.. But the forum twin on my same server has this set to off and works fine. But i changed it anyway.

I tried setting the upload limits was higher. then back to 0. Same error..

"It was not possible to determine the dimensions of the image. Please verify that the URL you entered is correct."

Seriously.. This is a real issue and im out of things I know how to do. Same server, same php.ini and php enviroment. Same style. One works, ones does not.. w t f....
User avatar
xymox
Registered User
Posts: 63
Joined: Thu Jan 07, 2010 12:20 am

Re: It was not possible to determine the dimensions of the image

Post by xymox »

Ive tried different styles. Ive tried a numbers of different kinds of images..

NOTHING is making ANY difference.
User avatar
xymox
Registered User
Posts: 63
Joined: Thu Jan 07, 2010 12:20 am

Re: It was not possible to determine the dimensions of the image

Post by xymox »

Ive now looked thru lots of php config stuff. Again I cant find any difference between the 2.

Im willing to mod the code to get around this check.

If I put 0 and 0 in my config, PHPbb SHOULD NOT DO THIS CHECK ?!? That needs to be addressed in future updates.
User avatar
xymox
Registered User
Posts: 63
Joined: Thu Jan 07, 2010 12:20 am

Re: It was not possible to determine the dimensions of the image

Post by xymox »

I need to get some help here.
User avatar
xymox
Registered User
Posts: 63
Joined: Thu Jan 07, 2010 12:20 am

Re: It was not possible to determine the dimensions of the image

Post by xymox »

INTERESTING... I can do a local file tho.. So I can place ../image.jpg between the and [ / i m g ] and that works fine.

So ../image.jpg works fine
http://site/image.jpg does not
for the same image file.

It it can do local files but is not retrieving a link it seems.

Ive further explored php and I cant find anything that makes this work.
User avatar
xymox
Registered User
Posts: 63
Joined: Thu Jan 07, 2010 12:20 am

Re: It was not possible to determine the dimensions of the image

Post by xymox »

Wait... Thats odd. Its saying I have a max image width.. Yet its set at 0 x 0... Well thats clearly wacky..

Its somehow decided on 901 as my max image width, yet, ist set to 0 x 0

Something is clearly wrong here.

There is a difference between my boards. The one that works was created new on 3.2. The one that doesn't was upgraded from 2.x..

So maybe something came along for the ride from 2 to 3.2 and thats the issue ?
User avatar
xymox
Registered User
Posts: 63
Joined: Thu Jan 07, 2010 12:20 am

Re: It was not possible to determine the dimensions of the image

Post by xymox »

NVM... The 901 is defined by Max width of image" in the posting settings.
User avatar
xymox
Registered User
Posts: 63
Joined: Thu Jan 07, 2010 12:20 am

Re: It was not possible to determine the dimensions of the image

Post by xymox »

Im tempted to comment out some things and see what happenes... Als it would be interesting to see what $url is at this point.

This is from phpbb/textformatter/s9e/parser.php

Code: Select all

if ($max_height || $max_width)
		{
			$imagesize = new \FastImageSize\FastImageSize();
			$size_info = $imagesize->getImageSize($url);
			if ($size_info === false)
			{
				$logger->err('UNABLE_GET_IMAGE_SIZE');
				return false;
			}
Post Reply

Return to “[3.2.x] Support Forum”