phpWebLog

find
story index | search | archive | submit story | downloads | stats | contact
Topics
  • General (915)
  • Announcements (20)
  • Development (521)
  • Mods & Hacks (33)


  • phpWebLog
  • Latest Release - 0.5.3 (BETA)
  • Latest Stable - 0.5.2
  • ChangeLog
  • TODO / Roadmap
  • BUGS

    CVS WEB

  • New XL fork 0.5.2
  • Unstable branch 0.5.3

  • For development discussions and for general support, join the phpWebLog mailing list

    phpWebLog needs active developers to help fix bugs. If you are interested, send me your SourceForge login information for CVS access.


    Last 5 Comments
  • Removing Topics Block (eek)
  • Setup Problems (Aaron)
  • phpweblog 0.5.2 (and maybe 0.5.3) security problems (JustTesting)
  • Meaning of Blog (JKilborn)
  • Meaning of Blog (JKilborn)


  • 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

    < basic layout tips | Error: Destination Unreachable? >

    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....
    Post a Comment
    Name:
    Email:
    URL:
      Remember my information (uses cookies)
      I would rather be anonymous
    Comment:
    * Your email will not be made public.
    Save As:

    SourceForge
    SourceForge is providing us a mailing list , documentation and a CVS tree.

    SourceForge Logo


    PHP.net
  • Call for Speakers : PHP Qu&eacute;bec 2004
  • New function list auto completion
  • PHP 4.3.4 released!
  • PHP 5.0.0 Beta 2 released
  • Forum PHP in Paris, November 26 & 27th
  • Monthly PHP Magazine in French launched!
  • ApacheCon 2003, the Global Hub for All Things Apache
  • php|cruise: The World's First Ever PHP-only Cruise
  • PHP Usage Survey Results
  • PHP Manual CHM Edition - 12th build

  • PHPBuilder
  • Zend Studio 3.0
  • GIS Mapping with PHP
  • On User-Defined Timezones in PHP
  • Dreamweaver MX 2004
  • Using PEAR's HTML_Table Class
  • An introduction to the ADOdb class library, Part 2
  • An introduction to the ADOdb class library for PHP
  • Manually Expiring Web Pages
  • Regression Testing With JMeter
  • Advanced Image Editing Under the GD Library

  • phpWebLog: A PHP News and Content Management System
    Copyright (C) 2000-2002, Jason Hines / Eye Integrated Communications