error on page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • incognito
    New Member
    • Sep 2006
    • 1

    error on page

    Hello
    I recently started up my own website and aquired an affiliates directory script. Where webmasters can add thier site to my directory and visitors can rate the sites listed. All has been going really well until I wanted to rate a site in the directory, but I keep getting an "error on page error" in the bottom left hand corner of my screen. like this:


    I have looked everywhere in my directory.php file but I can't seem to find what is causing the error.

    Here is the section of the directory.php file:

    If you would like to see the complete directory.php file you can email me for it here: my email The code is too long to add here in this post.

    </script>
    <p class="bodymd"> <?php echo $image; ?><a class=categoryl inks href="<?php echo $PHP_SELF ?>?ax=out&amp;i d=<?php echo $id ?>" target=_blank>< ?php echo $name ?></a>
    <br /><span class="bodysm"> Added: <?php echo $date_added ?> | Total Clicks: <?php echo $clicks ?> | Rating: <font color=FF0000><B ><?php echo $rate_stat ?></B></font> | <a href="#" onclick="blocki ng('<?php echo $id ?>');return false;">Rate This Website</a> | <a href="<?php echo $PHP_SELF ?>?ax=deadlink& amp;id=<?php echo $id ?>">Notify of Dead Link</a> <BR></span>
    <br /><?php echo $dsc ?><hr size="1" noshade="noshad e" />
    <br /><div id="<?php echo $id ?>"><form action="<?php echo $PHP_SELF ?>?ax=addrate&a mp;id=<?php echo $id ?>&amp;cat_id=< ?php echo $formcat_id; ?>&amp;l=<?php echo $list_type; ?>" method="post" id="form<?php echo $id; ?>" onsubmit="retur n validate_rate<? php echo $id; ?>();"><span class="bodysm"> Rate This Website</span> <select name="rating" class="bodysm"> <option>- choose --</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option></select> <input type="submit" name="submit" value="Rate <?php echo $name ?>" class="bodysm" /></div></form>
    </p>
    <script type="text/javascript">

    The problem arises when I click the link "Rate This Website". When I click the link nothing happens and I get the "error on page" at the bottom. All the other links work fine.

    Can anyone please help me?

    Regards
    Richard
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    If you double click that icon it will display a box that will tell you the line in the file on which the error occured (you may have to press the 'Details' button).

    However this is not the file and line number that is on the server because the server ran the PHP script before sending the file to the client and it is this file that these details refer to. If you look at your page source through IE you will find that it has no PHP in it (because it has already run at the server) and it is this file you you start looking in to find the error.

    Once you have worked out what the error is then you can go back to your original file to work out how the code that produced the error was produced.

    Generally it is easier to trake thing like this in FireFox than IE because it has better diagnostic tools.

    Comment

    Working...