PDA

View Full Version : Request exceeded the limit of 10 internal redirects



Tony_Rayman
09-28-2009, 08:19 AM
Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.,

I am getting this error and really do not understand what it is telling me.
I am using PHP includes to change the content on a page. No trouble with it until now. I figured I had done something invalid on the calling page or the page being opened but when I change both the pages to all HTML I am still getting this error. So I think it is not the way I am opening the pages but rather something else.

A simple english explanation would help me a lot. I searched on Google but did not really grasp what I found. Sorry if this is a newbie question.
Thanks

I am adding the code that is calling and the code being called. They are both XXX.inc.php files. The rest of the site is also using inc files with no trouble.
This one is calling the the next one. This one seems to work fine it opens and pops up the thumbnails. When you click on a thumbnail is when you get the error page.

<?php

echo "<center><h2>Please Choose Your Jewelry Type</h2><br>\n";
echo "<table width=\"50%\" cellpadding=\"1\" border=\"0\">\n";
echo "<tr><td><a href=\"starting.php?content=products_necklaces\"><img src=\"http://www.magichoop.net/images/necklace/thumbnails/Carnelian-TurquJasper-Turqoise-SterSil-thumbnail.jpg\" /></a></td>\n";
echo "<td><a href=\"starting.php?content=products_others\"><img src=\"http://www.magichoop.net/images//otherjewelry/thumbnails/RoseQtz-Jade-Sodalite-RedJasper-Bracelet-thumbnail.jpg\" /></a></td></tr>\n";
echo "<tr><td>Necklace</td><td>All Others</td><tr>";

echo "</table>\n";
echo "</center>";

?>


And the inc file being called

<?php

$query = "SELECT necklaceid, thumbnail FROM necklace";
$result = mysql_query($query) or die(mysql_error());


echo "<h3>Jewelry</h3>\n";
echo "<table width=\"50%\" cellpadding=\"1\" border=\"1\">\n";
$i=1;
while ($i<=6)
{
$r=1;
echo "<tr>";
While ($r<=5)
{
$row=mysql_fetch_array($result, MYSQL_ASSOC);
$necklaceid = $row['necklaceid'];
$thumbnail = $row['thumbnail'];

echo "<td><center><a href=\"starting.php?content=necklace&id=$necklaceid\">";
echo"<img src=\"http://localhost//MagicHoop_net/images/Jewelry_images/Necklace/Thumbnails/$thumbnail\"/>";
echo "</a></center></td>\n";
$r++;
}
echo "</tr>";
$i++;
}
echo "</table>\n";
echo "<br /><br />";
?>

The products_others.inc.php is basically the same as the last code is.

Oh and it works great on my local host ...

Tony_Rayman
09-29-2009, 09:09 PM
OK I see my mistake.
My main page is index.php on Bluehost but on my local host it is starting.php.
I do not know why I did that but that is the source of all my problems here.
Thanks for the interest even though I found my solution before I got a post. Part of figuring it out was probably actually posting it.
:)

felgall
09-30-2009, 12:06 AM
It often happens that in looking at your problem the slightly different way that is needed in order to explain it to someone else is just enough of a shift in viewpoint to give you the solution.