Erreur Caddie_affichage.php

34 posts in this topic

Posted · Report post

Même avec mon dernier code ?

Willy

Oui Willy, c'est avec ton code ...

Les erreurs persistent...

ex:

<b>Notice</b>:  Use of undefined constant resC - assumed 'resC' in <b>d:\www\digital-mouse.com\htdocs\vel\achat\caddie_affichage.php</b> on line <b>17</b>


   <b>Warning</b>:  mysql_num_rows(): supplied argument is not a valid MySQL result resource in <b>d:\www\digital-mouse.com\htdocs\vel\achat\caddie_affichage.php</b> on line <b>17</b>


   <b>Notice</b>:  Use of undefined constant resT - assumed 'resT' in <b>d:\www\digital-mouse.com\htdocs\vel\achat\caddie_affichage.php</b> on line <b>21</b>


   <b>Warning</b>:  mysql_num_rows(): supplied argument is not a valid MySQL result resource in <b>d:\www\digital-mouse.com\htdocs\vel\achat\caddie_affichage.php</b> on line <b>21</b>


   <b>Warning</b>: Cannot modify header information - headers already sent  by (output started at  d:\www\digital-mouse.com\htdocs\vel\achat\caddie_affichage.php:17) in <b>d:\www\digital-mouse.com\htdocs\vel\achat\caddie_affichage.php</b> on line <b>57</b>

:)

Share this post


: post
Share on other sites

Posted · Report post

Bonjour,

j'ai le même problème que cedric ...

Slt, Tu es chez le même hebergeur 'jeremy' ???

Je rapelle : ce qui est etonnant c'est sur un site de FREE en test il n'y a pas de problème...

Share this post


: post
Share on other sites

Posted · Report post

Vois avec ton hebergeur sinon...

Mais c'est bizard c'est un pb d'objet...

Willy

Share this post


: post
Share on other sites

Posted · Report post

pas de problème, je teste et te donne la réponse au plus vite.

Cédric, envoyez moi par mail vos paramètres FTP & Mysql ainsi afin que je fasse des tests sur votre problème sur mon patrice patrice.ruault@peel.fr

Pour les MP il faut activer l'option dans votre compte personnel

Share this post


: post
Share on other sites

Posted · Report post

Désolé, je me suis trompé dans mon code, j'ais oublié les $ devant resC et resT... :) :P :D

Testez comme ça

<?

include("../configuration.inc.php");

if (isset($_REQUEST['func'])) {

	switch ($_REQUEST['func']) {

		case "enleve" :

			/* Décrementation de la table peel_stocks_temporaires */

			$error = array();

			$qte = $_SESSION['caddie']->quantite[$_GET['ligne']];

			$resC = mysql_query("SELECT id FROM peel_couleurs WHERE nom_".$_SESSION['langue']." = '".$_SESSION['caddie']->couleur[$_GET['ligne']]."'");

			$C = mysql_fetch_object($resC);

			$resT = mysql_query("SELECT id FROM peel_tailles WHERE nom_".$_SESSION['langue']." = '".$_SESSION['caddie']->taille[$_GET['ligne']]."'");

			$T = mysql_fetch_object($resT);


			$sql = "UPDATE peel_stocks_temp SET stock = stock + $qte, qte = qte - $qte WHERE produit_id = '".intval($_SESSION['caddie']->articles[$_GET['ligne']]) ."'";



			if (mysql_num_rows($resC) > 0) { 

						$sql = $sql . " AND couleur_id = '".vn(intval($C->id))."'";

			}


			if (mysql_num_rows($resT) > 0) { 

						$sql = $sql . " AND taille_id = '".vn(intval($T->id))."'";


			}



			@mysql_query($sql) or DIE('Une erreur de connexion &agrave; la base s est produite ' . __LINE__ . '.<p>' . MYSQL_ERROR());


			$_SESSION['caddie']->enleve(intval($_GET['ligne']));


			$_SESSION['caddie']->nettoie();


			$_SESSION['caddie']->recalc_total();


			if (!empty($_SESSION['caddie']->code_cheque)) { 


			$error_check = calcul_code_cheque_cadeau($_SESSION['caddie']->code_cheque); 


			array_push($error, $error_check);


			}


			if (!empty($_SESSION['caddie']->code_bon)) { 


			$error_bon = calcul_code_bon_reduction($_SESSION['caddie']->code_bon); 


			array_push($error, $error_bon);


			}


			if (!empty($_SESSION['caddie']->type)) { 


			calcul_frais_expedition(vb($_SESSION['caddie']->type));


			}


			header("Location:".$_SERVER["PHP_SELF"]);



		break;

Pour l'erreur de header, il nous faudrait la ligne 57 de la page \achat\caddie_affichage.php

Willy

Share this post


: post
Share on other sites

Posted · Report post

Bonjour,

En fait le problème venait du fait que j'étais en local (avec wamp 5.1.7.1) , j'ai testé online sur OVH et ca semble fonctionner correctement.

Bonne journée :)

Share this post


: post
Share on other sites

Posted · Report post

Il fallait commencer par là :P

Vous avez dit: "En plus chose bizarre sur le serveur de test qui est sur FREE cela fonctionne parfaitement. Mais quand je teste en réel sur leur serveur la j'ai cette erreur."

Ca se resoud, mais la prochaine fois que vous etes en local, signalez le SVP :)

Willy

Share this post


: post
Share on other sites

Posted · Report post

Il fallait commencer par là :D

Vous avez dit: "En plus chose bizarre sur le serveur de test qui est sur FREE cela fonctionne parfaitement. Mais quand je teste en réel sur leur serveur la j'ai cette erreur."

Ca se resoud, mais la prochaine fois que vous etes en local, signalez le SVP :)

Willy

Dsl Willy je pensais l'avoir deja l'avoir signalé... :P

Excuse moi ...

Share this post


: post
Share on other sites

Posted · Report post

Désolé, je me suis trompé dans mon code, j'ais oublié les $ devant resC et resT... :) :P :D

Testez comme ça

Pour l'erreur de header, il nous faudrait la ligne 57 de la page \achat\caddie_affichage.php

Willy

La ligne 57 correspond :

header("Location:".$_SERVER["PHP_SELF"]);

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