Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Feedback: Textpattern CMS 4.9.0 released
Bloke wrote #342043:
Hmmm,
hu(and by inferenceihu) are drawn from the site’s docroot… And Txp (should) set it correctly for each virtual site.
Both are set to https://example.com/ when printed from an article on the public side, and into the Preview window on the admin side with tags enabled. Looks good.
I expect the fix is to change: […]
Applying your proposed changes at line #230 in /vendors/lencioni/SLIR/SLIRConfigDefaults.php results in this message returned instead of the thumb image:
‘Image does not exist: https://example.com//images/42.jpg’
I think the two trailing slashes after the web host name are unintentional and not helpful. Cutting the trailing slash in line #230 like so
self::$documentRoot = preg_replace('#/$#', '', ihu);
…causes the thumb ‘image’ to read ‘Image does not exist: https://example.com/images/42.jpg’. This doesn’t help either.
Unfortunately, this issue requires further consideration. Is there anything I can help with?
Offline
Re: Feedback: Textpattern CMS 4.9.0 released
wet wrote #342057:
‘Image does not exist: https://example.com/images/42.jpg’
Hmmm, thanks for trying it out. That’s (sort of) closer insofar as it’s using ihu now, but I’m not sure whether it needs the file path to create the thumb or the URL. I’ll need to trace it through somehow to figure out which it needs.
Maybe it does need a file path instead of URL, but it needs to be cognisant of your subdir structure beneath it. Clearly other parts of Txp understand this and are okay with it, so it’ll just be a case of finding which global is the one we need to tell SLIR about so it can resolve the path properly, instead of using the erroneous docroot value.
Maybe instead of changing self::$documentRoot = ihu, we change it to self::$documentRoot = $path_to_site (along with importing the global variable at the top of the function)? That assumes your images can be found at /var/www/virtual/wet/example.com/images…?
Last edited by Bloke (Yesterday 18:01:25)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Online
#75 Today 17:11:36
Re: Feedback: Textpattern CMS 4.9.0 released
First of all… best wishes for 2026 and big thanks to the developers for making version 4.9… :))
My first installation of 4.9 and populating the database with tables from a new website, but made with 4.8: no pages, no forms … !? Thanks in advance for any help.
SOLVED! Clicking on Textpattern > Themes > Pages and Forms did the trick … :)
Last edited by RedFox (Today 17:21:55)
Offline