Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Warnings and a fatal error

#1 2006-06-09 00:24:09

ktinkel
Member
Registered: 2004-06-04
Posts: 16

Warnings and a fatal error

Although I have installed Textpattern and set up the site, I get a bunch of warnings and a fatal error when I try to view the site:

Warning: main(/home/www/oldies_tp/textpattern/publish.php): failed to open stream: No such file or directory in /home/desktopp/public_html/oldies_tp/index.php on line 27

Warning: main(/home/www/oldies_tp/textpattern/publish.php): failed to open stream: No such file or directory in /home/desktopp/public_html/oldies_tp/index.php on line 27

Warning: main(): Failed opening ‘/home/www/oldies_tp/textpattern/publish.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/desktopp/public_html/oldies_tp/index.php on line 27

Fatal error: Call to undefined function: textpattern() in /home/desktopp/public_html/oldies_tp/index.php on line 2

===================

I looked at index.php in oldies_tp and there is no line 27 (just a single line).

What I believe may be at the root of my problem (pun intended) is that the path is wrong. When given a chance I have entered the correct path:

home/www/oldies_tp/ . . .

But TextPattern continues to replace it with:

home/desktopp/public_html/oldies_tp/

desktopp is the user name on the server, so I can understand that (sort of).

But could changing www to public_html cause my problems?

Or can anyone explain what is going on here. (mewing piteously . . .)

Thanks.

Offline

#2 2006-06-09 00:47:49

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: Warnings and a fatal error

Yeah, this is definitely a path problem……try resetting the config file….essentially, redo setup.

Offline

#3 2006-06-09 01:44:58

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Warnings and a fatal error

No, do not redo setup, unless you want all your previous work trashed. Just correct your config.php file.

Offline

#4 2006-06-09 22:01:25

ktinkel
Member
Registered: 2004-06-04
Posts: 16

Re: Warnings and a fatal error

Mary wrote:

No, do not redo setup, unless you want all your previous work trashed. Just correct your config.php file.

Ah, well. Went back to zero and did it all over. But I am still having path problems.

I determine the path in Fetch by viewing the path, literally. Textpattern accepts my path sometimes, but in various areas creates its own. Maybe it knows better than I do, because now, in Pre-flight check, it tells me that:

File Upload Path is not writable: /home/www/oldies_txp/files

(Permissions are at 777.)

That is the path, as I see it on the server.

However, in the diagnostic info, Textpattern keeps altering it. I.e.:

Document root: /home/desktopp/public_html
(I think it should be /home/www/)

$path_to_site: /home/desktopp/public_html/oldies_txp/textpattern
(I think it should be /home/www/oldies_txp/textpattern/)

Thus I surmise that it wants the File Upload Path to be:
/home/desktopp/public_html/oldies_txp/files

If that is correct, how on earth could I know that? Looking at the server, I see a different path.

Or is it wrong, and if so, what can I do about it?

Thanks. I am sure I seem as if I am in way over my head (and that isn’t far wrong!).

Offline

#5 2006-06-09 22:10:29

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Warnings and a fatal error

Let’s start with your main site path and then move onto the files problem.

The diagnostics details don’t have Textpattern actually changing your path, but is showing what it thinks your path might be, which can be helpful in debugging.

Okay, so you have Textpattern sitting here: /home/www, which means there should be a folder named “textpattern” here: /home/www/textpattern.

Inside config.php, what do you have for $txpcfg['txpath']? If the above is correct, it should be: /home/www/textpattern (it wants the path to the “textpattern” folder).

Offline

#6 2006-06-10 00:29:37

ktinkel
Member
Registered: 2004-06-04
Posts: 16

Re: Warnings and a fatal error

Mary wrote:

Let’s start with your main site path and then move onto the files problem.

The diagnostics details don’t have Textpattern actually changing your path, but is showing what it thinks your path might be, which can be helpful in debugging.

Okay, so you have Textpattern sitting here: /home/www, which means there should be a folder named “textpattern” here: /home/www/textpattern.

  • * * No: It is “@home/www/oldies_txp/textpattern * * *

Inside config.php, what do you have for $txpcfg['txpath']? If the above is correct, it should be: /home/www/textpattern (it wants the path to the “textpattern” folder).

  • * * I show:

In the config.php in /oldies_txp/config.php it says: “ftp://desktopp:@ftp.[domain]/www/oldies_txp/config.php”

In the config.php in /home/www/oldies_txp/textpattern/config.php it says: “ftp://desktopp:@ftp.[domain]/www/oldies_txp/textpattern/config.php” * * *

Not at all like your example. [groan]

What now?

Last edited by ktinkel (2006-06-10 00:35:22)

Offline

#7 2006-06-10 01:05:31

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Warnings and a fatal error

Okay, trying again. (Re-install isn’t needed, just correcting a file and an admin setting.)

What you should have here /home/www/oldies_txp is:

  • files (with 777 permissions)
  • images
  • textpattern
  • index.php

Inside “textpattern”, there should be “config.php”. Open it up, and regardless of what it says now, make the value look like this:
$txpcfg['txpath'] = '/home/www/oldies_txp/textpattern';

