Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-02-09 17:11:36

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 689
Website Mastodon

[Solved] SEVERE troubles: update 4.0.3 to 4.0.8

CASE BELOW IS RESOLVED!
It helped to simply delete the old textpattern directory (not the config.php of course) and then reinstall the complete textpattern directory.
Nevertheless it might help someone in the future to know, that webs pace providers seem to run automatic tasks revoking manually set file access permissions, which can only be surpassed by deleting old files first, the copy new files in. THANX!

Hello everyone,

i am attempting to update a client’s site from 4.0.3 to 4.0.8 today and after installing the necessary files the front end shows this:

Fatal error: Cannot redeclare since() (previously declared in /users/home/thiswebsite/web/public/textpattern/lib/txplib_misc.php:1164) in /users/home/thiswebsite/web/public/textpattern/publish.php on line 866

the backend login shows this:

{ $c_hash = md5(uniqid(mt_rand(), TRUE)); $nonce = md5($name.pack(‘H*’,$c_hash)); safe_update( ‘txp_users’, “nonce = ‘”.doSlash($nonce).”’”, “name = ‘”.doSlash($name).”’” ); setcookie( ‘txp_login’, $name.’,’.$c_hash, ($stay ? time()+3600*24*365 : 0) ); setcookie( ‘txp_login_public’, substr(md5($nonce), -10).$name, ($stay ? time()+3600*24*30 : 0), $pub_path ); // login is good, create $txp_user $txp_user = $name; return ‘’; } else { $message = gTxt(‘could_not_log_in’); } } elseif ($p_reset) // reset request { sleep(3); include_once txpath.’/lib/txplib_admin.php’; $message = send_reset_confirmation_request($p_userid); } elseif (gps(‘reset’)) { $message = gTxt(‘password_reset’); } elseif (gps(‘confirm’)) { sleep(3); $confirm = pack(‘H*’, gps(‘confirm’)); $name = substr($confirm, 5); $nonce = safe_field(‘nonce’, ‘txp_users’, “name = ‘”.doSlash($name).”’”); if ($nonce and $confirm === pack(‘H*’, substr(md5($nonce), 0, 10)).$name) { include_once txpath.’/lib/txplib_admin.php’; $message = reset_author_pass($name); } } $txp_user = ‘’; return $message; } ?>

plus a login screen below.

When i login i only get another error message:

{ $c_hash = md5(uniqid(mt_rand(), TRUE)); $nonce = md5($name.pack(‘H*’,$c_hash)); safe_update( ‘txp_users’, “nonce = ‘”.doSlash($nonce).”’”, “name = ‘”.doSlash($name).”’” ); setcookie( ‘txp_login’, $name.’,’.$c_hash, ($stay ? time()+3600*24*365 : 0) ); setcookie( ‘txp_login_public’, substr(md5($nonce), -10).$name, ($stay ? time()+3600*24*30 : 0), $pub_path ); // login is good, create $txp_user $txp_user = $name; return ‘’; } else { $message = gTxt(‘could_not_log_in’); } } elseif ($p_reset) // reset request { sleep(3); include_once txpath.’/lib/txplib_admin.php’; $message = send_reset_confirmation_request($p_userid); } elseif (gps(‘reset’)) { $message = gTxt(‘password_reset’); } elseif (gps(‘confirm’)) { sleep(3); $confirm = pack(‘H*’, gps(‘confirm’)); $name = substr($confirm, 5); $nonce = safe_field(‘nonce’, ‘txp_users’, “name = ‘”.doSlash($name).”’”); if ($nonce and $confirm === pack(‘H*’, substr(md5($nonce), 0, 10)).$name) { include_once txpath.’/lib/txplib_admin.php’; $message = reset_author_pass($name); } } $txp_user = ‘’; return $message; } ?>
Warning: Unknown column ‘load_order’ in ‘order clause’ select name, code, version from txp_plugin where status = 1 AND type IN (1,3) order by load_order in /users/home/thiswebsite/web/public/textpattern/lib/txplib_db.php on line 82

Fatal error: Cannot redeclare tsi() (previously declared in /users/home/thiswebsite/web/public/textpattern/lib/txplib_forms.php:281) in /users/home/thiswebsite/web/public/textpattern/include/txp_article.php on line 634

Now when i initially rewrote the old textpattern directory (obviously not the config.php file) and replaced the index.php and .htaccess in the main directory there was a problem with file access permissions, which lead me to having to upload every single file individually, especially in certain subdirectories.

Does anyone have a clue what’s happening here? Is it an option to reinstall the 4.0.3 files, and then start over again?
(We can;t go right up to 4.2.0 as certain plugins we need didn’t get updated)

Any help is very appreciated.

Last edited by jayrope (2010-02-09 18:02:09)


A hole turned upside down is a dome, when there’s also gravity.

Offline

Board footer

Powered by FluxBB