Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-06-12 09:11:10

roelof
Member
Registered: 2005-03-27
Posts: 647

this error-message : Fatal error: Call to undefined function: parse()

hello,

My site works normally without any problems.
This morning the text disappears and if i try to go to textpattern i get the following error-message :
Fatal error: Call to undefined function: parse() in /home/tamarawobben.nl/www/textpattern/lib/txplib_misc.php on line 1309

What went wrong this evening ??

Roelof

Offline

#2 2006-06-12 10:01:55

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: this error-message : Fatal error: Call to undefined function: parse()

Your database is corrupt.


Alex

Offline

#3 2006-06-12 13:57:20

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: this error-message : Fatal error: Call to undefined function: parse()

thank you,

I e-mailed my hosting company how i best can repear the database

Offline

#4 2006-06-13 05:59:48

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

Re: this error-message : Fatal error: Call to undefined function: parse()

I have the same error. I have yesterday moved my site to txd and I get

<b>Fatal error</b>: Call to undefined function parse() in <b>/users/home/yiannis/web/public/main/textpattern/lib/txplib_misc.php</b> on line <b>1309</b>
on the login page and

<b>Warning</b>: extract() [<a href=‘function.extract’>function.extract</a>]: First argument should be an array in <b>/users/home/yiannis/web/public/main/textpattern/publish.php</b> on line <b>56</b>

On the previous server all worked fine. On the above I have the link as it appears in the error

>Edit used phpMyAdmin to check for errors and all checks passed OK

Last edited by colak (2006-06-13 06:50:05)


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

Offline

#5 2006-06-13 06:36:05

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

Re: this error-message : Fatal error: Call to undefined function: parse()

  • Is your path in config.php correct?
  • Does your “textpattern” table or other Textpattern tables need repairing? (You can do this in phpMyAdmin.)

Offline

#6 2006-06-13 06:56:40

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

Re: this error-message : Fatal error: Call to undefined function: parse()

Hi Mary, You are always so reassuringly there for us.

Mary wrote:

  • Is your path in config.php correct?

My path is /home/yiannis/web/public/main/textpattern

I have also tried /users/home/yiannis/web/public/main/textpattern
but same errors are returned

  • Does your “textpattern” table or other Textpattern tables need repairing? (You can do this in phpMyAdmin.)

>edit I edited my post above before I saw your response: Yes I have repaired, optimised and checked the tables and all passed ok
>edit2: url

Last edited by colak (2006-06-13 07:18:33)


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

Offline

#7 2006-06-13 07:44:14

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

Re: this error-message : Fatal error: Call to undefined function: parse()

I do see a possible problem in the db: When I initially installed the software (then I think it was on either rc1 or 3) I asked it to give a prefix (txp_) to the tables. All tables have that prefix except the textpattern one. This is the first time I noticed this and it is the same in my previous server. Should that table be renamed to txp_textpattern ? If so what would the sql command be to do that?
Yet again how come everything was working ok before?


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

Offline

#8 2006-06-13 07:44:54

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: this error-message : Fatal error: Call to undefined function: parse()

Is your path in config.php correct?

Yes, it didn’t change

Does your “textpattern” table or other Textpattern tables need repairing? (You can do this in phpMyAdmin.)

I did that and one table who is crashed can’t be repeared this way

Offline

#9 2006-06-13 07:49:17

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

Re: this error-message : Fatal error: Call to undefined function: parse()

I have found how to rename the table and I can now see the login screen with these errors

Warning: extract() [function.extract]: First argument should be an array in /users/home/yiannis/web/public/main/textpattern/index.php on line 57

Notice: Undefined variable: language in /users/home/yiannis/web/public/main/textpattern/index.php on line 64

I nevertheless

  1. cannot login
  2. the front page of the site is still not visible at all

I have installed the mysql_dump on my localhost (without renaming the textpattern table to txp_textpattern) and all works fine so I think that this might not be a corruption error. I just can’t see where I am screwing up!

>Edit: I have tried to reset the password as described here but again, txp does not allow me to login

Last edited by colak (2006-06-13 09:38:51)


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

Offline

#10 2006-06-13 09:48:53

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: this error-message : Fatal error: Call to undefined function: parse()

Warning: extract() [function.extract]: First argument should be an array in /users/home/yiannis/web/public/main/textpattern/index.php on line 57

The ‘prefs’ table is missing or empty.

The table prefix is your problem. Don’t rename tables unless you plan to rename each and every one. Change the table_prefix setting in config.php instead.

All your tables should have the same prefix. The ‘txp_’ part on every table except ‘textpattern’ isn’t the table prefix – the prefix is added to that (‘foo_textpattern’, ‘foo_txp_image’, etc).

Last edited by zem (2006-06-13 09:58:12)


Alex

Offline

#11 2006-06-13 10:14:33

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

Re: this error-message : Fatal error: Call to undefined function: parse()

Zem, I’m drinking to your health!!!!!
The problem is that in the original server I did not change anything. When I installed txp I used txp_ as a prefix, the software was installed ok but the textpattern table had no prefix to it. (don’t ask me why). Today was the first time I ever attempted to change a name of a table.

Last question regarding this issue:

Now my txp installation has all the tables (it works ok both front and back end) but all tables except the textpattern table have a txp_ prefix.
Would the advice be to change their names to their default without the prefix or would it be to leave it as it is?


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

Offline

#12 2006-06-13 11:32:34

mamash
Member
From: Prague
Registered: 2004-02-21
Posts: 128
Website

Re: this error-message : Fatal error: Call to undefined function: parse()

As Zem said, by default all tables have ‘txp_’ except for the ‘textpattern’ table. This is a non-prefix setup, i.e. none of the ‘txp_’ is actually a prefix.


Who’s gonna textdrive you home tonight?

Offline

Board footer

Powered by FluxBB