osCommerce France : Accueil Forum Portail osCommerce France Réponses aux questions Foire aux contributions

Bienvenue invité ( Connexion | Inscription )

 
Reply to this topicStart new topic
> suite au contrôle debug j'ai besoins d'information
thiery
posté 26 Sep 2011, 21:18
Message #1


Ceinture orange OSC
Icône de groupe

Groupe : Membres
Messages : 218
Inscrit : 10-November 02
Membre no 574



Bonjour.
Suite à un contrôle du debug, je recherche quelques informations
dans le debug j'ai ceci
Citation
Undefined index: language in /htdocs/catalog/includes/functions/html_output.php on line 37

la ligne 37 correspond à
Citation
if ($HTTP_GET_VARS['language'] && $kill_sid) {

la ligne est identique à la contribution de sid killer, faut il que je change par language=fr ou faut il que je remonte plus haut
si je pouvais avoir juste une petite suggestion pour trouver le problème
merci d'avance

sinon j'ai quelques autres lignes mais je cherche avant de demander
car pour le moment j'ai réussi à résoudre un problème

à bientôt Thierry

Ce message a été modifié par thiery - 26 Sep 2011, 21:22.


--------------------
oscommerce ms2.2 , sid killer,RSS Feed,Dynamic Meta Tag,cool menu,easy_populate,Ultimate SEO 2-2.2d-12
Go to the top of the page
 
paddybl
posté 13 Oct 2011, 10:10
Message #2


Ceinture orange+ OSC
Icône de groupe

Groupe : Membres
Messages : 467
Inscrit : 22-September 06
Lieu : Lons le saunier(39)
Membre no 12229



je pencherai plus pour une global non déclaré.

as tu plus haut

global $kill_sid,....

en début de fonction


--------------------
oscommerce version ms2fr-060817; contributions: AdminMS2fr_V2.3 - Easypopulate 2.76 - MS2-big_images 1.25 - 2.2-MS2 - BoxImageThemaMS2fr_V2.7 - BUY_TWO_MODULE-V21a - xsell_v2.3 - Your Recent History V3.0 - QTPro.v4.25 - Full-products_on_order1.2 - Ultimate_SEO_URLs 2.2.2 - .buy_now_link_to_button_v1.2c - Site Map MS2 - 2.3a-.robots1.1 - Dynamic Meta Tags - best sellers v1 - bestseller with admin - Review Approval System v1.3_1 - online_offline - SEO_Assistant_V_1.4 - Product Tabs 1.7-2 - avsearch - zones-french_Latin1 - new-faster-checkout - Anti Robot Registration Validation 2.4.01 - anti_spambot_contact_us_1.2 - anti_spambot_review_1_2 - colissimo_1.5.2 - ajax_contrib - GoogleFeeder103 - store feeds.v3.1 - categoriesFrontPage2-3d - Extra pages-info box w-admin 4_6 - PDF data-sheet v.1.7 compatible gif - CCGV5.18 - cvv2_version2 -Edit Order with ecotax- OrderCheck_v2.5.2 with Ecotax- orderlist4.0 - payment_atos_5_00-2.2.4 - payment_bluepaid-2 - Featured_Products_v1.5.8 - newsdesk_v_1.48.3 - .FAQDesk.v1.01.1 - French_Chronopost_Shipping - Popup Estimated Shipping v1.7b -optimize tax ver1.2-query debug 1.7-faster configuration cache 1.32- Print Order Receipt v1.4with ecotax- b2bsuite corrigé par moi ;o) ,

Ecotax v1.4.1 Plus Export, Paypal donation et Infinit'Images par moi même et d'autres à venir...
Go to the top of the page
 
thiery
posté 20 Oct 2011, 21:47
Message #3


Ceinture orange OSC
Icône de groupe

Groupe : Membres
Messages : 218
Inscrit : 10-November 02
Membre no 574



bonjour paddybl
merci pour la réponse

oui voici le debut du code avec le global $kill_sid,

