Yes, I ran both scripts and they worked like a charm (or at least it seems like they did).paul_f wrote: ↑Fri Jul 28, 2017 5:18 amHave you extracted the links and downloaded the images that Mike has very kindly supplied?mainevette wrote: ↑Fri Jul 28, 2017 1:48 amI've also installed the extension and adjusted the settings per the readme file. I've tried running it both with and without the proxy server enabled. Any thoughts?
The extension needs to have the images downloaded onto the server first
Thanks Mike. I wasn't sure which was the right setting so I had tried both settings when I was trying to get it work.v12mike wrote: ↑Fri Jul 28, 2017 5:33 amDo not enable the proxy function unless you have a secure site (using https://) and have a known working secure image proxy server.mainevette wrote: ↑Fri Jul 28, 2017 1:48 amHello,
I've also installed the extension and adjusted the settings per the readme file. I've tried running it both with and without the proxy server enabled.
With the extension enabled the stock photobucket "speedometer" image is replaced with a simple icon only, it doesn't display the actual image. A screenshot is provided below. When I click the image link I'm redirected to photobucket's website where it displays the "speedometer" image.
Here's a link to a thread on my forum that had a good number of photos if it helps. I have the extension running but with the proxy server disabled. http://www.forum.corvette-restoration.c ... &start=540
As a last-ditch effort I purged my cache but that didn't work (figured it wouldn't anyhow). Any thoughts?
Looking at your forum page linked above with the inspect element function of my browser, it shows the new image link as:which is probably wrong, as it is looking for the image files in your domain root directory. In fact that looks like a camo link, which indicates that you have wrongly enabled the proxy function and that you have either not downloaded the images from photobucket (using the scripts I supplied earlier, or you have not configured the Local Image Path correctly. What is your 'Local Image Store Path' set to in the extension ACP? What is the relative (to forum root) path to the directory where the image files have been saved?Code: Select all
<img src="https://forum.corvette-restoration.com//744eb10dac795a078c9b85e340d669757a799ebc/687474703a2f2f6933342e70686f746f6275636b65742e636f6d2f616c62756d732f643133382f7669746f70617363616c652f436f6e736f6c652532306b69745f7a707365696e736f7768312e6a7067" class="postimage" alt="Image">
On one of my boards, a link modified by the extension now looks like:, and if you take the url partCode: Select all
<img src="https://frenchcarforum.co.uk/forum/images/ext/d389166a50329df89686874142f3c83d" class="postimage" alt="Image">
and paste it into a browser, you should see the original image.Code: Select all
https://frenchcarforum.co.uk/forum/images/ext/d389166a50329df89686874142f3c83d
You should certainly have proxy mode disabled and local image store mode enabled.mainevette wrote: ↑Sun Jul 30, 2017 2:51 amThanks Mike. I wasn't sure which was the right setting so I had tried both settings when I was trying to get it work.
I inspected the link and can see what you mean about the image link. Interestingly, I've have "Proxy Mode" under "Proxy Settings" disabled since I posted my message.
I've messed around with it a bit tonight but can't seem to get the link to be unencrypted when the image redirect extension is running. I've tried playing with the settings (and hitting the save button each time), purging the cache of my board, and even clearing my cookies as well as trying a new internet browser. After those didn't work I went to the extensions tab, disabled the image redirect extension, clicked "delete data", and cleared my boards cache one more time. I then inspected an image link and confirmed it was pointing to photobucket.
With that straigthened out I re-enabled the extension and left all the settings as their default (including having the proxy server disabled). Once I hit the refresh button the links are all encrypted again. I checked the settings on the image redirect extension and, I wasn't sure if my forum web address should be typed into the "No Proxy Domains" field so I added it to see what happened. Unfortunately, nothing changed.
I have the board running with those same settings now which can be seen at this link. http://www.forum.corvette-restoration.c ... &start=570
I'm at a bit of a loss tonight. Going to sleep on it and give it another shot in the morning - I'm sure it's probably user error on my part. In the meantime I'm open to ideas and suggestions.
3.) I re-ran the "Download External Images" script and waited for it to complete. The script ran for probably 20-30 seconds and then ended. I re-ran it again just to be sure and the end point appeared to be the same, although no confirmation was given that the script completed successfully. The output from that script is too long to post here so I copied it into both a MS Word and text file which can be downloaded at the following links:Candidate posts to check=761, maximum number to check each run=50000, starting after post_id=0 ... All Done!!
Code: Select all
$interval = 20000;
I adjusted the interval to 1000 and re-ran the script. This time it prompted me to re-run the script which I did. It ended at the same place it did last time - download 1428. I waited for quite some time for the script to finish but it just stayed at that same stopping point and there's no spinning icon indicating the page is still loading / script is running. I tried reducing the interval to 250 just to see what would happen but it was the same outcome - the script stops at that one image without explanation.v12mike wrote: ↑Sun Jul 30, 2017 3:01 pmThe file download script is not terminating correctly (and has not downloaded all of the files. I can't see the reason for this, maybe php has run short of resources or time.
New the beginning of download_external_images.php isthe definitiontry reducing that to 1000, you should see the script terminate normally and ask to be re-run. Maybe that will fix it.Code: Select all
$interval = 20000;
Success - that did the trick! I went into my SQL database, found the offending link and checked it out. Turns out it was a 50 Mb+ high resolution photo that was actually linked from my website. I was able to temporarily remove photo from my website and re-run the script. Once complete I loaded the photo back to my site and manually redid the image link in the original forum post.v12mike wrote: ↑Sun Jul 30, 2017 6:38 pmIf you have a tool that lets you examine database tables, browse the table phpbb_external_images, and find the first (lowest ID) row that has a 0 or NULL status. That is probably the url that is killing the script. You could try manually changing the status of that row to something distinctive (like 999) and see if the script carries on afterwards. You might also take a look at the url of that row and see if there is anything special about it.
Code: Select all
https://07ca78113ce28c2ea062b32860d574f5bd8ada59/687474703a2f2f693135372e70686f746f6275636b65742e636f6d2f616c62756d732f7434332f6d61647269645f35372f53746172626f617264466f726d756c614c575232303130646550696c617250726965742e6a7067
OK, I see that there is a bug in the extension, I will update it later today. It didn't show up on my forums because they https with camo proxies.cincen wrote: ↑Tue Aug 01, 2017 2:38 pmno.. I have proxy disabled. I have image redirection disabled now ... I have noticed that all my image urls were like this when enabled:
Maybe is because my forum is on HTTPS ???Code: Select all
https://07ca78113ce28c2ea062b32860d574f5bd8ada59/687474703a2f2f693135372e70686f746f6275636b65742e636f6d2f616c62756d732f7434332f6d61647269645f35372f53746172626f617264466f726d756c614c575232303130646550696c617250726965742e6a7067