Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-10-21 03:40:00

whsjr86
Member
From: Providence, RI
Registered: 2007-10-03
Posts: 17
Website

Textpattern can't find publish.php and broke

Hello,

About a day or two ago my textpattern site broke and says it can not include the file: publish.php. I created this Textpattern site about 4 years ago and have not touched it or upgraded it since. It’s currently running 4.0.2.

http://www.dspetaomega.org/

I’ve checked and the file is there on the server, but I keep getting this error. Can anyone please point me in the right direction?

Thanks you!

Last edited by whsjr86 (2009-10-21 03:40:23)

Offline

#2 2009-10-21 06:04:29

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Textpattern can't find publish.php and broke

The admin side is not accessible either.
You may have a database corruption.

Try to check/repair your tables using phpMyAdmin


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2009-10-21 12:02:15

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Textpattern can't find publish.php and broke

whsjr86 wrote:

Can anyone please point me in the right direction?

  1. The error message shows different paths for the existing index.php (/home/yitbos/dspetaomega.org/index.php) and the missing publish.php (/home/.katisha/yitbos/dspetaomega.org/textpattern/publish.php). Try changing the txpath setting in your config.php file (in the textpattern directory), getting rid of the .katisha/. If that works, log in and check diagnostics to see if any other paths need to be edited.
  2. Upgrade your Textpattern version. My guess is that this has nothing to do with your current issue, but this is something you should definitely do anyway. There are security issues with running such an old version.

Code is topiary

Offline

#4 2009-10-21 13:07:41

whsjr86
Member
From: Providence, RI
Registered: 2007-10-03
Posts: 17
Website

Re: Textpattern can't find publish.php and broke

colak I can access my Textpattern backend and I checked through the DB and it seems fine. jsoo What’s the easiest way to upgrade from 4.0.2 to 4.2.0? I can only imagine a ton has changed in between versions.

Thank you for all the input everyone!

Offline

#5 2009-10-21 13:41:58

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Textpattern can't find publish.php and broke

whsjr86 wrote:

I can access my Textpattern backend …

Do you get a clean bill of health from Admin->Diagnostics?

What’s the easiest way to upgrade from 4.0.2 to 4.2.0? I can only imagine a ton has changed in between versions.

It has. Some tags and attributes have been deprecated, so you should put the site into Debugging mode and resolve any notices/errors. Other than that, I think the upgrade process will be as simple as usual that you can upgrade directly from 4.0.2 to 4.2.0.

I’d focus on getting your site back online first, though.


Code is topiary

Offline

#6 2009-10-21 13:42:58

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Textpattern can't find publish.php and broke

Really, this thread belongs in Troubleshooting, so perhaps a moderator will move it.


Code is topiary

Offline

#7 2009-10-21 13:46:26

whsjr86
Member
From: Providence, RI
Registered: 2007-10-03
Posts: 17
Website

Re: Textpattern can't find publish.php and broke

Jsoo, thanks for the suggestions and I’ll be sure to go through Diagnostics. Sorry for posting here. I’ll be sure to mind where I post at in the future. :)

Offline

#8 2009-10-21 13:54:28

whsjr86
Member
From: Providence, RI
Registered: 2007-10-03
Posts: 17
Website

Re: Textpattern can't find publish.php and broke

I ran the diagnostics in the admin and got some nasty errors that I can’t really make heads or tails of :-/

path_to_site is inaccessible: /home/.katisha/yitbos/dspetaomega.org
/home/.katisha/yitbos/dspetaomega.org/index.php is inaccessible
Image directory is not writable: /home/.katisha/yitbos/dspetaomega.org/images
File directory path is not writable: /home/.katisha/yitbos/dspetaomega.org/files
Temporary directory path is not writable: /home/.katisha/yitbos/dspetaomega.org/textpattern/tmp
.htaccess file is missing
/home/yitbos/dspetaomega.org/textpattern/setup/ still exists
clean_url_data_failed: <br />

I’m pretty baffled by it breaking all of the sudden.

Offline

#9 2009-10-21 14:15:39

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Textpattern can't find publish.php and broke

Did you try changing config.php as I suggested?

Try removing .katisha/ from that and from the various paths in Admin->Preferences.

.htaccess file is missing is a problem. Is it really missing? If so, replace it. You can find the 4.0.2 version here.

Delete the setup directory.


Code is topiary

Offline

#10 2009-10-21 14:30:02

whsjr86
Member
From: Providence, RI
Registered: 2007-10-03
Posts: 17
Website

Re: Textpattern can't find publish.php and broke

Hey Jsoo before I saw your latest post I upgraded from 4.0.2 to 4.2.0 and now it’s throwing this error at me:

textpattern database table already exist. can't run setup.

And when I go to access the backend I get more PHP errors. I’m at a loss as to why the upgrade will not work :-/

I could wipe out the database and start fresh, but I do not want to lose all of the pages and content.

Last edited by whsjr86 (2009-10-21 14:30:31)

Offline

#11 2009-10-21 14:40:51

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Textpattern can't find publish.php and broke

Do not wipe the database! Indeed, now would be a good time to do a full database backup in phpMyAdmin or whatever you use to manage the DB.


Code is topiary

Offline

#12 2009-10-21 14:49:17

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Textpattern can't find publish.php and broke

whsjr86 wrote:

textpattern database table already exist. can't run setup.

This means Txp was attempting a clean install instead of an upgrade. This might happen if there is a problem with your config.php file. Probably you saw the “config.php is missing or corrupt” screen and clicked the link to setup? Again, have you edited txpath in config.php as I suggested?


Code is topiary

Offline

Board footer

Powered by FluxBB