<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>All uploaded images broken after the upgrade</title>
        <description>After upgrading from MySQL 5 to 5.5 because 5 will be EOL on Dec 31 of this year, all of the posting images and avatars image are showing broken. 

I don&#039;t know why or what caused this. Event loggers not giving us any helpful information. I am using Store on Disk module and all the files are still on disk.  

In the embedded image module, it stated that download test is NOT OK ... I know we have not touch the firewall or anything else just upgraded the MySQL and suddenly it NOT OK .

Can anyone help us restore the images on our Phorum? 

Thank you

Bill</description>
        <link>https://www.phorum.org/support/read.php?61,154229,154229#msg-154229</link>
        <lastBuildDate>Tue, 15 Sep 2026 10:48:27 -0500</lastBuildDate>
        <generator>Phorum 6.0.4</generator>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,161371#msg-161371</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,161371#msg-161371</link>
            <description><![CDATA[ Hello !<br />
<br />
Thanks for your help. I&#039;m sorry I wasted your time. I apologize...<br />
<br />
My posted files are corrupted on server and on few backups.<br />
<br />
When I install phorum 5.2.21 I did a backup with Filezilla off all phorum files (even posted files directory). The update didn&#039;t work, so I return back with my backup (the entire backup). I uploaded corrupted files. After that I updated phorum to 5.2.21 but whatever, posted files are corrupted.<br />
<br />
I did many research, read many php documentation, did many test on specially istalled dev environment. I take a look at a backup I did in 2013 and I can open posted files in my browser, like you told me. I try to upload it and the test failed. I force Filezilla to do a binary transfer and it worked, image was back...<br />
<br />
I&#039;m very angry. Since june 2013 I only did few backup with Filezilla with &quot;automatic mode&quot; transfer. Before june 2013, I used a backup software...<br />
<br />
It&#039;s a small bulletin board. I recover files that I could. Now I have 150 files to test... This is a silly lesson.<br />
<br />
Thanks again ;)]]></description>
            <dc:creator>nnx</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Sun, 06 Nov 2016 14:09:38 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,161355#msg-161355</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,161355#msg-161355</link>
            <description><![CDATA[ I am looking for the old  php, mysql, phorum, and mod version information for what worked correctly so I can try to reproduce the problem.]]></description>
            <dc:creator>Scott Finegan</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Wed, 02 Nov 2016 18:19:28 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,161349#msg-161349</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,161349#msg-161349</link>
            <description><![CDATA[ Hi,<br />
<br />
I use last version of Phorum and mods.<br />
<br />
I have several backup, and it&#039;s the same result under windows : I can&#039;t view my image in Windows...<br />
<br />
I don&#039;t understand how a php upgrade can corrupt all files...<br />
<br />
It&#039;s like files were encoded as string with a charset, and read with another...]]></description>
            <dc:creator>nnx</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Tue, 01 Nov 2016 14:44:07 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,161348#msg-161348</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,161348#msg-161348</link>
            <description><![CDATA[ I don&#039;t believe it is a problem with character set, unless at the server or internet server level.<br />
Your direct link to 309 retrieves a corrupt file.<br />
<br />
You need to recreate the old server, old phorum environment and test.<br />
What version of &quot;store_files_on_disk&quot; mod did you use?<br />
<br />
Do you have a backup of the photos?<br />
Check some of those on a local computer to see if they display.]]></description>
            <dc:creator>Scott Finegan</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Tue, 01 Nov 2016 12:28:44 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,161345#msg-161345</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,161345#msg-161345</link>
            <description><![CDATA[ I try to put this line :<br />
[code=&quot;php&quot;]<br />
ini_set( &#039;default_charset&#039;, &#039;ISO-8859-1&#039; );<br />
[/code]<br />
just before &quot;file_get_contents&quot; in store_files_on_disk.php.<br />
<br />
It may be a problem of character set<br />
<br />
This test failed...	<br />
<br />
Thanks for you help Scott.]]></description>
            <dc:creator>nnx</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Tue, 01 Nov 2016 07:46:32 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,161344#msg-161344</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,161344#msg-161344</link>
            <description><![CDATA[ Hello,<br />
<br />
I did this test with 2 files.<br />
<br />
The first file : /www/forums/posted_files/2011/1217/09/309<br />
It&#039;s an old image broken since php (or phorum 5.2.21) update<br />
<br />
The second file : /www/forums/posted_files/2016/1023/16/601<br />
A new file, uploaded recently and it&#039;s working in phorum.<br />
<br />
I tested url in my browser. In all cases, Firefox offer me to download file and show this type &quot;application/octet-stream&quot;.<br />
<br />
Under Windows, I tried to open 601 file with photo viewer : it works. <br />
<br />
I tried to open 309 file and it failed. Image seems to be corrupted.<br />
<br />
I try to add file extension : jpg for the first file, and png for the second, and results are the same.<br />
<br />
It&#039;s like php doesn&#039;t write file using the same technique between php 4.4 and php 5.4...<br />
<br />
Do you know if default-charset change can explain this ? I&#039;m lost...<br />
<br />
Edit : After some control, I update php from 5.2 to 5.6, and not 4.4 to 5.6.]]></description>
            <dc:creator>nnx</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Tue, 01 Nov 2016 02:04:27 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,161339#msg-161339</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,161339#msg-161339</link>
            <description><![CDATA[ If you link directly to any of the files in the storage directory, they display correctly in your browser ?<br />
<br />
<br />
Grasping at straws... read the manual.<br />
Looking at your debug images above:  Many ???  frequently  indicate character set problems. <br />
I did not do a thorough search for character set changes between php 4.4 and 5.6, however...<br />
<br />
From <a href="http://php.net/manual/en/migration56.incompatible.php" target="_blank"  rel="nofollow">http://php.net/manual/en/migration56.incompatible.php</a><br />
 <br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />User Contributed Notes<br />
Someone <br />
Beware, now default_charset in PHP 5.6 is UTF-8, instead of blank value like in previous versions. So if you use 8-bit charset like iso-8859-1 then your non-ascii characters will be broken until you explicitly set default_charset to blank value or to your actual character set. HTML meta tag doesn&#039;t work anymore because HTTP headers have more proirity over them. And Apache AddDefaultCharset directive has lower proirity too.</div></blockquote>]]></description>
            <dc:creator>Scott Finegan</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Sat, 29 Oct 2016 17:29:38 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,161336#msg-161336</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,161336#msg-161336</link>
            <description><![CDATA[ Hi,<br />
<br />
Any idea ? :&#039;(]]></description>
            <dc:creator>nnx</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Sat, 29 Oct 2016 01:47:40 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,161320#msg-161320</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,161320#msg-161320</link>
            <description><![CDATA[ I go back to PHP 5.4, because I&#039;m just curious and there is the result (see attachments).<br />
<br />
There is no more special caracter...<br />
<br />
I thought it&#039;s was the solution but no... I delete all &quot;echo&quot; and the problem is the same : images are broken.<br />
<br />
It&#039;s like the stream is corrupted, but I don&#039;t understand why... I don&#039;t find php function that return an error.<br />
<br />
I saw your message about a patch with &quot;common.php&quot; to use with PHP &gt;= 5.6. So I undo the modification, just to test, but nothing change.<br />
<br />
With php 5.6 and the last common.php version : I upload image and it works.<br />
With php 5.4 and the old or the last common.php : I upload images, it&#039;s works, and image uploaded with php 5.6 is still working.<br />
<br />
Now I go back to php 5.6, with all original phorum files, and I don&#039;t know why images are broken. Maybe something different between php 4.4 and php 5.X but what ??]]></description>
            <dc:creator>nnx</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Tue, 25 Oct 2016 07:04:41 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,161319#msg-161319</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,161319#msg-161319</link>
            <description><![CDATA[ Hello,<br />
<br />
Few weeks ago I upgrade phorum 5.2.20 to 5.2.21, and to do that I thought I have to upgrade php from 4.4 to 5.x. I choose php 5.6 (the last supported version before 7).<br />
<br />
I also use &quot;store_files_on_disk&quot; mod, the last from many years.<br />
<br />
I thought Phorum were ok but it&#039;s not. All images are broken.<br />
<br />
During 2 nights I did many test to debug Phorum scripts and find the root cause of my problem.<br />
<br />
I can&#039;t go back to php4 with Phorum 5.2.21. I try many test to understand what&#039;s going on. I add many &quot;echo&quot; in api/files.php and there are my results.<br />
<br />
With PHP 5.6 I saw that (see attachments). Filepath is correct, myme-type is ok, size seems to be ok, and the content is file-data string.]]></description>
            <dc:creator>nnx</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Tue, 25 Oct 2016 06:47:54 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,161316#msg-161316</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,161316#msg-161316</link>
            <description><![CDATA[ Hi nnx,<br />
<br />
which version of Phorum you are using?<br />
<br />
Regards<br />
Oliver]]></description>
            <dc:creator>Oliver Riesen-Mallmann</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Tue, 25 Oct 2016 06:30:32 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,161302#msg-161302</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,161302#msg-161302</link>
            <description><![CDATA[ Hello,<br />
<br />
I have a similar problem but I don&#039;t understand how image can be corrupted ? All images are lost ? :&#039;(]]></description>
            <dc:creator>nnx</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Sat, 22 Oct 2016 14:17:31 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,158358#msg-158358</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,158358#msg-158358</link>
            <description><![CDATA[ Oliver,<br />
<br />
(This probably applies to php 5.5.x  as that was the version referenced in this thread)<br />
<br />
Under php 5.6.0 your proposed patch fixed my undisplayable images.<br />
The thumbnails were made correctly, regardless of the presence of the patch.<br />
<br />
Photos uploaded after 5.6.0 upgrade but before patch were corrupt, and needed to be re uploaded. Photos uploaded before 5.6.0 displayed ok after patch.]]></description>
            <dc:creator>Scott Finegan</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Thu, 19 May 2016 22:36:50 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,155940#msg-155940</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,155940#msg-155940</link>
            <description><![CDATA[ Hi,<br />
<br />
i still think it&#039;s only a problem in function phorum_ob_clean in common.php.<br />
<br />
I proposed a patch: [<a href="https://github.com/oricgn/phorum-core/commit/3b4a9e50a0152938ddd09af31b0e72ca3e97e652" target="_blank"  rel="nofollow">github.com</a>]<br />
<br />
Regards<br />
Oliver]]></description>
            <dc:creator>Oliver Riesen-Mallmann</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Fri, 07 Aug 2015 03:13:43 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,155804#msg-155804</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,155804#msg-155804</link>
            <description><![CDATA[ Going to need more to go on than &quot;it doesn&#039;t work&quot;.]]></description>
            <dc:creator>Scott Finegan</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Wed, 10 Jun 2015 07:54:56 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,155729#msg-155729</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,155729#msg-155729</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>olii</strong><br />
In file.php you can add a line<br />
<br />
while(ob_get_level())  ob_end_clean();<br />
<br />
before<br />
<br />
$flags = empty($PHORUM[&#039;args&#039;][&#039;download&#039;])<br />
       ? 0 : PHORUM_FLAG_FORCE_DOWNLOAD;<br />
phorum_api_file_send($file, $flags);</div></blockquote>
<br />
This fixed it for me running &gt; 5.5]]></description>
            <dc:creator>mac</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Thu, 16 Apr 2015 05:24:56 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,155133#msg-155133</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,155133#msg-155133</link>
            <description><![CDATA[ Thanks for the response.  I did find the solution just this morning.  <br />
<br />
1) the  Embed_Images settings Download Test tries to load google.com for a returned page containing a text string &quot;&lt;html&gt;&quot;, and unfortunately, google.com doesn&#039;t always use that tag.  for instance, today it looks like this:<br />
<br />
<pre class="bbcode"> 
&lt;html itemscope=&quot;&quot; itemtype=&quot;[schema.org]; lang=&quot;en&quot;&gt;</pre>
<br />
2) if the Embed_Images setting Enable Debugging for the module is YES, then I always see the broken image box with debug info, even if I fix what&#039;s causing the problem and everything is working fine.  So I was just missing the point that it was actually working fine.  <br />
<br />
I have to say, it&#039;s been a real pleasure digging through the code.  A great learning experience, both in elegance and technique.  <br />
<br />
<br />
Thanks!<br />
<br />
dale]]></description>
            <dc:creator>dmcbeath</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Fri, 20 Jun 2014 13:30:00 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,155129#msg-155129</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,155129#msg-155129</link>
            <description><![CDATA[ What are you using for a picture cache directory?<br />
<br />
From my admin  ...  embed_module ...<br />
<pre class="bbcode">
Advanced caching options. See help info for security notices.
Cache directory for scaled images (empty = use standard Phorum cache) ...  ./picturesx
URL for scaled and cached images (empty = don&#039;t use feature) ... http : //www.xxxxxxxxx.c0m/phorum/picturesx/</pre>
The first option keeps the files separate from the other cache stuff. <br />
<br />
The second second gives me a click-able link directly to the thumbnail. This click-able link is where Phorum put the file (or tried to). <br />
If you check the picture cache directory (ftp), or the Hostgator panel you should find the file at that location. If the file exists, and the link does not work, check the file and directory permissions. 644 should work (but then this is Hostgator). Check the apache raw access log for that file name, and the error code.  Ask Hostgator<br />
<br />
If the file does not exist.<br />
Check the php error log.<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />Noticed the Google upload was NOT OK... will look into your settings.php code for a clue next.... </div></blockquote> There are many reasons for this not to work. 1) hostgator security. 2) phorum is not allowing links to external &quot;files&quot;. 3)google may block<br />
<br />
For the email not working check with hostgator, many hosts have locked down email by default, to limit spam.]]></description>
            <dc:creator>Scott Finegan</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Thu, 19 Jun 2014 20:55:22 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,155126#msg-155126</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,155126#msg-155126</link>
            <description><![CDATA[ howdy.<br />
<br />
First off: this is Beautiful Coding.  It&#039;s art, and I really mean it.  The use of hooks: and templates is genius as a way to let pros and amateurs get what they want in looks and function.  I am in awe, and having fun.  I&#039;ve written a module and working on a template and it&#039;s inspiring and enjoyable.  thank you for this.  <br />
<br />
I also understand that there are just a few active followers here, so I&#039;ll be brief and to the point, and I&#039;m posting here because it seems to be a very similar problem, though not with upgrading.  This is a new forum, just built with the most recent download, and running off a hostgator server.  <br />
<br />
 I&#039;m seeing broken images in posts and nothing in emails (using Mailinglist or my own module).  The error showing (with Embed Images and Embed Attachments and Error Logging on) shows<br />
<br />
Image error<br />
Debug info:<br />
Load local file: 7<br />
Load local image file<br />
Create thumbnail using 500x500 boundary<br />
Original image was 3715x1100<br />
Thumbnail created at 500x148<br />
Thumbnail MIME type: image/jpeg<br />
OK 3715x1100 500x148<br />
open image URL<br />
<br />
<br />
<br />
and I can poke the open image URL and download the image just fine.  I&#039;m not seeing any php errors - though I might not be looking in the right place for this module&#039;s errors.<br />
<br />
I suspect it might (hopefully) be me just missing an obvious setting (like setting the attachment size &gt; 0, which it took me some time to find, ha!)....  <br />
<br />
Even if you don&#039;t have time for a comment, thanks again, not only for this open source project that so many use, but for allowing me to learn and have some fun at the same time. <br />
<br />
many thanks<br />
<br />
dale<br />
<br />
PS if you&#039;d like me to re-post as a new topic, please let me know - I posted here because it seems very symptomatically similar.<br />
<br />
6/18/14 --  I&#039;ll try to attach an image here, just as I tried with my own phorum:  (it worked here, so I&#039;m suspecting a mis-setting?)<br />
<br />
6/18/14: -- Turned off all other modules except logging and the two Embed_ mods.  All checkboxes checked, have tried various viewers.  Log shows no errors.<br />
Noticed the Google upload was NOT OK... will look into your settings.php code for a clue next....<br />
<br />
6/19/14: -- Next, I added a bit of code inside the Embed_Images settings.php to see if curl and sockets were available.  They did show as existing, so I tried using curl to get the google page, and it worked (I simply echo&#039;ed the results and contents which showed above the settings when it&#039;s run.)<br />
<br />
So I&#039;m still hunting for why phorum images aren&#039;t loading.<br />
<br />
6/18/14 -- the &quot;Not OK&quot; message is due to a minor flaw in Embed_Image&#039;s settings.php code: it is checking for the returned google.com page by looking for the &lt;html&gt; tag, and google doesn&#039;t always use it that way.  for instance, today it has &lt;html itemscope=&quot;&quot; itemtype=&quot;[<a href="http://schema.org/WebPage&quot" target="_blank"  rel="nofollow">schema.org</a>]; lang=&quot;en&quot;&gt;.  You could change the check by loosing the closing &quot;&gt;&quot;, I think.   Still can&#039;t figure out why I&#039;m seeing all broken images.<br />
<br />
.]]></description>
            <dc:creator>dmcbeath</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Wed, 18 Jun 2014 23:16:35 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,155074#msg-155074</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,155074#msg-155074</link>
            <description><![CDATA[ Glad it is working.<br />
<br />
I believe that the console_convert.php script will convert the paths to UTC now that it can locate, and move the files. You might run the script from a console and verify this. After this conversion, according to the changelog below, it should not matter which time zone is set.<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Changelog</strong><br />
2010-04-23 1.1.1<br />
<br />
    - Changed the file path generation code to use gmstrftime() instead<br />
      of strftime(). Because strftime() dependens on the server timezone,<br />
      changing the server timezone resulted in changed file storage path<br />
      and broken file downloads as result.<br />
<br />
      Files will be automatically converted to the new storage path on<br />
      access. It is possible to use the console_convert.php script<br />
      (which is a command line script) to speed up this process.<br />
<br />
      Note:<br />
      The automatic conversion from the 1.1.0 release will also<br />
      be performed, so you can upgrade directly to this release when<br />
      coming from a pre-1.1.0 version.</div></blockquote>]]></description>
            <dc:creator>Scott Finegan</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Fri, 06 Jun 2014 12:20:23 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,155072#msg-155072</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,155072#msg-155072</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Scott Finegan</strong><br />
If the broken image is the front and back of a coin, or two coins, the actual image is OK, I was able to navigate to it, download it, add .jpg and display it locally. A newly uploaded image works, so the Phorum code appears to be working.<br />
<br />
Some things to investigate.<br />
<br />
1) Are you using version: store_files_on_disk-1.1.1  ?<br />
    Are the timezone settings identical on all servers?    <br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />
Changelog:<br />
----------<br />
2010-04-23 1.1.1<br />
<br />
    - Changed the file path generation code to use gmstrftime() instead<br />
      of strftime(). <span style="color:#FF0000">Because strftime() dependens on the server timezone,<br />
      changing the server timezone resulted in changed file storage path<br />
      and broken file downloads as result.</span> </div></blockquote>
      <br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br /> <a href="http://www.php.net/manual/en/migration54.incompatible.php" target="_blank"  rel="nofollow">php 5.4 Backward Incompatible Changes</a><br />
In the date and time extension, the timezone can no longer be set using the TZ environment variable. Instead you have to specify a timezone using the date.timezone php.ini option or date_default_timezone_set() function. PHP will no longer attempt to guess the timezone, and will instead fall back to &quot;UTC&quot; and issue a E_WARNING. </div></blockquote>
<br />
The phorum_messages table has a field named &quot;meta&quot; containing serialized data that indicates the file name, along with other data that may be unrelated to this issue as other mods use this field also.<br />
<br />
The store_files_on_disk module adds a path &quot;attachments&quot; to the settings table, then gmstrftime() is used to generate subdirectories.<br />
<br />
<br />
2) Please verify the tables are using the same character set on the test machine and your website?<br />
<br />
I haven&#039;t checked lately, but a new database in MySQL creates the tables as CHARSET=latin1, unless you specify otherwise. Older Phorum installs may have tables created with DEFAULT CHARSET=utf8 or some other one.<br />
<br />
When you load data into preexisting tables, whatever character set specified at table creation rules the day. <br />
<br />
<br />
3) If it comes down to a php internal change, it may be simpler to create new minimal forums under the two versions of php, identical except php version, add one record each with an image, and compare the data that is stored. <br />
<br />
Export the data from the old php/mysql, import to the latest php/mysql. Verify the image is broken. Add one new record with the same image, verify it is not broken. Compare the broken and not broken data and try to identify the the difference(s).</div></blockquote>
<br />
<br />
Look like it&#039;s fixed!<br />
<br />
Drumrolll ...............<br />
<br />
You were right Scott ... It was the timezone issue but within the php.ini <br />
<br />
On productive server in the php.ini the time zone was &quot;date.timezone = &quot;America/Chicago&quot;&quot; while the test server had it at &quot;date.timezone = &quot;UTC&quot;&quot; so when I changed it to &quot;date.timezone = &quot;America/Chicago&quot;&quot; all the images came back ... every one of them.<br />
<br />
<br />
Thank you for all your feedback to troubleshoot on this.  <br />
<br />
Bill]]></description>
            <dc:creator>CBiLL</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Fri, 06 Jun 2014 00:19:47 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,155070#msg-155070</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,155070#msg-155070</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Scott Finegan</strong><br />
If the broken image is the front and back of a coin, or two coins, the actual image is OK, I was able to navigate to it, download it, add .jpg and display it locally. A newly uploaded image works, so the Phorum code appears to be working.<br />
<br />
Some things to investigate.<br />
<br />
1) Are you using version: store_files_on_disk-1.1.1  ?<br />
    Are the timezone settings identical on all servers?    <br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />
Changelog:<br />
----------<br />
2010-04-23 1.1.1<br />
<br />
    - Changed the file path generation code to use gmstrftime() instead<br />
      of strftime(). <span style="color:#FF0000">Because strftime() dependens on the server timezone,<br />
      changing the server timezone resulted in changed file storage path<br />
      and broken file downloads as result.</span> </div></blockquote>
      <br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br /> <a href="http://www.php.net/manual/en/migration54.incompatible.php" target="_blank"  rel="nofollow">php 5.4 Backward Incompatible Changes</a><br />
In the date and time extension, the timezone can no longer be set using the TZ environment variable. Instead you have to specify a timezone using the date.timezone php.ini option or date_default_timezone_set() function. PHP will no longer attempt to guess the timezone, and will instead fall back to &quot;UTC&quot; and issue a E_WARNING. </div></blockquote>
<br />
The phorum_messages table has a field named &quot;meta&quot; containing serialized data that indicates the file name, along with other data that may be unrelated to this issue as other mods use this field also.<br />
<br />
The store_files_on_disk module adds a path &quot;attachments&quot; to the settings table, then gmstrftime() is used to generate subdirectories.<br />
<br />
<br />
2) Please verify the tables are using the same character set on the test machine and your website?<br />
<br />
I haven&#039;t checked lately, but a new database in MySQL creates the tables as CHARSET=latin1, unless you specify otherwise. Older Phorum installs may have tables created with DEFAULT CHARSET=utf8 or some other one.<br />
<br />
When you load data into preexisting tables, whatever character set specified at table creation rules the day. <br />
<br />
<br />
3) If it comes down to a php internal change, it may be simpler to create new minimal forums under the two versions of php, identical except php version, add one record each with an image, and compare the data that is stored. <br />
<br />
Export the data from the old php/mysql, import to the latest php/mysql. Verify the image is broken. Add one new record with the same image, verify it is not broken. Compare the broken and not broken data and try to identify the the difference(s).</div></blockquote>
<br />
<br />
1) I just upgraded the store on file to a newer version, still same result, both server are using the same timezone setting which is Central America &quot;Chicago&quot; timezone. <br />
<br />
However I have not checked the time zone in php.ini yet .. I will check that one.<br />
<br />
2) table on productive server and test server both using latin1<br />
<br />
<br />
3) Data is exported from productive and imported into the test server which is the latest php/mysql ,  I did downgraded the php on the test server and it did not restore the image this time. So maybe it not the php but something else... <br />
<br />
Bill]]></description>
            <dc:creator>CBiLL</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Thu, 05 Jun 2014 13:59:47 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,155069#msg-155069</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,155069#msg-155069</link>
            <description><![CDATA[ If the broken image is the front and back of a coin, or two coins, the actual image is OK, I was able to navigate to it, download it, add .jpg and display it locally. A newly uploaded image works, so the Phorum code appears to be working.<br />
<br />
Some things to investigate.<br />
<br />
1) Are you using version: store_files_on_disk-1.1.1  ?<br />
    Are the timezone settings identical on all servers?    <br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />
Changelog:<br />
----------<br />
2010-04-23 1.1.1<br />
<br />
    - Changed the file path generation code to use gmstrftime() instead<br />
      of strftime(). <span style="color:#FF0000">Because strftime() dependens on the server timezone,<br />
      changing the server timezone resulted in changed file storage path<br />
      and broken file downloads as result.</span> </div></blockquote>
      <br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br /> <a href="http://www.php.net/manual/en/migration54.incompatible.php" target="_blank"  rel="nofollow">php 5.4 Backward Incompatible Changes</a><br />
In the date and time extension, the timezone can no longer be set using the TZ environment variable. Instead you have to specify a timezone using the date.timezone php.ini option or date_default_timezone_set() function. PHP will no longer attempt to guess the timezone, and will instead fall back to &quot;UTC&quot; and issue a E_WARNING. </div></blockquote>
<br />
The phorum_messages table has a field named &quot;meta&quot; containing serialized data that indicates the file name, along with other data that may be unrelated to this issue as other mods use this field also.<br />
<br />
The store_files_on_disk module adds a path &quot;attachments&quot; to the settings table, then gmstrftime() is used to generate subdirectories.<br />
<br />
<br />
2) Please verify the tables are using the same character set on the test machine and your website?<br />
<br />
I haven&#039;t checked lately, but a new database in MySQL creates the tables as CHARSET=latin1, unless you specify otherwise. Older Phorum installs may have tables created with DEFAULT CHARSET=utf8 or some other one.<br />
<br />
When you load data into preexisting tables, whatever character set specified at table creation rules the day. <br />
<br />
<br />
3) If it comes down to a php internal change, it may be simpler to create new minimal forums under the two versions of php, identical except php version, add one record each with an image, and compare the data that is stored. <br />
<br />
Export the data from the old php/mysql, import to the latest php/mysql. Verify the image is broken. Add one new record with the same image, verify it is not broken. Compare the broken and not broken data and try to identify the the difference(s).]]></description>
            <dc:creator>Scott Finegan</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Thu, 05 Jun 2014 00:13:15 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,155068#msg-155068</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,155068#msg-155068</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Scott Finegan</strong><br />
