SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2000
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anybody have any ideas on where I would start looking to find out what's wrong here:

    "Fatal error: Call to undefined function: is_writeable()..."

    Since "is_writeable()" is a PHP function, how could it be undefined?

    The script (OD FAQ) works fine, except this part that writes a new FAQ. I can add categories, etc. (It stores them in a text file.) Plus, I've got tons of other PHP scripts, both 3 and 4, running everywhere.

    The only thing the author could figure out might be that there are too many users accessing the thing at once. But, in this case, it's just me.
    "Whatever can be said can be said clearly." -- Ludwig Wittgenstein

  2. #2
    SitePoint Member
    Join Date
    Aug 2000
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you show the code you used ?

    it always helps, so people have a better idea of what you are talking about...
    I remember falling...
    i remember marching..
    like a one man army..


  3. #3
    SitePoint Enthusiast
    Join Date
    Jul 2000
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Problem is, that page of the script is over 2200 lines, but here is the actual piece where it's hanging:

    if(trim($answer) && trim($question)) {

    if (is_writeable($datadir.$section_name) AND is_writeable($cat_file)) {

    ... etc.

    Got it over at http://www.oodie.com. It's been around for a while, through several versions, and, as mentioned, the author can't figure out why it would break there, so it must be working for someone. Plus, it has gotten good ratings at hotscripts, etc.

    Anyway, I did a sort of fix. Since I already know those files are indeed "writeable," this morning I got rid of that "if" clause. Works fine now.

    This really is a nice looking FAQ generator, easy to install except for my problem, with a cool admin interface.

    Thanks for thinking about it anyway!
    "Whatever can be said can be said clearly." -- Ludwig Wittgenstein


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •