Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-23 17:14:26

somethingchanged
New Member
Registered: 2005-08-18
Posts: 4

Call to undefined function.

I have an almost identical error to the ‘resolved’ issue found here: http://www.google.com/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fforum.textpattern.com%2Fviewtopic.php%3Fpid%3D103514&ei=trNLRLW-N4WaYJCt3IkI&sig2=dlySOc_FpJHtJm3M7H3oCA

I’m getting “Fatal error: Call to undefined function: parse() in /home/httpd/vhosts/somethingchanged.com/httpdocs/textpattern/lib/txplib_misc.php on line 1310” when viewing http://www.somethingchanged.com/textpattern/ .. the ‘site’ itself fails to load any articles.

The odd thing is that the site has been working for 6 months, and I haven’t changed anything in config.php. The txpath value is unchanged, and replacing the hardcoded value with “dirname(FILE);” returns the same value. I may have borked some files since I’ve been trying to back-up the files to my local machine, but I can’t find anything astray. I can’t see anything applicable in the FAQ at http://textpattern.com/faq/38/fatal-error-call-to-undefined-function, and deleting all the files and installing afresh doesn’t help.

Can somebody please suggest something else I can try looking into? Thanks in advance for any suggestions.

Offline

#2 2006-04-23 19:02:30

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Call to undefined function.

You probably had missing or corrupt .php files. Can you post your high-level diagnostics?

Offline

#3 2006-04-24 03:08:19

somethingchanged
New Member
Registered: 2005-08-18
Posts: 4

Re: Call to undefined function.

Thanks for your response.. unfortunately I can’t access the diagnostics page due to the problem. Do you have any suggestions on where to look pr add debug messages in the php code?

I’ve found that config.php is getting read correctly, and that the txpath value is okay. I reckon you’re probably right on the corruption, so I’ll keep looking to see what I can find. I don’t have SSH access to the host, so have to FTP all the files across rather than unzip them on the server. There could be a problem in the transfer.

Offline

#4 2006-04-24 04:25:26

somethingchanged
New Member
Registered: 2005-08-18
Posts: 4

Re: Call to undefined function.

I’ve found the problem: the ‘textpattern’ table needed repairing. It was pretty tricky to figure that out, but at least I understand the back-end of TXP a bit better now.. Well that’s a relief that it’s back again. Cheers.

I’m wondering whether the unresolved ‘parse()’ error, while not the cause of the failure I had, is a bug? I don’t understand TXP well enough to say though.

Offline

#5 2006-04-25 05:16:32

serb
New Member
Registered: 2006-04-25
Posts: 2

Re: Call to undefined function.

I have the same problem, though I just installed this tonight and can’t get past:

Fatal error: Call to undefined function: parse() in /home/sabbra/public_html/_06/lib/txplib_misc.php on line 1310

I reinstalled all files, made the database was working, repaired it, but I am still getting this message?

p.s. database is in MySQL version 4.1.14-standard

Last edited by serb (2006-04-25 05:17:52)

Offline

#6 2006-04-25 06:29:08

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

Re: Call to undefined function.

serb,

Please see the FAQ.


Alex

Offline

#7 2006-04-26 04:08:32

serb
New Member
Registered: 2006-04-25
Posts: 2

Re: Call to undefined function.

Is the latest version supposed to have this file “.htaccess”

“.htaccess” — is important for many reasons that are out of scope here, but not the least of which is handling URL formatting.

http://textpattern.net/wiki/index.php?title=Detailed_Installation_Instructions

I have ran through that faq before posting and after reading to try it again and still the same problem exists. When I download the files, I do not have the .htaccess

Offline

#8 2006-04-26 04:21:04

somethingchanged
New Member
Registered: 2005-08-18
Posts: 4

Re: Call to undefined function.

.htaccess is possibly hidden from your view. In Linux you can see hidden files with the ‘ls -a’ command. In Windows there should be a ‘show hidden files’ or ‘system files’ option somewhere (in the My Computer options perhaps). Not sure about OS X. Can you now see it?

Offline

#9 2006-04-26 06:34:01

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

Re: Call to undefined function.

Again, this is answered in the FAQ.

Please don’t attach new questions to old threads, you’re less likely to get an answer that way.


Alex

Offline

Board footer

Powered by FluxBB