AutoItScript Posted May 14, 2015 Posted May 14, 2015 Just trying a 4.0.4 to 4.0.5 upgrade on a test site, and it doesn't seem to be doing what I thought was the main reason for 4.0.5...4.0.4 Config - Default installbase_url: https://www.autoitscript.com/ips4cleanStorage Settings for File System (protocol relative): //www.autoitscript.com/ips4clean/uploadsEmoticons and attached images appeared as: src="//www.autoitscript.com/ips4clean/uploads/...." 4.0.5 Config After Upgrade and no background tasks pendingStorage Settings for File System: AutomaticEmoticons and attached images appeared as: src="https://www.autoitscript.com/ips4clean/uploads/...." From what I read, I was expecting these to appear as src="/ips4clean/uploads/..." to make URL/CDN changes easier. If anything, the URLs are now less relative than before. Or have I just completely misunderstood?
Management Charles Posted May 14, 2015 Management Posted May 14, 2015 The full URLs are still inserted at run time but are not stored in the database that way.
AutoItScript Posted May 14, 2015 Author Posted May 14, 2015 Aha I see. Looking in the DB I can see that attached images have a new reference. Cool. However emoticons from before the upgrade are still using the old //www.autoitscript.com address while a newly inserted emotion is using the reference.
Management Matt Posted May 14, 2015 Management Posted May 14, 2015 Which 4.0.5 did you use? The one in client testing, or the public release?
AutoItScript Posted May 14, 2015 Author Posted May 14, 2015 Public, I didn't have access to the testing one.
Management Matt Posted May 14, 2015 Management Posted May 14, 2015 Can you submit a ticket for me please?
AutoItScript Posted May 14, 2015 Author Posted May 14, 2015 It can be repoed on a clean 4.0.4 install followed by a 4.0.5 upgrade. It's not going anywhere near my live data yet I'm assuming a https base url for this, not tried with a http one. If I create a test post (manually editing the DB) to show 3 emoticons having the 3 different possible combinations of URL depending on if it was a 3.4 upgrade or a clean 4 install you have a post like this in the DB: <p><img src="//www.autoitscript.com/ips4clean/uploads/monthly_2015_05/smile.png.aa9346d7ae24715b2781c1504d6ac230.png" alt=":)" title=":)"> </p> <p><img src="http://www.autoitscript.com/ips4clean/uploads/monthly_2015_05/smile.png.aa9346d7ae24715b2781c1504d6ac230.png" alt=":)" title=":)"> </p> <p><img src="https://www.autoitscript.com/ips4clean/uploads/monthly_2015_05/smile.png.aa9346d7ae24715b2781c1504d6ac230.png" alt=":)" title=":)"> </p> If you then force another post rebuild you end up with this: <p><img src="//www.autoitscript.com/ips4clean/uploads/monthly_2015_05/smile.png.aa9346d7ae24715b2781c1504d6ac230.png" alt=":)" title=":)"> </p> <p><img src="https://www.autoitscript.com/ips4clean/uploads/monthly_2015_05/smile.png.aa9346d7ae24715b2781c1504d6ac230.png" alt=":)" title=":)"> </p> <p><img src="/monthly_2015_05/smile.png.aa9346d7ae24715b2781c1504d6ac230.png" alt=":)" title=":)"> </p>
opentype Posted May 15, 2015 Posted May 15, 2015 The full URLs are still inserted at run time but are not stored in the database that way.How is that run time change done?I used to output Pages uploads fields in the view templates, but the images are now broken since they don’t use the full URL. Is there some base URL variable I need to put in from of it?
AutoItScript Posted May 15, 2015 Author Posted May 15, 2015 How is that run time change done?It's a search and replace that is done in system\Output\output.php in the sendOutput() function.
Marcher Technologies Posted May 15, 2015 Posted May 15, 2015 I would assume based on this format specifically that you would use:In Pages database templates to have the correct file storage configuration used. As existing templates are specifically not upgraded for Pages, this change would need to be made manually for those upgrading that are manually outputting the field data in custom ways.
opentype Posted May 15, 2015 Posted May 15, 2015 Indeed, that gives me the base URL. However, when I add that to a Pages template and later open that template again, it doesn’t show again but hard codes the actual URL. Sounds like a bug, doesn’t it?
Owdy Posted May 15, 2015 Posted May 15, 2015 Its buggy allright, article images doesnt show correctly now. I just released new articlehttp://hoitajat.net/hoitotyo/ajankohtaista/lääketutkimukset-pelastavat-ihmishenkiä-ja-tuovat-tieteen-uusimmat-saavutukset-potilaiden-käyttöön-r51/Image shows in admin panel, not in public page... edit: ticket 915298
Recommended Posts
Archived
This topic is now archived and is closed to further replies.