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 » Thu Aug 03, 2017 3:07 pm

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
John connor
Registered User
Posts: 1711
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

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

Post by John connor » Thu Aug 03, 2017 3:09 pm

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.

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 » Thu Aug 03, 2017 3:18 pm

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 » Thu Aug 03, 2017 3:21 pm

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 » Thu Aug 03, 2017 3:26 pm

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 » Thu Aug 03, 2017 3:38 pm

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 » Thu Aug 03, 2017 10:30 pm

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 » Fri Aug 04, 2017 1:45 am

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 » Fri Aug 04, 2017 1:54 am

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 » Fri Aug 04, 2017 2:11 am

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 » Fri Aug 04, 2017 2:11 am

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 » Fri Aug 04, 2017 6:11 am

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 » Fri Aug 04, 2017 6:18 am

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 » Fri Aug 04, 2017 6:43 am

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 » Fri Aug 04, 2017 8:42 am

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”

Who is online

Users browsing this forum: Brf, canonknipser, Crizzo, invenio, RFaltesek, Sazzy260 and 34 guests