Firefox PHP

Module: Embed Images

Posted by Maurice Makaay 
Re: Module: Embed Images TEST
August 31, 2016 02:10PM
New version 1.1.5:

2016-08-31 v1.1.5 Oliver Riesen-Mallmann <oliver@riesen.org>
    - Made XHTML 1.0 Transitional compliant.


Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
nnx
Re: Module: Embed Images
October 21, 2016 08:56PM
Hello,

I changed my php version to 5.6 and I discovered that all images are missing messages. I had this error message :
Quote

Image error
Running getimagesize() on the image data failed
open image URL

When I clicked on "open image URL" I have an other error message.

I use this module to embed image. Images are stored in phorum database.

Do you have any advice ?

Thanks !
Re: Module: Embed Images
October 21, 2016 09:44PM
The following search results will show most of the recent image issue topics.

Broken image threads
nnx
Re: Module: Embed Images
October 22, 2016 09:15PM
Hi,

Thanks for your help,

I try many things viewed in these threads but nothing work. I have the last phorum version, so I use this fix :
[www.phorum.org]

I don't use Tidy Output. But I use "Store file on disk" version 1.1.1.

With "system sanity check" everything is OK except MySQL version. I use an old 4.0.26...

I checked "Enable debugging..." and I have this error :

Quote

Image error
Debug info:
Load local file: 309
Load local image file
Create thumbnail using 400x300 boundary
Creating thumbnail failed: Running getimagesize() on the image data failed

:/
Re: Module: Embed Images
October 22, 2016 11:01PM
MySQL 4.x is old and has not been tested with any of the 5.2 branch of Phorum.
As best I can tell php 5.6 works with Phorum 5.2.x using the embed images module. I have seen no issues on my test machine (Windows).

Quote

I use this module to embed image. Images are stored in phorum database .
Quote

I don't use Tidy Output. But I use "Store file on disk" version 1.1.1.

So which storage are you using?

If you store files on disk, make sure the path is reachable with a browser.

If you "enable debugging", you will not see images.
Where are you storing thumbnails?
I suggest you store them in their own directory, it helps with troubleshooting
>> Cache directory for scaled images (empty = use standard Phorum cache) ./picturesx <<
You should be able to access a file in this directory from your browser.

Do you have a timezone set in php.ini that matches what was used previously? This is a php requirement now.
Store files on disk does not work with already uploaded photos if the time zone is incorrect or different.
When it works, you run a conversion script that changes the links so they use GMT.
nnx
Re: Module: Embed Images
October 23, 2016 05:08PM
Hello,

Thanks for your help.

I did a mistake : I use "Store file on disk" ;)

I can't see my php.ini file because I use a shared hosting...

I took a look at phpinfo :
- With php 5.6, my actual configuration, images are broken, timezone is set to "Europe/Paris" (I'm from Paris).
- With my old php configuration (php 4.4), images are ok, phpinfo doesn't show timezone :/

I try to set a new directory for scaled images, but images are still broken.
Re: Module: Embed Images
October 23, 2016 05:20PM
If you upload a new image on php 5.6, can you see and access it?
nnx
Re: Module: Embed Images
October 23, 2016 06:38PM
I looked at php documentation and timezone exist since php 5.x.

I try to upload and attach a new image. It works very well. I have to convert old image to new system but how ? :/
Re: Module: Embed Images
October 23, 2016 07:46PM
1) First get a backup and verify that it works!

2) You need to determine which time zone was used when using php 4.4.
Set php 5.6 to that time zone. You may be able to have your own php.ini, try it or ask your host for assistance.
Your images should work. Verify they work as expected.

3) Run a script on the server (using telnet, ssh, or whatever your host allows), that comes with the store files on disk mod.
This will convert all of the files and links to use GMT, so the problem does not happen again.
If you are unable to run the script on the server, your host could run it for you.
nnx
Re: Module: Embed Images
October 23, 2016 09:03PM
Hi,

Quote

2) You need to determine which time zone was used when using php 4.4.

On my host admin UI, I changed php version to 4.4 to find the current time zone. I use this code :
Language: PHP
<?php echo date(';l jS \of F Y h:i:s A';); ?>

Date and time are exactly the same compared to my time zone (Europe/Paris). So I conclude that TimeZone are the same.

Are you ok with that ?

Quote

3) Run a script on the server

I can't do that on my share hosting. I read the changelog of mod and found that the update should be automaticaly done.

I'm afraid on all I have to do just to have my images back...
Sorry, only registered users may post in this forum.

Click here to login