Call to undefined function: add_html()...on line 2

Discussion in 'PHP' started by Lydie, Jan 10, 2008.

  1. #1
    Hi!

    I try to install a new script but there is a erro on line 2

    "Fatal error: Call to undefined function: add_html() in /homepages/45/d214711367/htdocs/cartes-a-gratter/install.php on line 2"

    this line is :

    <?php //00350
    if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='/ioncube/ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if((@$__id[1])==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}@dl($__ln);}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the site administrator.');exit(199);
    ?>
    PHP:
    I downloaded Ion cube too

    Please can you tell me what is wrong?

    Lydie
     
    Lydie, Jan 10, 2008 IP
  2. iwyrobi

    iwyrobi Peon

    Messages:
    91
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    that mean the add_html function not exist.

    check all file that you upload is complete.
     
    iwyrobi, Jan 10, 2008 IP
  3. Lydie

    Lydie Peon

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi!
    I upload all files.

    Someone have another idea? please!
     
    Lydie, Jan 13, 2008 IP
  4. phpl33t

    phpl33t Banned

    Messages:
    456
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You have to insert the function into the file, but first you have to askt eh developer for the function.
     
    phpl33t, Jan 13, 2008 IP
  5. Lydie

    Lydie Peon

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5

    The problem is that I must paid for more help. and I don't have enought money.

    is it difficult to add this function?

    I think I let this project.


    Thank you for you help
     
    Lydie, Jan 13, 2008 IP
  6. lfhost

    lfhost Peon

    Messages:
    232
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #6
    upload the ioncube loaders to your root folder under /ioncube/ (or get your host to install it server side)

    If a function is missing, they should provide it for you free. Simply contact them What you have posted above is not line 2 that is really line 1.

    Can you post the 1st 5 lines of install.php ?
     
    lfhost, Jan 13, 2008 IP
  7. Lydie

    Lydie Peon

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7

    I have already install ion cube php loader in the folder ioncube.

    This is the install.php file


    <?php //00350
    if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='/ioncube/ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if((@$__id[1])==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}@dl($__ln);}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the site administrator.');exit(199);
    ?>
    4+oV52ODbDz3wMmG3hK1/0ItAtBWx+CjHU47LDSYr1Gr0530gSI4HiPi6o5Tkz8ABYkanMAQQFKm
    iDgJFQwZ/y+2C4lVCfJeBieMiEf/aJdnhmmOa4My+B8LkMeHoXLjlJGFZiiwyXXTVidDtbG8I765
    EVv97iy6HB3w1ZBgKek2ZegDrRlOBVynBsliBYLYffePLOe11iYWVmV+Q4+49efIHVjxCKmdMugN
    +eKXenut1TrUEFGE+e3XUaj4qB+vDFTglgK6sfb5BPz1Eb+tLbPJ1hpCFNW/F6ZpNIIUxtPpFrld
    wUv7bPPzfU905ulGttTokjMHswxegXtH132P6mF5lkNAwR4nUl19MUSx+ZAohuUsRWFUC6WI3O87
    o/mKJHNLJbxo2gePmv5Wg6ntwgKxxkWq1e6xNTNRx+gfBpOk1oG7nG78BASfH5q8QERnmnpeEd49
    ncN7qwNYr2sFmizScBegMNyvrs4/QAwn5rG5EYcY4My62NnpdFYsg4/0Im==
    PHP:
    I wonder if the problem is not due to a wrong place of folder.

    In the instruction page the install folder it's in the root whereas mine install folder is in the content folder like this : CONTENT=>install=>install.php + install_functions
     
    Lydie, Jan 13, 2008 IP
  8. lfhost

    lfhost Peon

    Messages:
    232
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Well, mirror up what you have in your download (zip) to the structure you have uploaded in.

    Are you sure the install.php file is encoded and you are reading the correct one ?

    You really need to go back to where you bought it from and if they dont fix it, ask for a refund and dump the software.
     
    lfhost, Jan 13, 2008 IP
  9. Enom-Soft

    Enom-Soft Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Check You Script and Find That Function BEcoz The Error Is Completly Of UNDEFINE FUNCTION Its mean Function if not Defined
     
    Enom-Soft, Jan 13, 2008 IP
  10. Lydie

    Lydie Peon

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10

    Thank you alll but I think it's too difficult. I'm freebie so I let down this project.

    Thanks again

    Lydie
     
    Lydie, Jan 17, 2008 IP