Big problem with call function

Discussion in 'PHP' started by sctutor, Dec 9, 2006.

  1. #1
    Hi,

    I'm trying to install a phpmyspace v.8.4

    when I try to load the site, it get this

    Sorry, but this file cannot be requested directly
    Fatal error: Call to undefined function: site_cache() in /hsphere/local/home/anthuh/frens.funrage.com/header.php on line 6

    line 6 and 7 contains the following 2 lines.
    site_cache('read');
    xoops_header(false);


    please help.
     
    sctutor, Dec 9, 2006 IP
  2. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #2
    on line 6 it is calling a function that doesn't exist. Are you sure you have all the php files and they are in the right places?
     
    matthewrobertbell, Dec 9, 2006 IP
  3. sctutor

    sctutor Member

    Messages:
    59
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #3
    Hi,

    ya, i've installed all the files in the same structure as they come.

    hmm..
     
    sctutor, Dec 9, 2006 IP
  4. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #4
    turn :

    site_cache('read');

    into :

    @site_cache('read');

    on the main file (index.php) ight at the end of execution,

    do :

    if(!function_exists("site_cache"))
    {
    die("nope, still not present");
    }

    then come back and tell use wat appened.....
     
    krakjoe, Dec 9, 2006 IP
  5. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #5
    This may be a long shot, but it almost looks as though it's a XOOPS module / plugin whatever. Do you need to have that installed first do you know?
     
    TwistMyArm, Dec 9, 2006 IP
  6. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #6
    lol, yes it is and yes you do.....
     
    krakjoe, Dec 9, 2006 IP
  7. sctutor

    sctutor Member

    Messages:
    59
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #7
    Thanks for your help

    this is what it says:


    Sorry, but this file cannot be requested directly
    nope, still not present

    thanks lots...
     
    sctutor, Dec 9, 2006 IP
  8. sctutor

    sctutor Member

    Messages:
    59
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #8
    hmm...i have installed all the standard modules it seems...??...so u're saying site_cache is a module?
     
    sctutor, Dec 9, 2006 IP
  9. sctutor

    sctutor Member

    Messages:
    59
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #9
    hmm?? any suggestions?
     
    sctutor, Dec 9, 2006 IP
  10. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I know nothing about XOOPS. I assume you bought it from someone... what did they suggest?
     
    TwistMyArm, Dec 10, 2006 IP
  11. sctutor

    sctutor Member

    Messages:
    59
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #11
    Hi,

    I decided to get a programmer to fix the error for me. They say it's some script problem. He fixed it anyway.

    :)
     
    sctutor, Dec 10, 2006 IP