Hello, I´m working on a website and I´m using the pagination object for my projects section. The problem is, the pagination works fine on my local host, but when I upload my site to my godaddy server it crashes when I try to access any page other than the first one.
this is the php variables and template:
<?php
$projects = $page->children()->paginate(9);
$paginationProjects = $projects->pagination();
?>
<div class="pagination">
<?php if ($paginationProjects->hasPages()): ?>
<div class="pagination__container">
<?php foreach ($paginationProjects->range(2) as $r): ?>
<a <?= $paginationProjects->page() === $r ? ' aria-current="page"' : '' ?> href="<?= $paginationProjects->pageURL($r) ?>">
<?= $r ?>
</a>
<?php endforeach ?>
<a class="next" href="<?= $paginationProjects->nextPageURL() ?>">Siguiente ></a>
</div>
<?php endif ?>
</div>