Attention aux surcherges Tag entre j3 et j4

Attention aux surcherges Tag entre j3 et j4 was created by tataye

Posted 1 year 1 month ago #67757
Bonjour,
Sur un site, le mien, que je viens de migrer, j'ai récupéré le template j3 que j'ai passé en j4
Je ne sais pas pourquoi il y avait une surcharge de la vue tag
Toujours est il que cela m'a provoqué des erreurs en pagaille car la pagination est modifiée
l'erreur est :
Code:
/templates/templatecreator_blank/html/com_tags/tag/default.php Line: 51 Error: Call to undefined method Joomla\CMS\Pagination\Pagination::get()
en espérant que cela aide
j'investigue
Last Edit:1 year 1 month ago by tataye
Last edit: 1 year 1 month ago by tataye.

Please Log in or Create an account to join the conversation.

Replied by tataye on topic Attention aux surcherges Tag entre j3 et j4

Posted 1 year 1 month ago #67758
ok donc le code à remplacer ligne 51 :
Code:
<?php if (($this->params->def('show_pagination', 1) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->get('pages.total') > 1)) : ?>
par
Code:
<?php if (($this->params->def('show_pagination', 1) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->pagination->pagesTotal > 1)) : ?>
a minima
vous pouvez aussi copier le code complet de manière à récupérer les classes bootstrap
Last Edit:1 year 1 month ago by tataye
Last edit: 1 year 1 month ago by tataye.

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Attention aux surcherges Tag entre j3 et j4

Posted 1 year 1 month ago #67759
Salut

Je ne sais pas pourquoi il y avait une surcharge de la vue tag

c'est une surcharge que tu as créé toi-même car Template Creator CK ne créé pas cela

donc effectivement pour toutes les surcharges faites manuellement, il faut les gérer lors de la migration
CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by tataye on topic Attention aux surcherges Tag entre j3 et j4

Posted 1 year 1 month ago #67763
tout à fait, et je me vois bien le faire juste pour test
mon message n'est pas un reproche mais n'ayant pas vu de réponse à mon erreur je me dis qu'il faut que cela soit stocké quelque part pour les internautes
by tataye

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Attention aux surcherges Tag entre j3 et j4

Posted 1 year 1 month ago #67764
je ne l'ai pas mal pris :)
je t'explique juste que ça ne vient pas de Template Creator CK

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Time to create page: 0.690 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 823 guests and no members online