What happens when you run the following script?<br />
<br />
Try this on one of the pictures that is broken, and one that has been uploaded after the upgrade.<br />
&lt;?php<br />
  $file = &#039;/home/yourweb/public_html/somedirectory/somepicture.jpg&#039;;<br />
  if (is_file($file)) {<br />
    $imginfo = getimagesize($file);<br />
    foreach ($imginfo as $key=&gt;$val) {<br />
      echo $key . &#039; = &#039; . $val . &#039;&lt;br /&gt;&#039;;<br />
    }<br />
  } else {<br />
    echo &#039;The file was not found.&#039;;<br />
  }<br />
?&gt;</div></blockquote>
<br />
<br />
Thanks for helping me troubleshoot on this .... <br />
<br />
Here a link to the message post with the broken image I am testing it on. It the one on the far left.<br />
<br />
[<a href="http://ns.findmall.com/~garyk/read.php?86,2066591" target="_blank"  rel="nofollow">ns.findmall.com</a>]<br />
<br />
<br />
First test script code for that broken image <br />
<br />
<pre class="bbcode">
&lt;?php 
$file = &#039;/home/garyk/public_html/attachments/2014/0530/23/292038&#039;; 
if (is_file($file)) { 
$imginfo = getimagesize($file); 
foreach ($imginfo as $key=&gt;$val) { 
echo $key . &#039; = &#039; . $val . &#039;&lt;br /&gt;&#039;; 
} 
} else { 
echo &#039;The file was not found.&#039;; 
} 
?&gt;</pre>
<br />
Here a link to the message post with the broken image I am testing it on. It the one on the far left.<br />
[<a href="http://ns.findmall.com/~garyk/read.php?86,2066591" target="_blank"  rel="nofollow">ns.findmall.com</a>]<br />
<br />
The link to the script [<a href="http://ns.findmall.com/~garyk/testimageone.php" target="_blank"  rel="nofollow">ns.findmall.com</a>] and the output result<br />
<br />
0 = 1024<br />
1 = 768<br />
2 = 2<br />
3 = width=&quot;1024&quot; height=&quot;768&quot;<br />
bits = 8<br />
channels = 3<br />
mime = image/jpeg<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Second test script result on the working image<br />
<br />
Link to the image which is working when uploaded and attached after the PHP upgrade.<br />
<br />
[<a href="http://ns.findmall.com/~garyk/read.php?86,2066653,2066653#msg-2066653" target="_blank"  rel="nofollow">ns.findmall.com</a>]<br />
<br />
<pre class="bbcode">
&lt;?php 
$file = &#039;/home/garyk/public_html/attachments/2014/0604/08/292042&#039;; 
if (is_file($file)) { 
$imginfo = getimagesize($file); 
foreach ($imginfo as $key=&gt;$val) { 
echo $key . &#039; = &#039; . $val . &#039;&lt;br /&gt;&#039;; 
} 
} else { 
echo &#039;The file was not found.&#039;; 
} 
?&gt;</pre>
<br />
Link to the image script and the output for second test [<a href="http://ns.findmall.com/~garyk/testimagetwo.php" target="_blank"  rel="nofollow">ns.findmall.com</a>]<br />
<br />
0 = 204<br />
1 = 204<br />
2 = 2<br />
3 = width=&quot;204&quot; height=&quot;204&quot;<br />
bits = 8<br />
channels = 3<br />
mime = image/jpeg<br />
<br />
<br />
<br />
Script seem to be able to see both images fine but the first image is still broken while second image which is uploaded after the PHP upgrade is working <br />
<br />
What would be the next thing to troubleshoot?<br />
<br />
<br />
Bill]]></description>
            <dc:creator>CBiLL</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Wed, 04 Jun 2014 13:26:53 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,155067#msg-155067</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,155067#msg-155067</link>
            <description><![CDATA[ What happens when you run the following script?<br />
<br />
Try this on one of the pictures that is broken, and one that has been uploaded after the upgrade.<br />
&lt;?php<br />
  $file = &#039;/home/yourweb/public_html/somedirectory/somepicture.jpg&#039;;<br />
  if (is_file($file)) {<br />
    $imginfo = getimagesize($file);<br />
    foreach ($imginfo as $key=&gt;$val) {<br />
      echo $key . &#039; = &#039; . $val . &#039;&lt;br /&gt;&#039;;<br />
    }<br />
  } else {<br />
    echo &#039;The file was not found.&#039;;<br />
  }<br />
?&gt;]]></description>
            <dc:creator>Scott Finegan</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Wed, 04 Jun 2014 12:34:36 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,155063#msg-155063</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,155063#msg-155063</link>
            <description><![CDATA[ Looks like there an issue with current images after the upgrade of PHP because if I start uploading images after the upgrade, the images are working fine<br />
<br />
But the images before the upgrades still does not work just the ones uploaded after the PHP upgrade. <br />
<br />
Anyone have any idea why is that?<br />
<br />
Bill]]></description>
            <dc:creator>CBiLL</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Wed, 04 Jun 2014 03:28:57 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,155061#msg-155061</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,155061#msg-155061</link>
            <description><![CDATA[ I created a new Phorum forum from scratch on same test server. <br />
<br />
Installed the modules <br />
<br />
embed_attachments<br />
embed_images<br />
store_files_on_disk<br />
user_avatar<br />
<br />
All images uploaded and working fine ... <br />
<br />
I turn on Tidy and it broke the attachment &quot;embedded&quot; images but not the avatar images however on the other test site Tidy is turned off and still images are broken. I tried turning on and off Tidy but still did not restore the images.<br />
<br />
I tried using PHP 5.5 instead and same result still.....<br />
<br />
Now I am downgrading to PHP 5.3 on test server to see if that restore the images .... <br />
<br />
Bill]]></description>
            <dc:creator>CBiLL</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Wed, 04 Jun 2014 02:26:55 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,155059#msg-155059</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,155059#msg-155059</link>
            <description><![CDATA[ Here what I am doing right now ... <br />
<br />
Creating a new Phorum forum on the same test server then I will try module one by one and see if it break anything in the process to narrow it down ... <br />
<br />
I suspect the file on disk module but not sure yet since I cannot turn it off because all images had been converted to file on disk from database.  <br />
<br />
We have a huge forum where folks upload images everyday since the late 1990&#039;s so our collection is quite too huge to be stored in MYSQL database and when running backup it take forever to back it up that why we are using that file on disk module. <br />
<br />
Bill]]></description>
            <dc:creator>CBiLL</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Wed, 04 Jun 2014 00:23:45 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,155058#msg-155058</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,155058#msg-155058</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Scott Finegan</strong><br />
