Stuck on printtophtml()

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
Chrysanthemum
Posts: 5
Joined: Tue Jul 29, 2008 12:06 pm

Stuck on printtophtml()

Post by Chrysanthemum »

Script URL:
Version of script: 1.3 from November 18, 2006 (fix from 16th Feb 2007)
Hosting company: NetBenefit
URL of phpinfo.php: can't find it
URL of session_test.php:
What terms did you try when SEARCHING for a solution: I searched on the entire error message and then parts of it, and with/without phpjunkyard

Write your message below:

When I try to open my newly-uploaded mboard.php, I receive two error messages (so far). The first one was

require_once('settings.php');

so I removed the _once because I read somewhere that PHP5 doesn't like require_once.

When I tried again, this time the error message was

Fatal error: Call to unsupported or undefined function printtophtml() in /sites/web18318/home/web18318/website/news/bulletinboard/mboard.php on line 87

Then I came here and searched to see if anyone had had the same problem.

Then I registered and while I was waiting for the activation e-mail, I put stuff into my header and footer text files but I can take that out; it didn't fix the Fatal Error.

I feel I am so close to fixing this but going round in circles instead.
Thanks in advance for any help.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Not sure what's wrong but it must be a messed up mboard.php file, try using the original one, even though it has require_once (or just change that to require and leave everything else intact).
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Chrysanthemum
Posts: 5
Joined: Tue Jul 29, 2008 12:06 pm

Post by Chrysanthemum »

Klemen wrote:Not sure what's wrong but it must be a messed up mboard.php file, try using the original one, even though it has require_once (or just change that to require and leave everything else intact).
Thank you - will try that - when you say "the original one", do you mean the one in the zip file I downloaded today or the pre February 2007 fix (if I can find it)?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

The one you download today is the up-tp-date one and should work fine.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Chrysanthemum
Posts: 5
Joined: Tue Jul 29, 2008 12:06 pm

Post by Chrysanthemum »

Klemen wrote:The one you download today is the up-to-date one and should work fine.
Hi, Klemen, I just wanted to let you know that the problem turned out to be the ISP running an ANCIENT version of the PHP "engine" (version 3 something). Nothing wrong with your script. Of course :-)

I spent DAYS on that and when I found out that it was the ISP that hadn't upgraded the PHP, I could have SCREAMED!

Anyway, the GBook suited my client's requirements better, and that's what we are using (and for which we have bought a licence).
Locked