Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-07-16 18:27:49
- acheung
- New Member
- Registered: 2007-07-12
- Posts: 3
4.0.5 txp_file.php error messages
Hi,
After I upgraded from 4.0.4 to 4.0.5, I noticed the following error messages in the “Files” tab:
Notice: Undefined variable: status in /www/ … /press/textpattern/include/txp_file.php on line 240
Notice: Undefined index: in /www/… /press/textpattern/include/txp_file.php on line 240
Line 240 in “txp_file.php” contains the code “td($file_statuses[$status], 45).”
In the “Files” tab, I had previously uploaded serveral files when I was using version 4.0.4. Is this what’s causing the error? Or is this a bug in 4.0.5?
Can somebody please help me out?
Thanks
Offline
Re: 4.0.5 txp_file.php error messages
Looks like the _update_4.0.5.php script didn’t run during your upgrade. Were you by any chance running an development version of TXP from SVN?
You can probably fix this by changing the value of the preference named ‘version’ to ’4.0.4’ (instead of 4.0.5) in the txp_prefs table (using PHPmyadmin or whatever tool you prefer) and then visiting the admin side of your TXP install. This should trigger the execution of the _update_4.0.5.php script which makes some changes in the database.
Last edited by ruud (2007-07-16 19:30:01)
Offline
#3 2007-07-16 20:30:32
- acheung
- New Member
- Registered: 2007-07-12
- Posts: 3
Re: 4.0.5 txp_file.php error messages
Thank you for your suggestion! It worked when the version is changed back to 4.0.4 and I revisited the admin tab to trigger the rest of the scripts. The root of the problem was that the tables did not have permission to be ALTERED by the scripts. Once this permission is set to Yes, then the scripts are run without problems. Thanks again.
Offline
Pages: 1