Jump to content

Recommended Posts

Posted (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 :blink: : [embarassed lol]

Edited by greertr
Posted

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

  • 2 months later...
Posted

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.

  • 2 weeks later...
Posted

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

  • 4 weeks later...
Posted

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

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...