Php Error or some else

Discussion in 'PHP' started by gree124, Nov 19, 2007.

  1. #1
    gree124, Nov 19, 2007 IP
  2. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Be less vague. Post code and context.
     
    matthewrobertbell, Nov 19, 2007 IP
  3. gree124

    gree124 Well-Known Member

    Messages:
    721
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #3
    here is code in test.php

    <?php
    error_reporting(E_ALL & ~E_NOTICE);
    define('NO_REGISTER_GLOBALS', 1);
    define('GET_EDIT_TEMPLATES', true);
    define('THIS_SCRIPT', 'test');
    $phrasegroups = array();
    $specialtemplates = array();
    $globaltemplates = array();
    $actiontemplates = array();
    require_once('./global.php');
    $navbits = array();
    $navbits[''] = 'page';
    $navbits = construct_navbits($navbits);
    eval('$navbar = "' . fetch_template('navbar') . '";');
    eval('print_output("' . fetch_template('test') . '");');
    ?>
     
    gree124, Nov 19, 2007 IP
  4. rustem

    rustem Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The code given does not contain errors, so you need to give the code in global.php, otherwise no one will be able to help you.
     
    rustem, Nov 19, 2007 IP
  5. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #5
    Do you have a template called "test"?
     
    nico_swd, Nov 19, 2007 IP
  6. gree124

    gree124 Well-Known Member

    Messages:
    721
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #6
    yes it's CAlled test
     
    gree124, Nov 19, 2007 IP
  7. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #7
    Maybe there's an error in the template. Can you post it?


    And also, try setting the error reporting to E_ALL and see if you get any more errors.

    Change the first line in your code to:
    
    error_reporting(E_ALL);
    
    PHP:
     
    nico_swd, Nov 19, 2007 IP
  8. gree124

    gree124 Well-Known Member

    Messages:
    721
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #8
    Here is Template Coding

    $stylevar[htmldoctype]
    <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
    <head>
    <title>$vboptions[bbtitle]</title>
    $headinclude
    </head>
    <body>
    $header

    $navbar

    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <tr>
    <td align="center"class="tcat">General Game Information</td>
    </tr>
    <tr>
    <td class="alt1">Platforms</td>
    </tr>
    <tr>
    <td class="alt1">
    Arcade, Super Nintendo, Sega Genesis, Sega CD, Game Gear, Master System, Game Boy, PC.
    Also available on the Mortal Kombat: Deception Collector's Edition, Mortal Kombat TV Games, Midway Arcade Treasures: Extended Play for PlayStation Portable, and Midway Arcade Treasures: Deluxe Edition for PC.</td>
    </tr>
    <tr>
    <td class="alt1">Release Dates:</td>
    </tr>
    <tr>
    <td class="alt1">
    Arcade: October 8th, 1992.<br>
    Super Nintendo: (Mortal Monday) September 13th, 1993.<br>
    PC: May 25th, 1994.<br>
    Sega Genesis: (Mortal Monday) September 13th, 1993.<br>
    Sega CD: May 26th, 1994.<br>
    Sega Master System: 1993.<br>
    Game Gear: (Mortal Monday) September 13th, 1993.<br>
    Game Boy: (Mortal Monday) September 13th, 1993.<br>
    </td>
    </tr>

    </table>
    $footer

    </body>
    </html>

    by the way i also added you plz accept me
     
    gree124, Nov 19, 2007 IP
  9. goliathus

    goliathus Peon

    Messages:
    93
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Allow error reporting and place the error here.
     
    goliathus, Nov 19, 2007 IP
  10. gree124

    gree124 Well-Known Member

    Messages:
    721
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #10
    i already post in above post
     
    gree124, Nov 19, 2007 IP
  11. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #11
    Template looks okay to me. Did you change the error reporting? What errors you get?

    And sorry, but I don't give messenger support.
     
    nico_swd, Nov 19, 2007 IP
  12. gree124

    gree124 Well-Known Member

    Messages:
    721
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #12
    what i change in this line error_reporting(E_ALL & ~E_NOTICE);
     
    gree124, Nov 19, 2007 IP
  13. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #13
    Okay... and any more errors you got after the change?
     
    nico_swd, Nov 19, 2007 IP
  14. gree124

    gree124 Well-Known Member

    Messages:
    721
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #14
    i did not change anything can u tell me what i change
     
    gree124, Nov 19, 2007 IP
  15. Jackel.ca

    Jackel.ca Well-Known Member

    Messages:
    108
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #15
    Delete This Post
     
    Jackel.ca, Nov 19, 2007 IP
  16. gree124

    gree124 Well-Known Member

    Messages:
    721
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #16
    i need help please
     
    gree124, Nov 20, 2007 IP
  17. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #17
    Perhaps you should try asking in the vbulletin.org forums. They might be able to give you better help.
     
    nico_swd, Nov 20, 2007 IP
  18. gree124

    gree124 Well-Known Member

    Messages:
    721
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #18
    now it's works
     
    gree124, Nov 21, 2007 IP