|
|
F_getTopic undefined in phpweblog-0.2.4?
Posted under General by Paul on Sunday June 11 2000 @ 11:56AM EDT
|
I downloaded and installed phpweblog-0.2.4
over the weekend at an ISP account running linux and PHP3.
Submission of articles is not working, and I'm getting an "Error: Unreachable" in its blank state.
I started digging, and traced the problem to F_getTopic which while used 2-3 times does not seem to be defined anywhere.
I looked with grep * and grep */* which would
have gotten places like inc.d/common.... etc.
I would post the results, but for some reason phpweblog.org does not like the pre or code tags. But, hey, thats another issue...
Fixes or patches much appreciated.
Paul
paul@linuxfutures.com
|
|
|
|
jason writes on Sunday June 11 2000 @ 12:02PM EDT: [ reply | parent ]
F_getTopic() is defined in inc.d/common.inc.php3.
Do you have Topics turned off? There may be a bug here with using F_getTopic() with Topics off.
|
|
Paul writes on Sunday June 11 2000 @ 12:10PM EDT: [ reply | parent ]
Dude! Thanks for the fast response.
I looked again, and you are half right.
F_gettopic is defined in inc.d/common.inc.php3, but it is referenced as F_getTopic in the other files.
I imagine that replacing gettopic with getTopic in inc.d/common.inc.php3 would fix this, but I haven't tried it yet.
|
|
Paul writes on Sunday June 11 2000 @ 12:57PM EDT: [ reply | parent ]
Ok, I fiddled with getTopic a bit. I corrected the lower case gettopic, and I fiddled with the select statement that is inside after doing some echo tests.
For one thing, getTopic was getting called with Rid=0 by stories, and all the topics have positive Rids, so I altered the SQL query to return the entire topic table when rid=0 and to return only the requested element otherwise. This makes sure that 0 maps to something ....
Also, someone should check the where clause in the select statement that is in common.inc.php3 around line 275 as I am suspicious but more of a perl than a php person. The use of "" and '' at WHERE Rid= looked funny to me so I made it very clear with the use of '' and the . string op.
This seems to have helped things along, but I am still not up.
In contrib I am getting a blank page at the preview stage after entering and submitting an article for the first time. I checked the HTML source in my browser and found this at the bottom:
Fatal error: Call to unsupported or undefined function strip_tags() in inc.d/common.inc.php3 on line 69
This doesnt make it to the screen though. Maybe we are inside a table. Are we? Lemme look.... yup we are inside a table... and as ya know I'm sure tables dont show until they are done. But at least I found my error.
Any ideas?
Thanks,
Paul
paul@linuxfutures.com
|
|
Paul writes on Sunday June 11 2000 @ 01:15PM EDT: [ reply | parent ]
Well, looks like my PHP reference says strip_tags is a standard function. I think I'll gripe at my ISP.
PHP doesn't need anything like #include's, does it? Can't see any examples of that. Wonder why it ain't defined.....
|
|
jason writes on Sunday June 11 2000 @ 02:08PM EDT: [ reply | parent ]
This is very bizzare. What version of PHP are you trying this with?
It was developed under PHP 3.0.12 through PHP 4.0.0. If you are running a version eariler, this could be the source of your problems. strip_tags was added in 3.0.6 I think.
|
|
Paul writes on Sunday June 11 2000 @ 02:16PM EDT: [ reply | parent ]
I made a page that called phpinfo(),
which makes a nice dump of the configuration.
I am learning more PHP than I ever wanted to
know -- though I am beginning to think it
might be a good replacement for perl.
Anyway, my isp, HE.NET is running PHP 3.0.7
built on May 4, 1999. That is a bit dated, ain't it?
I asked for my account to be moved to a machine
with a more recent version of php and explained
the problem.
I'm also sitting here at home past midnight, building PHP4 and Apache under RH6.2
do more dev here. We'll see what happens....
|
|
|
|
|