Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-07-30 05:23:57

jodeci
Member
From: Taipei
Registered: 2008-01-13
Posts: 38
Website

[SOLVED] Upgrading from 4.5.5 to 4.8.2, fatal error with plugins

Life went on and I haven’t bothered with my old blog site for quite a while, but because it was chocking on deprecation errors I’m finally upgrading. So far I have made my backups, uploaded all the new files to the server, and could successfully access the login page at abandoned_site.com/textpattern. Usually this should lead to txp finishing the upgrading process, but since I have neglected it for so long, right after I login, I’m greeted with:

Fatal error: Uncaught Error: Call to undefined function mysql_query() in /home/xxx/public_html/textpattern/plugins/tru_tags/tru_tags.php:908 Stack trace: #0 /home/xxx/public_html/textpattern/plugins/tru_tags/tru_tags.php(24): tru_tags_load_prefs() #1 /home/xxx/public_html/textpattern/lib/txplib_misc.php(1405): include(‘/home/xxx/p…’) #2 /home/xxx/public_html/textpattern/index.php(210): load_plugins(1) #3 {main} thrown in /home/xxx/public_html/textpattern/plugins/tru_tags/tru_tags.php on line 908

Fair enough, it’s been years! However I’ve also lost whatever know-how I had before. What are my options? If the plugin is still up to date, can I brute force upgrade it via FTP (since I can’t access the dashboard), and if so where can I find the relevant files? Or do I just nuke the plugin folder so I can at least access the dashboard, then move on from there? Thanks!

Offline

#2 2020-07-30 05:33:38

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,171

Re: [SOLVED] Upgrading from 4.5.5 to 4.8.2, fatal error with plugins

Here’s the background: forum.textpattern.com/viewtopic.php?pid=324957#p324957

Here’s the updated version of tru_tags: forum.textpattern.com/viewtopic.php?pid=324030#p324030

You can disable the plugin with a database browser – check the txp_plugin table, there’s a row for each plugin. One of the rows is status, which is 1 for active, 0 for inactive. Change to 0 for tru_tags, and the upgrade should work just fine.

Note that you may have other old plugins that are either a) out of date or b) unnecessary, so it’s definitely worth checking to see if some or call can be upgraded or removed.

Offline

#3 2020-07-30 06:15:25

jodeci
Member
From: Taipei
Registered: 2008-01-13
Posts: 38
Website

Re: [SOLVED] Upgrading from 4.5.5 to 4.8.2, fatal error with plugins

THANK YOU I am in the dashboard and things look normal enough! However the frontend now has:

Fatal error: Uncaught Error: Call to a member function start() on null in /home/xxx/public_html/textpattern/publish.php:35 Stack trace: #0 /home/xxx/public_html/index.php(82): include() #1 {main} thrown in /home/xxx/public_html/textpattern/publish.php on line 35

I did some searching and it is implied that disabling plugins should fix the issue, but it’s not working for me. I have the following setup:

Admin > Preferences -> Publish
- use plugins? NO
- use admin-side plugins? NO

Admin > Plugins
- all plugins set to not active

Offline

#4 2020-07-30 06:22:25

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,171

Re: [SOLVED] Upgrading from 4.5.5 to 4.8.2, fatal error with plugins

Can you post your diagnostics as a reply? You can hide the private info. Admin -> Diagnostics.

Offline

#5 2020-07-30 06:27:13

jodeci
Member
From: Taipei
Registered: 2008-01-13
Posts: 38
Website

Re: [SOLVED] Upgrading from 4.5.5 to 4.8.2, fatal error with plugins

Textpattern version: 4.8.2 (16f9aa74499de4fbdf8242e89e562e2e)
Last update: 2020-07-30 05:10:27/2020-07-30 05:05:57
Textpattern path: __TXP-ROOT/textpattern
Article URL pattern: section_id_title
Production status: live
Temporary directory path: /tmp
PHP version: 7.3.20
GD Graphics Library: bundled (2.1.0 compatible); Supported formats: GIF, JPEG, PNG.
Server timezone: America/Detroit
Server local time: 2020-07-30 02:23:03
Daylight Saving Time enabled?: 0
Automatically adjust Daylight Saving Time setting?: 0
Time zone (GMT offset in seconds): Asia/Taipei (28800)
MySQL: 5.7.31 (MySQL Community Server (GPL)) 
Database server time: 2020-07-30 02:23:03
Database server time offset: 1 s
Database server timezone: SYSTEM
Database session timezone: SYSTEM
Locale: en_US.UTF-8
Site / Admin language: en-us / en-us
Web server: Apache
PHP server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 2.6.32-754.9.1.el6.x86_64
Admin-side theme: hive 4.8.2

Pre-flight check: 
------------------------

Some Textpattern files have been modified: 
	__TXP-ROOT/css.php, 
	__TXP-ROOT/index.php
------------------------

.htaccess file contents: 
------------------------
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://xxx.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://xxx.net$      [NC]
RewriteCond %{HTTP_REFERER} !^http://dr.xxx.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://dr.xxx.net$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.xxx.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.xxx.net$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|bmp)$ http://www.xxx.net/image/nolink.png [R,NC]

ErrorDocument 401 /misc/401.html
#ErrorDocument 403 /misc/403.html
#ErrorDocument 404 http://www.xxx.net/misc/404.html
#ErrorDocument 500 http://www.xxx.net/misc/500.html

AddDefaultCharset UTF-8
#AddHandler application/x-httpd-php5 .html
AddHandler application/x-httpd-ea-php56 .html
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
Options -Indexes

<IfModule php_config>
php_flag register_globals off
#php_value include_path .:__TXP-ROOT/assets
</IfModule>

<IfModule mod_rewrite.c>
	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^(.+) - [PT,L]

	RewriteCond %{REQUEST_URI} !=/favicon.ico
	RewriteRule ^(.*) index.php

	RewriteCond %{HTTP:Authorization}  !^$
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>


------------------------

Edit by gaekwad: formatting.

Last edited by gaekwad (2020-07-30 06:29:44)

Offline

#6 2020-07-30 06:30:55

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,171

Re: [SOLVED] Upgrading from 4.5.5 to 4.8.2, fatal error with plugins

These .htaccess blocks can be removed:

AddDefaultCharset UTF-8
#AddHandler application/x-httpd-php5 .html
AddHandler application/x-httpd-ea-php56 .html
#DirectoryIndex index.php index.html

<IfModule php_config>
php_flag register_globals off
#php_value include_path .:__TXP-ROOT/assets
</IfModule>

Does that help?

Offline

#7 2020-07-30 06:32:22

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,171

Re: [SOLVED] Upgrading from 4.5.5 to 4.8.2, fatal error with plugins

Also, re-upload your root index.php and css.php files, they’re reported as being modified. It’s possible you missed this in the upgrade.

Last edited by gaekwad (2020-07-30 06:32:45)

Offline

#8 2020-07-30 06:38:03

jodeci
Member
From: Taipei
Registered: 2008-01-13
Posts: 38
Website

Re: [SOLVED] Upgrading from 4.5.5 to 4.8.2, fatal error with plugins

Yes, that was it, I missed image.php and css.php (facepalm). Thank you so much!

Offline

Board footer

Powered by FluxBB