greertr Posted March 14, 2011 Report Posted March 14, 2011 (edited) The downloads page, when you click on a download goes into an infinite loop situation and the page just sits there clicking at you as it continuously reloads. I know this has to do with a loop function in the code, but Iive not been able to resolve it. Anyone else expreience this or have an idea? thanks in adv ------------------------------------------- SOLVED: I discovered I had an error in my download link : [embarassed lol] Edited March 14, 2011 by greertr Quote
5SA CEO Posted March 16, 2011 Report Posted March 16, 2011 Hi, I had the same issue, I uploaded all my fleet to a file at my host, then worked all the links out then added one to the download section. I thought I would test it, clicked on the link and same as you, the screen just kept cycling round, in the end I had to click elsewhere on the site to stop it. If anyone can give us any ideas, gratefully rec'd. Cheers Deano SOLVED the issue Quote
TAV1702 Posted June 4, 2011 Report Posted June 4, 2011 Yeah how did you solve it? I think since we are a self supporting community, when ever we solve an issue we need to post it so that others may benefit as well. Also, another important thing is what skin were you using? Was it default? Addon? or custom by you? And what version of phpVMS. Quote
5SA CEO Posted June 13, 2011 Report Posted June 13, 2011 HI guys, sorry for the slow reply, if I remember right I just checked the link, there was a space that was not there which it should have been, then it worked. check and re-check the download link with where the file is and what you put on your site example correct link /phpvms/Fleet/5 STAR Stearman.rar incorrect /phpvms/Fleet/5 STARStearman.rar it was that small Quote
fsx Posted July 10, 2011 Report Posted July 10, 2011 if I click on a download goes into an infinite loop situation and the page just sits there clicking at you as it continuously reloads i have checked the link and it is correct my code is <h1>Downloads</h1> <?php if(!$allcategories) { echo 'Der er ingen downloads!'; return; } foreach($allcategories as $category) { ?> <p><h2><strong><?php echo $category->name?></strong></h2></p> <ul> <?php # This loops through every download available in the category $alldownloads = DownloadData::GetDownloads($category->id); if(!$alldownloads) { echo 'Der er ingen downloads'; $alldownloads = array(); } foreach($alldownloads as $download) { ?> <li> <a href="<?php echo url('/downloads/dl/'.$download->id);?>"> <?php echo $download->name?></a><br /> <?php echo $download->description?><br /> <a href="<?php echo url('/downloads/dl/'.$download->id);?>"> <img src="<?php echo $download->image?>"></a><br /> <em>Downloaded <?php echo $download->hits?> times</em></li> <br/> <?php } ?><br /> </ul> <?php } ?> how can I fix it? thank's Quote
5SA CEO Posted July 14, 2011 Report Posted July 14, 2011 Hi, it is the link that causes the loop, check it on your host then check on your site it will be a small thing, I got it wrong due to a capital letter out of place. hope that helps. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.