Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
4.7.0 upgrade
Run into a couple of issues on a site upgrade from 4.5.4. Yeah, was interrupted and, well, it hasn’t quite worked.
Just as background, earlier in the day I had to upgrade the server from php 5.3 to 5.6.27. That seems to be working okay on the other sites I run on the same server, and that I haven’t yet upgraded.
1. The site won’t load and only gets this error message on the page:
Fatal error: Call to a member function start() on null in /home/content/39/6300239/html/bluelake/textpattern/publish.php on line 35
I can log into the admin okay and it doesn’t mention this error message.
Line 35 + 36 is:
$trace->start('[PHP includes, stage 2]');
include_once txpath.'/vendors/Textpattern/Loader.php';
That path seems to be right.
So there’s that.
2. And then there’s an error about the location of the images folder:
Image directory is not writable: /home/content/39/6300239/html/bluelake/textpattern/images.
/images is obviously not in the /textpattern/ folder.
This seems to be have been caused because the path_to_site is not showing correctly in the diagnostics:
Textpattern version: 4.7.0 (e8c2b591e79ca7b1a81db9ad8a989263)
Last update: 2018-06-06 06:45:09/2018-06-05 22:11:05
Site URL: bluelake.co.nz
Admin URL: bluelake.co.nz/textpattern
Document root: /var/chroot/home/content/39/6300239/html (/home/content/39/6300239/html)
$path_to_site: /home/content/39/6300239/html/bluelake/textpattern <---- That's obviously not right!!
Textpattern path: /home/content/39/6300239/html/bluelake/textpattern
Article URL pattern: section_title
Production status: live
upload_tmp_dir: /tmp
Temporary directory path: /home/content/39/6300239/html/bluelake/textpattern/tmp
PHP version: 5.6.27
How do I correct the path_to_site? ie, get rid of that textpattern
folder.
In the preferences, I just have the standard Image directory: images
.
Sorry, I’m also in New Zealand and it’s getting late. It might take a while for me to get back to any replies. Thanks.
Offline
Offline
Re: 4.7.0 upgrade
Nope. Sadly not.
I did a hard reload after emptying the cache.
Same message.
Thanks for the suggestion.
Offline
Offline
Offline
Re: 4.7.0 upgrade
Thanks. Very similar.
I have the same yellow warnings:
Some Textpattern files have been modified:
/home/content/39/6300239/html/bluelake/css.php,
/home/content/39/6300239/html/bluelake/index.php Help
Fix in the morning!
Offline
Re: 4.7.0 upgrade
etc wrote #312383:
You can edit the hidden
path_to_site
pref intxp_prefs
table.
I haven’t ventured into changing tables previously but should be able to work it out.
Might do that in the morning as well.
Thanks for your help.
Looks like there might be a few glitches with the upgrade path to iron out in the next iteration.
Offline
Offline
Re: 4.7.0 upgrade
Also,
detail wrote #312378:
How do I correct the path_to_site? ie, get rid of that
textpattern
folder.
Also, just to be sure, check you have the correct path set in your config.php.
TXP Builders – finely-crafted code, design and txp
Offline
Re: 4.7.0 upgrade
detail wrote #312384:
I have the same yellow warnings:
Some Textpattern files have been modified:...
Man, I made a basic mistake. But it comes from having different files with the same name.
index.php
has one version at 4KB and another at 8KB. Guess there must be a reason for that.
I managed to get two copies of same file.
Now corrected and that warning has gone away. Phew!!
However
I now have a new fatal error on the website page!!
Fatal error: Class 'smd_MLP' not found in /home/content/39/6300239/html/bluelake/textpattern/lib/txplib_misc.php(1826) : eval()'d code on line 11
Any thoughts on this one?
Offline
Re: 4.7.0 upgrade
detail wrote #312413:
Man, I made a basic mistake. But it comes from having different files with the same name.
index.php
has one version at 4KB and another at 8KB. Guess there must be a reason for that.I managed to get two copies of same file.
Ah yes, the one in the root directory and the one in the textpattern directory. It happens easily.
Fatal error: Class 'smd_MLP' not found ...
I’m guessing you have a multi-language site using MLP? I’ve no idea whether that’s been kept up to date with 4.7.0.
TXP Builders – finely-crafted code, design and txp
Offline
Offline