PHP Notice: Trying to get property 'post_name' of non-object in /…/wp-organisme-de-formation.php on line 111
En cas d’accès à une page inexistante (404), une notice PHP survient. Il faudrait de modifier la ligne 111 du fichier wp-organisme-de-formation.php
.
Avant :
if ($post->post_name == $wpof->url_acces…
Après :
if ($post && $post->post_name == $wpof->url_acces…
Merci =)