json shouldn&#039;t be required.<br />
<br />
You have probably already tried this, so fwiw.<br />
<br />
Turn event logging module on.<br />
Set Minimum log level to Debug<br />
Software events ... check all of the boxes.<br />
<br />
<br />
In the embed images module<br />
What image viewer do you want to use for displaying full size images?   Set to browser.<br />
<br />
Advanced caching options. <br />
Cache directory for scaled images (empty = use standard Phorum cache) Create a directory that is writable and readable like ./picturesx  so you can easily find out if Phorum is doing something with it.<br />
URL for scaled and cached images (empty = don&#039;t use feature)   Leave empty for now. Then test again later with a path that should work.<br />
<br />
Debugging problems<br />
Platform support for the http_get API layer ... OK<br />
Download test (tries to load [<a href="http://www.google.com" target="_blank"  rel="nofollow">www.google.com</a>])  Answer depends on allowed external links from forum or host.<br />
Platform support for the image API layer ... OK (plus method used)<br />
Enable debugging for this module  ... Try it both ways while checking the broken images for error messages. <br />
<br />
Check the Phorum event log. <br />
Check the apache raw access log for result codes, and bad paths.<br />
Check the php log.</div></blockquote>
<br />
<br />
I tried most of it, I don&#039;t think it the module itself because also avatar images isn&#039;t working either. I tried using it own cache folder and I know the module see the folder I created without problem because if I enter  a folder name that don&#039;t exist the module produce an folder not found error when trying to save the setting.<br />
<br />
For the error logs,  <br />
<br />
PHP log - none found related to images issues.<br />
<br />
Apache log - none found related to images issue but strangely my banners having a relative path issue, it seem not working with relative path and I don&#039;t have anything in my .htaccess which could cause this issue. I even delete it and still having this relative path issue but I use absolute path then the banners would show up fine.  Not sure if that related with images inside post messages. <br />
<br />
Embedded Image debug reports <br />
Image error<br />
Debug info:<br />
Load local file: 290884<br />
Load local image file<br />
Create thumbnail using 400x0 boundary<br />
Creating thumbnail failed: Running getimagesize() on the image data failed<br />
<br />
Event logging only reports that PHP notice: getimagesize(): Read error!<br />
<br />
Raw error only complaining about the banner images outside of the post above the forums which couldn&#039;t detect images using relative path. <br />
<br />
If I tried to access images directly inside the message, it only bring up a blank page in browser, no error message or symbol but it does produce a getimagesize() fail error in logs. <br />
<br />
Again I don&#039;t think it the module or the relative path issue is effecting the Phorum because all messages and links are working fine just the images is not coming up at all or could not be found even it there in the folder. <br />
<br />
I am using file on disk module by the way as I mentioned in my post earlier. <br />
<br />
Any other suggestion for me to look into, I really want this resolved soon so I can move it all over to the new server before PHP 5.3 is at EOL. <br />
<br />
Thank you for your assistance on this!<br />
<br />
Bill]]></description>
            <dc:creator>CBiLL</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Wed, 04 Jun 2014 00:05:52 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,154229,155057#msg-155057</guid>
            <title>Re: All uploaded images broken after the upgrade</title>
            <link>https://www.phorum.org/support/read.php?61,154229,155057#msg-155057</link>
            <description><![CDATA[ json shouldn&#039;t be required.<br />
<br />
You have probably already tried this, so fwiw.<br />
<br />
Turn event logging module on.<br />
Set Minimum log level to Debug<br />
Software events ... check all of the boxes.<br />
<br />
<br />
In the embed images module<br />
What image viewer do you want to use for displaying full size images?   Set to browser.<br />
<br />
Advanced caching options. <br />
Cache directory for scaled images (empty = use standard Phorum cache) Create a directory that is writable and readable like ./picturesx  so you can easily find out if Phorum is doing something with it.<br />
URL for scaled and cached images (empty = don&#039;t use feature)   Leave empty for now. Then test again later with a path that should work.<br />
<br />
Debugging problems<br />
Platform support for the http_get API layer ... OK<br />
Download test (tries to load [<a href="http://www.google.com" target="_blank"  rel="nofollow">www.google.com</a>])  Answer depends on allowed external links from forum or host.<br />
Platform support for the image API layer ... OK (plus method used)<br />
Enable debugging for this module  ... Try it both ways while checking the broken images for error messages. <br />
<br />
Check the Phorum event log. <br />
Check the apache raw access log for result codes, and bad paths.<br />
Check the php log.]]></description>
            <dc:creator>Scott Finegan</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Tue, 03 Jun 2014 09:23:09 -0500</pubDate>
        </item>
    </channel>
</rss>