Citation
function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) {

global $kill_sid, $HTTP_GET_VARS;

global $request_type, $session_started, $SID;

if (!tep_not_null($page)) {
die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>');
}

if ($connection == 'NONSSL') {
$link = HTTP_SERVER . DIR_WS_HTTP_CATALOG;
} elseif ($connection == 'SSL') {
if (ENABLE_SSL == true) {
$link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG;
} else {
$link = HTTP_SERVER . DIR_WS_HTTP_CATALOG;
}
} else {
die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>');
}



et la partie du code de sid killer

Citation
if ($HTTP_GET_VARS['language'] && $kill_sid) {
$l = ereg('[&\?/]?language[=/][a-z][a-z]', $parameters, $m);
if ($l) {
$parameters = ereg_replace("[&\?/]?language[=/][a-z][a-z]", "", $parameters);
$HTTP_GET_VARS['language'] = substr($m[0],-2);
}
if (tep_not_null($parameters)) {
$parameters .= "&language=" . $HTTP_GET_VARS['language'];
} else {
$parameters = "language=" . $HTTP_GET_VARS['language'];
}
}

encore merci pour l'aide
à bientôt thierry


--------------------
oscommerce ms2.2 , sid killer,RSS Feed,Dynamic Meta Tag,cool menu,easy_populate,Ultimate SEO 2-2.2d-12
Go to the top of the page
 
paddybl
posté 8 Nov 2011, 09:36
Message #4


Ceinture orange+ OSC
Icône de groupe

Groupe : Membres
Messages : 467
Inscrit : 22-September 06
Lieu : Lons le saunier(39)
Membre no 12229



avec du temps entre ma 1ère réponse qui sert peut etre plus a rien du coup,
je sais pas sit tua remarqué mais tu as 2 déclaration de global dans ton code:
Code
global $kill_sid, $HTTP_GET_VARS;

global $request_type, $session_started, $SID;


donc je corrigerai ca et surtout j'enleverai $HTTP_GET_VARS car c'est une super global qui n'a plus de raison d'ètre avec php actuel

je remplacerai donc par ca:

Code
global $kill_sid,$request_type, $session_started, $SID;


--------------------
oscommerce version ms2fr-060817; contributions: AdminMS2fr_V2.3 - Easypopulate 2.76 - MS2-big_images 1.25 - 2.2-MS2 - BoxImageThemaMS2fr_V2.7 - BUY_TWO_MODULE-V21a - xsell_v2.3 - Your Recent History V3.0 - QTPro.v4.25 - Full-products_on_order1.2 - Ultimate_SEO_URLs 2.2.2 - .buy_now_link_to_button_v1.2c - Site Map MS2 - 2.3a-.robots1.1 - Dynamic Meta Tags - best sellers v1 - bestseller with admin - Review Approval System v1.3_1 - online_offline - SEO_Assistant_V_1.4 - Product Tabs 1.7-2 - avsearch - zones-french_Latin1 - new-faster-checkout - Anti Robot Registration Validation 2.4.01 - anti_spambot_contact_us_1.2 - anti_spambot_review_1_2 - colissimo_1.5.2 - ajax_contrib - GoogleFeeder103 - store feeds.v3.1 - categoriesFrontPage2-3d - Extra pages-info box w-admin 4_6 - PDF data-sheet v.1.7 compatible gif - CCGV5.18 - cvv2_version2 -Edit Order with ecotax- OrderCheck_v2.5.2 with Ecotax- orderlist4.0 - payment_atos_5_00-2.2.4 - payment_bluepaid-2 - Featured_Products_v1.5.8 - newsdesk_v_1.48.3 - .FAQDesk.v1.01.1 - French_Chronopost_Shipping - Popup Estimated Shipping v1.7b -optimize tax ver1.2-query debug 1.7-faster configuration cache 1.32- Print Order Receipt v1.4with ecotax- b2bsuite corrigé par moi ;o) ,

Ecotax v1.4.1 Plus Export, Paypal donation et Infinit'Images par moi même et d'autres à venir...
Go to the top of the page
 
thiery
posté 8 Nov 2011, 10:22
Message #5


Ceinture orange OSC
Icône de groupe

Groupe : Membres
Messages : 218
Inscrit : 10-November 02
Membre no 574



bonjour paddybl
merci pour la réponse
la modification est faite mais toujour le même message d'erreur
Citation
Undefined variable: HTTP_GET_VARS in /homepages/**/*******/htdocs/catalog/includes/functions/html_output.php on line 35


la ligne
Citation
if ($HTTP_GET_VARS['language'] && $kill_sid) {


merci
thierry

Ce message a été modifié par thiery - 8 Nov 2011, 10:22.


--------------------
oscommerce ms2.2 , sid killer,RSS Feed,Dynamic Meta Tag,cool menu,easy_populate,Ultimate SEO 2-2.2d-12
Go to the top of the page
 

Reply to this topicStart new topic
1 utilisateur(s) sur ce sujet (1 invité(s) et 0 utilisateur(s) anonyme(s))
0 membre(s) :

 



RSS Version bas débit Nous sommes le : 18th May 2013 - 19:15
Ce site est déclaré auprès de la commision Nationale
de l'Informatique et des Libertés (déclaration n°: 1043896)