Erreur Spontannée /membre.php

9 posts in this topic

Posted · Report post

bonsoir, et meilleur voeux avant toute chose :)

 

Je viens de remarque que ma page /membre.php, là ou l'on doit s'identifier comporte 2 erreur de script qui s'affichent.

 


Notice: Use of undefined constant NEW_CUSTOMER - assumed 'NEW_CUSTOMER' in /home/bdi-herault/public_html/lib/fonctions/display_user_forms.php on line 615 Notice: Use of undefined constant MSG_NEW_CUSTOMER - assumed 'MSG_NEW_CUSTOMER' in /home/bdi-herault/public_html/lib/fonctions/display_user_forms.php on line 616

 

Pourtant le fichier cité display_user_form est clean et n'a jamais été modifié.  Comment une erreur peux t'elle apparaitre dedans et quelle en est la solution?

 

Merci d'avance

Share this post


: post
Share on other sites

Posted · Report post

Bonjour,

 

Les constantes NEW_CUSTOMER et MSG_NEW_CUSTOMER sont normalement défini dans les fichiers de langues.

dans lib/lang/en.php, il faut ajouter

define("NEW_CUSTOMER", "New customer?");

define("MSG_NEW_CUSTOMER", "You need to open an account to purchase from the $site webstore.\n<a class=\"normal\" href=\"$wwwroot/utilisateurs/enregistrement.php\">Click here to open an account.</a>");

 

dans lib/lang/fr.php, il faut ajouter

define("NEW_CUSTOMER", "Nouveau client ?");
define("MSG_NEW_CUSTOMER", "Vous devez ouvrir un compte client pour acheter sur $site.\n<a class=\"notice\" href=\"$wwwroot/utilisateurs/enregistrement.php\">Pour ouvrir un compte, cliquez ici</a>");

Share this post


: post
Share on other sites

Posted · Report post

Merci, c'est parfait.   le "NEW" avait disparu des constante.... mystère

Share this post


: post
Share on other sites

Posted · Report post

Bon, second bug découvert.. oui oui je suis nocturne ^^

 

sur toutes mes rubriques comme ici http://bdi-herault.com/lire/tarif-et-prestations-1.html ou ici http://bdi-herault.com/lire/support-a-distance-4.html

 

Le bandeau du titre à disparu. Un bandeau vert est sensé traversé la largeur de l'article comme ici sur la faq http://bdi-herault.com/modules/faq/faq.php

 

A quoi ai-je touché?? (sifflement naïf.....)

Share this post


: post
Share on other sites

Posted · Report post

Bonjour,

 

Le bandeau vert apparaissent pour les titres <h2> (classe css .middle_column h2). Assurez-vous d'avoir utilisé cette balise pour les titres de vos articles de contenu

Share this post


: post
Share on other sites

Posted · Report post

humm.... ok  ^^ :)  je cherche

Share this post


: post
Share on other sites

Posted · Report post

Sujet clos, je me suis auto- résolu :)  

Share this post


: post
Share on other sites

Posted · Report post

Bonjour,


C'était quoi ton souci du coup ?

Share this post


: post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

Twitter Advisto ecommerce

Facebook PEEL Shopping