473,488 Members | 2,464 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

error on page

1 New Member
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=categorylinks href="<?php echo $PHP_SELF ?>?ax=out&amp;id=<?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="blocking('<?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="noshade" />
<br /><div id="<?php echo $id ?>"><form action="<?php echo $PHP_SELF ?>?ax=addrate&amp;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="return 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
Sep 7 '06 #1
1 2238
Banfa
9,065 Recognized Expert Moderator Expert
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.
Sep 7 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
3038
by: Paul | last post by:
I thought this is more of an IE issue but i've had no joy on that group perhaps somebody here will have a clue. If i click a link to a web page embedded in Excel (97 OR 2000) i get the standard...
9
13881
by: Nick | last post by:
the customError feature is not working. I have it setup as the help says in my web.config file. <customErrors defaultRedirect="DsAppError.aspx" mode="RemoteOnly"/> I tried in a couple...
6
3554
by: John Lau | last post by:
Hi, I am looking at the MS KB Article 306355: HOW TO: Create Custom Error Reporting Pages in ASP.NET by Using Visual C# .NET This article describes how to redirect errors to a custom html...
25
17142
by: moondaddy | last post by:
I have an application where users need to upload images and in my web.config file I have a setting like this: <httpRuntime maxRequestLength="512" /> Which restricts image larger than 500k from...
6
3860
by: ST | last post by:
Hi, I keep getting the parser error, and I have no idea why. I've tried a number of things including: 1)building/rebuilding about 100x 2)making sure all dll's are in the bin folder in the root...
6
2291
by: dee | last post by:
Hi In web.config I have to the following: <configuration> <system.web> <customErrors defaultRedirect="error.htm" mode="On" /> </system.web> </configuration>
2
2125
by: tshad | last post by:
This has been driving me crazy. I have been trying to get the error handling working on my system and can get parts of it working and others won't work at all. I found that you can't access...
7
5038
by: DC | last post by:
Hi, there is a 500;13 page one can configure in the website properties, but ..Net Framework 1.1 also delivers the "server too busy" message sometimes and the IIS custom error page does not seem...
25
4347
by: Blasting Cap | last post by:
I keep getting errors that pop up when I am trying to convert an application from dotnet framework 1.1 to framework 2.0. The old project was saved in sourcesafe from Visual Studio 2003, and I have...
1
1758
by: sean_walsh | last post by:
Hi From classic ASP, I had a custom error handling situation that was quite simple. Errors were all redirected to Error.asp. This page would check 2 settings, EmailErrorMessage and...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7142
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7352
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5445
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1383
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
618
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
272
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.