En :
Hello everyone,
Thank you in advance to everyone who took the time to help us.
Context:
I started an alternation not long ago, and we took over a site that hasn’t really had any maintenance for a few years. In a development instance, we upgraded the PHP to 8.1 from 7.3. The wordpress is at version 6.0.3. It should also be noted that the wordpress has had a lot of customization on its theme and therefore there are a lot of features added. (custom type post)
Problem :
As seen before, the fact of having passed the version of php in 8.1, that created problems in the development instance. A lot of these have been resolved, but unfortunately one still remains. The footer of the folders page has disappeared completely and the site is displaying a critical error.
Attempts to solve the problem:
Looking in the code of the page, there is no get\_footer(). So our reflex is to put this code and it did display the footer but it appears above the header and also in all pages.
I checked other pages and they do not contain get\_footer() and on the browser, they display the footer well.
In the source code of the page files, the footer does appear above the “page” div and even if you try to change the order of the two with javascript, it’s still not very clean.
*Ps: “files” is the name of the page and not a real file.*
If anyone has a clue or a solution to this problem, I’d love to hear it.
Thanks again for your attention to this subject.
​
Fr :
Bonjour tout le monde,
Je remercie d’avance toutes les personnes qui ont pris le temps de nous aider.
Contexte :
J’ai commencé une alternance il n’y a pas longtemps, et on a repris un site qui n’a pas eu vraiment d’entretien depuis quelques années. Dans une instance de développement, on a mis à jour le PHP à 8.1 alors qu’avant, on était en 7.3. Le wordpress est à la version 6.0.3. Il faut savoir également que le wordpress a eu beaucoup de personnalisation sur son thème et donc il y a beaucoup de fonctions ajoutés. (custom type post)
Problème :
Comme vu précédemment, le fait d’avoir passé la version de php en 8.1, cela a créé des problèmes dans l’instance de développement. On en a résolu une bonne partie mais malheureusement un persiste. Le footer de la page dossiers a disparu complètement et le site affiche une erreur critique.
Tentatives de résolu du problème :
En cherchant dans le code de la page, il n’y a pas de get\_footer(). Notre réflexe est donc de mettre ce code et cela a bien affiché le footer mais il apparait au dessus du header et également dans toutes les pages.
J’ai vérifié d’autres pages et ils ne contiennent pas de get\_footer() et sur le navigateur, ils affichent bien le footer.
Dans le code source de la page dossiers, le footer apparaît bel et bien au dessus de la div “page” et même en essayant de changer l’ordre des deux avec du javascript, cela reste pas très propre.
Si quelqu’un aurait une piste ou la solution à ce problème, je serais ravi de l’écouter.
Merci encore pour l’attentiion apporté à ce sujet.
[ad_2]
>the site is displaying a critical error.
You are going to have to find out what the error is. You can typically do that by enabling debugging and looking in your server’s log files if you did not receive an email containing the error.
After reviewing [debug error logs]), I’d review the theme’s functions.php file for any hooks referencing `wp_footer` as some customizations may use this hook to modify the `get_footer()` function.