Now your site and the admin should run properly with no errors. If we’re successful thusfar, we can move onto making file uploads work. :)

Offline

#8 2006-06-10 01:25:38

ktinkel
Member
Registered: 2004-06-04
Posts: 16

Re: Warnings and a fatal error

Mary wrote:

Okay, trying again. (Re-install isn’t needed, just correcting a file and an admin setting.)

What you should have here /home/www/oldies_txp is:

  • files (with 777 permissions)
  • images
  • textpattern
  • index.php

Inside “textpattern”, there should be “config.php”. Open it up, and regardless of what it says now, make the value look like this:
$txpcfg['txpath'] = '/home/www/oldies_txp/textpattern';

Now your site and the admin should run properly with no errors. If we’re successful thusfar, we can move onto making file uploads work. :)

Thank you.

However, maybe I do not know what you mean by ‘value’ but when I replace the contents of textpattern/config.php with “$txpcfg[‘txpath’] = ‘/home/www/oldies_txp/textpattern’;”

and then re-ftp it to the server, it reverts to

“[ftp://desktopp:@ftp.desktoppublishingforum.com/www/oldies_txp/textpattern/config.php”
(replacing the [ and ] with angle brackets)

This makes no sense to me, but I did it about 8 times, with the identical result.

What am I missing here?

Last edited by ktinkel (2006-06-10 01:38:37)

Offline

#9 2006-06-10 04:31:06

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Warnings and a fatal error

No, not the whole config.php file, just that one line. Sorry, I should have been more clear.

Ok. Drop the textpattern tables from your database and start again with install. When it asks for your path at the setup, clear whatever is in there and enter /home/www/oldies_txp/textpattern.

If after that it doesn’t work, then I think the problem is with your server’s settings.

Offline

#10 2006-06-10 14:30:08

ktinkel
Member
Registered: 2004-06-04
Posts: 16

Re: Warnings and a fatal error

Mary wrote:

Ok. Drop the textpattern tables from your database and start again with install. When it asks for your path at the setup, clear whatever is in there and enter /home/www/oldies_txp/textpattern.

If after that it doesn’t work, then I think the problem is with your server’s settings.

————
Okay. It appears the problem must have something to do with server. I just redid everything again. When I paste the correct lines (copying those in Setup,, which does show the /home/www/oldies_txp/textpattern/ path) in the config.php in the textpattern directory, it morphs into a single line (with angle brackets on each end:

ftp://desktopp:@ftp.[sitename]/www/oldies_txp/textpattern/config.php

I have done this repeatedly, both by dragging the config.php file onto the server and by having BBEdit save to the server, and the result is always the same.

Besides that, Diagnostic info shows the /desktop/public_html/oldies_txp/ site path. Same for the File Upload Path in Advance prefs.

Whether I leave that alone or change it to the /www/oldies_txp/ path I get the 3 warnings and 1 fatal error listed in an earlier message.

Even weirder, when I look at the index.php file in BBEdit, it too has only a single line, identical to the one in config.php. (But the error messages refer to lines 27 and 28 — are they there but invisible?)

Anyway, color me stumped. Does this mean I need to ask my host to do something to the server? Can you tell me what to ask for?

Thanks very much for your patience.

Offline

#11 2006-06-10 21:42:42

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Warnings and a fatal error

When I paste the correct lines (copying those in Setup,, which does show the /home/www/oldies_txp/textpattern/ path) in the config.php in the textpattern directory, it morphs into a single line…

Ooo, that’s not right…

…when I look at the index.php file in BBEdit, it too has only a single line, identical to the one in config.php.

That’s not right either: index.php should look like this and the index.php inside the “textpattern” folder should look like this.

I think your files must’ve become corrupted at some point. I’m wondering if it might be BBEdit. Do you have another FTP program on hand? You might try re-uploading all your files with fresh copies from the zip/tar file.

Offline

#12 2006-06-11 02:23:26

ktinkel
Member
Registered: 2004-06-04
Posts: 16

Re: Warnings and a fatal error

Mary wrote:

I think your files must’ve become corrupted at some point. I’m wondering if it might be BBEdit. Do you have another FTP program on hand? You might try re-uploading all your files with fresh copies from the zip/tar file. **

BBEdit is a simple text editor — one of the best on any platform and certainly the best on the Mac — and it had very little to do with this saga, except that at the end I decided to let it save directly to the server to see if it made a difference.

The other possible culprit, I suppose, would be Fetch, but that too seems doubtful to me (it is the most reliable Mac FTP program I know of).

On the other hand, I have completely re-uploaded Textpattern four times from the source files (and have recreated a MySQL database three times) with the only tools I have. I guess that Textpattern is not going to work in this case. That is disappointing, but I have had sufficient frustration for now!

I believe the problem has something to do with my host’s server setup combined with some sort of rigidity in Textpattern. But I am evidently not capable either of figuring it out or fixing it.

Thanks very much for your help.

Offline

  1. Index
  2. » Archives
  3. » Warnings and a fatal error

Board footer

Powered by FluxBB