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

Bienvenue invité ( Connexion | Inscription )

4 Pages V  < 1 2 3 4 >  
Reply to this topicStart new topic
> Deprecated: mysql_connect():
Rusti
posté 14 Mar 2018, 21:37
Message #51


Ceinture jaune+ OSC
Icône de groupe

Groupe : Membres
Messages : 103
Inscrit : 11-October 10
Lieu : Villemomble
Membre no 28103



Alors pour le mysql_get_server_info dans le fichiers general.php je vois pas du tout de quoi tu parle car ce bout decode n'est pas dans la version original mais mysql_get_server_info prend le paramètre de connexion normalement.
Code
$db = mysqli_connect("localhost", "my_user", "my_password");
echo mysqli_get_server_info($db)

Pour le split il à été remplacer par preg_split.
Et pour ce qui est du var_dump() sa te permet d'avoir des information sur une fonction par exemple ou un bout de code.
Si tu fait un var_dump('bonjour') sa vas te répondre : string(7) "bonjour"
Sa te permet d'avoir des info plus pousser sur ce qu'il ne vas pas

Ce message a été modifié par Rusti - 14 Mar 2018, 22:01.


--------------------
osCommerce v2.3
Go to the top of the page
 
taiko
posté 14 Mar 2018, 22:17
Message #52


Ceinture marron OSC
Icône de groupe

Groupe : Membres
Messages : 1770
Inscrit : 20-April 07
Lieu : chez mickey
Membre no 16736



re


pour le général c'est dans l'admin : 'db_version' => 'MySQL ' . (function_exists('mysql_get_server_info') ? mysqli_get_server_info() : ''),



CODE
// Retreive server information
function tep_get_system_information() {
global $HTTP_SERVER_VARS;

$db_query = tep_db_query("select now() as datetime");
$db = tep_db_fetch_array($db_query);

list($system, $host, $kernel) = preg_split('/[\s,]+/', @exec('uname -a'), 5);

return array('date' => tep_datetime_short(date('Y-m-d H:i:s')),
'system' => $system,
'kernel' => $kernel,
'host' => $host,
'ip' => gethostbyname($host),
'uptime' => @exec('uptime'),
'http_server' => $HTTP_SERVER_VARS['SERVER_SOFTWARE'],
'php' => PHP_VERSION,
'zend' => (function_exists('zend_version') ? zend_version() : ''),
'db_server' => DB_SERVER,
'db_ip' => gethostbyname(DB_SERVER),
'db_version' => 'MySQL ' . (function_exists('mysql_get_server_info') ? mysqli_get_server_info() : ''),
'db_date' => tep_datetime_short($db['datetime']));
}


pour le split c'est dans easypopulate et je l'ai remplacé par explode et y apas d'erreur si je mettais un preg_split j'avais une erreur.

Deprecated: Function split() is deprecated in /home/cuisinedn/www/cuisine-designdeluxe/easypopulate.php on line 1317

LIGNE 317 C'EST $namearr = split('\.',$file);


CODE
<?PHP
//<input type="text" name="localfile" size="50">
$the_array = Array();
if (is_readable(EP_TEMP_DIRECTORY)) {
$handle = opendir(EP_TEMP_DIRECTORY);
while (false!== ($file = readdir($handle))) {
if ($file!= "." && $file!= ".." &&!is_dir($file)) {
$namearr = split('\.',$file);
if ($namearr[count($namearr)-1] == ((EP_EXCEL_SAFE_OUTPUT==true)?'csv':'txt')) $the_array[] = $file;
}
}
closedir($handle);
}

$array_size = count($the_array);
if($array_size == 0){
echo (' <input type="text" name="localfile" size="50">' . "\n");
} else {
echo (' <select name="localfile" size="1">' . "\n");
foreach ($the_array as $list){
echo (' <option value="' . $list . '">' . $list . '</option>' . "\n");
}
echo (' </select>' . "\n");
}
?>




Ce message a été modifié par taiko - 14 Mar 2018, 22:21.


--------------------
oscommerce ms2.2 delaballe, header tag controller v2-6-3, Agree2Terms_v1.6.7, MS2-2.2-SiteMap-SEO-URLs-withproducts (bientot), sponsorship v2.2,pack_newsletters, pack_newsletters, Prof_Invoice&PackingSlip_v0.2(fr+stylesheet) (je crois), checkout_confirmation_chg_valid_xhtml, + d'autres mais je sais plus trop a force.
Go to the top of the page
 
Rusti
posté 14 Mar 2018, 22:32
Message #53


Ceinture jaune+ OSC
Icône de groupe

Groupe : Membres
Messages : 103
Inscrit : 11-October 10
Lieu : Villemomble
Membre no 28103



En fait mysql_get_server_info est une function de php, avant il pouvait être vide mysql_get_server_info($link_identifier = null)
Mais maintenant mysqli_get_server_info($link)
Donc si tu l'utilise tu doit obligatoirement lui passer le paramètre $link. $link est normalement retourné soit par mysqli_connect() ou mysqli_init()


--------------------
osCommerce v2.3
Go to the top of the page
 
Rusti
posté 14 Mar 2018, 22:34
Message #54


Ceinture jaune+ OSC
Icône de groupe

Groupe : Membres
Messages : 103
Inscrit : 11-October 10
Lieu : Villemomble
Membre no 28103



Pour split met sa voir
Code
$namearr = preg_split("/\./",$file);


--------------------
osCommerce v2.3
Go to the top of the page
 
taiko
posté 14 Mar 2018, 22:42
Message #55


Ceinture marron OSC
Icône de groupe

Groupe : Membres
Messages : 1770
Inscrit : 20-April 07
Lieu : chez mickey
Membre no 16736



re

c'est bon pour le preg_split mais toujours le message d'erreur

Warning: mysqli_get_server_info() expects exactly 1 parameter, 0 given in /home/cuisinedn/www/cuisine-designdeluxe/includes/functions/general.php on line 807

bon je dois y aller là je reprendrai demain, merci beaucoup à vous deux pour votre aide c'est top j'ai bien avancé aujourd'hui.

merci

bonne soirée

Ce message a été modifié par taiko - 14 Mar 2018, 22:47.


--------------------
oscommerce ms2.2 delaballe, header tag controller v2-6-3, Agree2Terms_v1.6.7, MS2-2.2-SiteMap-SEO-URLs-withproducts (bientot), sponsorship v2.2,pack_newsletters, pack_newsletters, Prof_Invoice&PackingSlip_v0.2(fr+stylesheet) (je crois), checkout_confirmation_chg_valid_xhtml, + d'autres mais je sais plus trop a force.
Go to the top of the page
 
Rusti
posté 14 Mar 2018, 22:59
Message #56


Ceinture jaune+ OSC
Icône de groupe

Groupe : Membres
Messages : 103
Inscrit : 11-October 10
Lieu : Villemomble
Membre no 28103



Je pense que tu as pas bien compris ce que je voulais dire avec le mysqli_get_server_info
Tu doit obligatoirement lui passer un paramètre

Code
$param = mysqli_connect("localhost", "user", "password");
mysqli_get_server_info($param)


Bonne soirée


--------------------
osCommerce v2.3
Go to the top of the page
 
taiko
posté 14 Mar 2018, 23:01
Message #57


Ceinture marron OSC
Icône de groupe

Groupe : Membres
Messages : 1770
Inscrit : 20-April 07
Lieu : chez mickey
Membre no 16736



RE

PETIT DERNIER POUR LE CUSTOMER DE L'ADMIN :

CODE
Warning: array_merge(): Argument #2 is not an array in /home/cuisinedn/www/cuisine-designdeluxe/customers.php on line 846

Warning: array_merge(): Argument #2 is not an array in /home/cuisinedn/www/cuisine-designdeluxe/customers.php on line 848

Warning: reset() expects parameter 1 to be array, null given in /home/cuisinedn/www/cuisine-designdeluxe/includes/classes/object_info.php on line 17

Warning: Variable passed to each() is not an array or object in /home/cuisinedn/www/cuisine-designdeluxe/includes/classes/object_info.php on line 18




LIGNE 17 CLASSES OBJET / reset($object_array);

CODE
class objectInfo {

// class constructor
function objectInfo($object_array) {
reset($object_array);
while (list($key, $value) = each($object_array)) {
$this->$key = tep_db_prepare_input($value);
}
}
}
?>




LIGNE 846 ET 848 DE CUSTOMERS ADMIN : $customer_info = array_merge($country, $info, $reviews);

$cInfo_array = array_merge($customers, $customer_info);





CODE
<?php
$search = '';
if (isset($HTTP_GET_VARS['search']) && tep_not_null($HTTP_GET_VARS['search'])) {
$keywords = tep_db_input(tep_db_prepare_input($HTTP_GET_VARS['search']));
$search = "where c.customers_lastname like '%" . $keywords . "%' or c.customers_firstname like '%" . $keywords . "%' or c.customers_email_address like '%" . $keywords . "%'";
}
$customers_query_raw = "select c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, a.entry_country_id from " . TABLE_CUSTOMERS . " c left join " . TABLE_ADDRESS_BOOK . " a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id " . $search . " order by c.customers_lastname, c.customers_firstname";
$customers_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_SEARCH_RESULTS, $customers_query_raw, $customers_query_numrows);
$customers_query = tep_db_query($customers_query_raw);
while ($customers = tep_db_fetch_array($customers_query)) {
$info_query = tep_db_query("select customers_info_date_account_created as date_account_created, customers_info_date_account_last_modified as date_account_last_modified, customers_info_date_of_last_logon as date_last_logon, customers_info_number_of_logons as number_of_logons from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . $customers['customers_id'] . "'");
$info = tep_db_fetch_array($info_query);

if ((!isset($HTTP_GET_VARS['cID']) || (isset($HTTP_GET_VARS['cID']) && ($HTTP_GET_VARS['cID'] == $customers['customers_id']))) && !isset($cInfo)) {
$country_query = tep_db_query("select countries_name from " . TABLE_COUNTRIES . " where countries_id = '" . (int)$customers['entry_country_id'] . "'");
$country = tep_db_fetch_array($country_query);

$reviews_query = tep_db_query("select count(*) as number_of_reviews from " . TABLE_REVIEWS . " where customers_id = '" . (int)$customers['customers_id'] . "'");
$reviews = tep_db_fetch_array($reviews_query);

$customer_info = array_merge($country, $info, $reviews);

$cInfo_array = array_merge($customers, $customer_info);
$cInfo = new objectInfo($cInfo_array);
}

if (isset($cInfo) && is_object($cInfo) && ($customers['customers_id'] == $cInfo->customers_id)) {
echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=edit') . '\'">' . "\n";
} else {
echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID')) . 'cID=' . $customers['customers_id']) . '\'">' . "\n";
}





--------------------
oscommerce ms2.2 delaballe, header tag controller v2-6-3, Agree2Terms_v1.6.7, MS2-2.2-SiteMap-SEO-URLs-withproducts (bientot), sponsorship v2.2,pack_newsletters, pack_newsletters, Prof_Invoice&PackingSlip_v0.2(fr+stylesheet) (je crois), checkout_confirmation_chg_valid_xhtml, + d'autres mais je sais plus trop a force.
Go to the top of the page
 
Bonbec
posté 14 Mar 2018, 23:14
Message #58


Ceinture marron OSC
Icône de groupe

Groupe : Modérateurs
Messages : 1543
Inscrit : 30-May 06
Lieu : Vichy (03)
Membre no 10583



Citation (taiko @ 14 Mar 2018, 23:01) *
LIGNE 846 ET 848 DE CUSTOMERS ADMIN :
$customer_info = array_merge($country, $info, $reviews);

$cInfo_array = array_merge($customers, $customer_info);


Devient :

Code
$customer_info = array_merge((array)$country, (array)$info, (array)$reviews);

$cInfo_array = array_merge((array)$customers, (array)$customer_info);



--------------------
Config 1 en live : Osc 2.2 très fortement modifié ... UTF-8 et Php 5.4.
Contribs installées : down_for_maintenance_v 2.3 | Estimated Shipping v1.5 | imprint_1_3_5 | low_stock_report_v2.04 | visible_countries_1.2b | Products Tabs | shoppingCart_cleanup_v1.01.0 | + trop de bidouilles persos pas très OsCommerce (erreurs de jeunesse)
Config 2 en local avec UwAmp : Osc Phoenix
Go to the top of the page
 
taiko
posté 15 Mar 2018, 00:16
Message #59


Ceinture marron OSC
Icône de groupe

Groupe : Membres
Messages : 1770
Inscrit : 20-April 07
Lieu : chez mickey
Membre no 16736



Re


Merci a vous deux je test tous ça demain matin.

Pour le union split page result je viens de boir dans la ligne que j ai mis qu il y a deux fois la variable $page_number ça doit venir de la le redeclare je pense.


var $query, $num_rows, $page_number, $number_of_pages, $page_number, $page_name



Ce message a été modifié par taiko - 15 Mar 2018, 00:23.


--------------------
oscommerce ms2.2 delaballe, header tag controller v2-6-3, Agree2Terms_v1.6.7, MS2-2.2-SiteMap-SEO-URLs-withproducts (bientot), sponsorship v2.2,pack_newsletters, pack_newsletters, Prof_Invoice&PackingSlip_v0.2(fr+stylesheet) (je crois), checkout_confirmation_chg_valid_xhtml, + d'autres mais je sais plus trop a force.
Go to the top of the page
 
taiko
posté 15 Mar 2018, 14:24
Message #60


Ceinture marron OSC
Icône de groupe

Groupe : Membres
Messages : 1770
Inscrit : 20-April 07
Lieu : chez mickey
Membre no 16736



salut

bon j'ai modifié les deux lignes array du customers et ça fonctionne au départ ça fonctionnait pas mais normal j'ai envoyé des fichiers d'une autre sauvegarde j'en ai tellemetn des sauvegardes de mon site maintenant lol.

pou rusti , oui j'ai pas bien compris ou est ce que je dois mettre ces lignes ? merci

$param = mysqli_connect("localhost", "user", "password");
mysqli_get_server_info($param)

Ce message a été modifié par taiko - 15 Mar 2018, 15:17.


--------------------
oscommerce ms2.2 delaballe, header tag controller v2-6-3, Agree2Terms_v1.6.7, MS2-2.2-SiteMap-SEO-URLs-withproducts (bientot), sponsorship v2.2,pack_newsletters, pack_newsletters, Prof_Invoice&PackingSlip_v0.2(fr+stylesheet) (je crois), checkout_confirmation_chg_valid_xhtml, + d'autres mais je sais plus trop a force.
Go to the top of the page
 
taiko
posté 15 Mar 2018, 15:29
Message #61


Ceinture marron OSC
Icône de groupe

Groupe : Membres
Messages : 1770
Inscrit : 20-April 07
Lieu : chez mickey
Membre no 16736



re

j'ai modifier dans l'admin ça qui était aussi déprécié c'est google sitemap :

CODE
// controllo delle lingue
$controllo = $languages_id;
$query = "SELECT
languages_id,
code
FROM
" . TABLE_LANGUAGES . "
WHERE
languages_id = $controllo";

$result = mysql_query($query);

while ($row = mysql_fetch_array($result))
{
$codice = $row[code];
};

$file = 'sitemaps.index.php?language=';
$url = $file . $codice;

// Fine



remplacer par :


CODE
// controllo delle lingue
$controllo = $languages_id;
$query = "SELECT
languages_id,
code
FROM
" . TABLE_LANGUAGES . "
WHERE
languages_id = $controllo";

$result = mysqli_query($query);

while ($row = mysqli_fetch_array($result))
{
$codice = $row[code];
};

$file = 'sitemaps.index.php?language=';
$url = $file . $codice;

// Fine




est j'ai cette erreur maintenant avant j'en avais 4 erreurs identiques aux autres d'avant mysql deprecated bla bla bla
ligne 24 :


Warning: mysqli_query() expects at least 2 parameters, 1 given in /home/cuisinedn/www/cuisine-designdeluxe/googlesitemap.php on line 24

Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in /home/cuisinedn/www/cuisine-designdeluxe/googlesitemap.php on line 26


--------------------
oscommerce ms2.2 delaballe, header tag controller v2-6-3, Agree2Terms_v1.6.7, MS2-2.2-SiteMap-SEO-URLs-withproducts (bientot), sponsorship v2.2,pack_newsletters, pack_newsletters, Prof_Invoice&PackingSlip_v0.2(fr+stylesheet) (je crois), checkout_confirmation_chg_valid_xhtml, + d'autres mais je sais plus trop a force.
Go to the top of the page
 
taiko
posté 15 Mar 2018, 22:35
Message #62


Ceinture marron OSC
Icône de groupe

Groupe : Membres
Messages : 1770
Inscrit : 20-April 07
Lieu : chez mickey
Membre no 16736



salut

bon ben j'ai passé la journée a essayer de régler le problème sur le product info avec le union_split_page result.php et j'ai rien trouvé je pense savoir ou se trouve le problème mais je sais pas le régler. j'ai vu que ça vient du module thumb bar et que ça vient de l'ajout de la barre de catégorie en bas de mon site sur product info mais j'y pige queudalle. et je pense que tout est lié avec le account.php qui récupère pas le nom etc. les infos personnel du compte et quand je suis connecté en admin je vois bien sur le who online tous sauf le nom et prénom en étant connecté.

En ligne ID Nom & Prénom Adresse IP Heure d'arrivée Dernier Clic Dernière URL
00:04:33 0 Guest 54.36.148.7 22:25:39 22:25:39 /baignoire-bathtubbz338-p-3832.html?page=4
00:05:15 0 Guest 66.249.69.127 22:24:57 22:24:57 /meuble-de-salle-de-bain-csbmeu8218-p-4086.html?language=fr&page=2
00:20:32 0 2a01:cb00:9ef:3 22:09:40 22:23:53 /sauna-traditionnel-en-pin-finlandais-saunaks1212-p-3763.html



ci joint le union_split_page_result :

CODE
<?php
/*=======================================================================*\
|| #################### //-- SCRIPT INFO --// ########################## ||
|| # Script name: union_split_page_results.php
|| # Contribution: Union Query Product Listing
|| # Version: 1.1
|| # Date: 23 January 2004
|| # ------------------------------------------------------------------ # ||
|| #################### //-- COPYRIGHT INFO --// ######################## ||
|| # Copyright © 2005 Bobby Easland # ||
|| # Internet moniker: Chemo # ||
|| # Contact: chemo@mesoimpact.com # ||
|| # Commercial Site: http://gigabyte-hosting.com/ # ||
|| # GPL Dev Server: http://mesoimpact.com/ # ||
|| # # ||
|| # This script is free software; you can redistribute it and/or # ||
|| # modify it under the terms of the GNU General Public License # ||
|| # as published by the Free Software Foundation; either version 2 # ||
|| # of the License, or (at your option) any later version. # ||
|| # # ||
|| # This script is distributed in the hope that it will be useful, # ||
|| # but WITHOUT ANY WARRANTY; without even the implied warranty of # ||
|| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # ||
|| # GNU General Public License for more details. # ||
|| # # ||
|| # Script is intended to be used with: # ||
|| # osCommerce, Open Source E-Commerce Solutions # ||
|| # http://www.oscommerce.com # ||
|| # Copyright © 2003 osCommerce # ||
|| ###################################################################### ||
\*========================================================================*/

class unionSplit{
var $query, $num_rows, $page_number, $number_of_pages, $page_number, $page_name;
var $offset, $limit;
var $explain, $execution_time;

function unionSplit($query, $max_rows, $page_number, $page_name = 'page', $do_explain = false){
$this->page_name = $page_name;
$this->page_number = ( !tep_not_null($page_number) || empty($page_number) || !is_numeric($page_number) ? 1 : $page_number );
$replace = "SELECT SQL_CALC_FOUND_ROWS ";
$explain_query = "EXPLAIN " . $query;
$union_query = substr_replace($query, $replace, 0, 7);
$this->limit = $max_rows;
$this->offset = ($this->page_number - 1) * $this->limit;
$union_query .= " LIMIT " . $this->offset . ", " . $this->limit;
$this->start($start);
$this->query = tep_db_query($union_query);
$this->stop($start, $this->execution_time);
if ($do_explain) $this->explain = tep_db_fetch_array(tep_db_query($explain_query));
$rows = tep_db_fetch_array(tep_db_query('SELECT FOUND_ROWS() as count'));
$this->num_rows = (int)$rows['count'];
$this->number_of_pages = ceil($this->num_rows / $this->limit);
}

function display_count($text_output) {
$to_num = ($this->limit * $this->page_number);
if ($to_num > $this->num_rows) $to_num = $this->num_rows;
$from_num = ($this->limit * ($this->page_number - 1));
if ($to_num == 0) {
$from_num = 0;
} else {
$from_num++;
}
return sprintf($text_output, $from_num, $to_num, $this->num_rows);
}

function display_links($max_page_links, $parameters = '') {
global $PHP_SELF, $request_type;

$display_links_string = '';
$class = 'class="pageResults"';
if (tep_not_null($parameters) && (substr($parameters, -1) != '&')) $parameters .= '&';
if ($this->page_number > 1) $display_links_string .= '<a href="' . tep_href_link(basename($PHP_SELF), $parameters . $this->page_name . '=' . ($this->page_number - 1), $request_type) . '" class="pageResults" title=" ' . PREVNEXT_TITLE_PREVIOUS_PAGE . ' "><u>' . PREVNEXT_BUTTON_PREV . '</u></a>&nbsp;&nbsp;';
$cur_window_num = intval($this->page_number / $max_page_links);
if ($this->page_number % $max_page_links) $cur_window_num++;
$max_window_num = intval($this->number_of_pages / $max_page_links);
if ($this->number_of_pages % $max_page_links) $max_window_num++;
if ($cur_window_num > 1) $display_links_string .= '<a href="' . tep_href_link(basename($PHP_SELF), $parameters . $this->page_name . '=' . (($cur_window_num - 1) * $max_page_links), $request_type) . '" class="pageResults" title=" ' . sprintf(PREVNEXT_TITLE_PREV_SET_OF_NO_PAGE, $max_page_links) . ' ">...</a>';
for ($jump_to_page = 1 + (($cur_window_num - 1) * $max_page_links); ($jump_to_page <= ($cur_window_num * $max_page_links)) && ($jump_to_page <= $this->number_of_pages); $jump_to_page++) {
if ($jump_to_page == $this->page_number) {
$display_links_string .= '&nbsp;<b>' . $jump_to_page . '</b>&nbsp;';
} else {
$display_links_string .= '&nbsp;<a href="' . tep_href_link(basename($PHP_SELF), $parameters . $this->page_name . '=' . $jump_to_page, $request_type) . '" class="pageResults" title=" ' . sprintf(PREVNEXT_TITLE_PAGE_NO, $jump_to_page) . ' "><u>' . $jump_to_page . '</u></a>&nbsp;';
}
}
if ($cur_window_num < $max_window_num) $display_links_string .= '<a href="' . tep_href_link(basename($PHP_SELF), $parameters . $this->page_name . '=' . (($cur_window_num) * $max_page_links + 1), $request_type) . '" class="pageResults" title=" ' . sprintf(PREVNEXT_TITLE_NEXT_SET_OF_NO_PAGE, $max_page_links) . ' ">...</a>&nbsp;';
if (($this->page_number < $this->number_of_pages) && ($this->number_of_pages != 1)) $display_links_string .= '&nbsp;<a href="' . tep_href_link(basename($PHP_SELF), $parameters . 'page=' . ($this->page_number + 1), $request_type) . '" class="pageResults" title=" ' . PREVNEXT_TITLE_NEXT_PAGE . ' "><u>' . PREVNEXT_BUTTON_NEXT . '</u></a>&nbsp;';

return $display_links_string;
}

function start(&$start_time){
$start_time = explode(' ', microtime());
}

function stop($start, &$time){
$end = explode(' ', microtime());
$time = number_format(($end[1] + $end[0] - ($start[1] + $start[0])), cool.gif;
}

} # end class
?>



le split_page_result :


CODE
<?php
/*
$Id: split_page_results.php,v 1.15 2003/06/09 22:35:34 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright © 2003 osCommerce

Released under the GNU General Public License
*/

class splitPageResults {
var $sql_query, $number_of_rows, $current_page_number, $number_of_pages, $number_of_rows_per_page, $page_name;

/* class constructor */
function splitPageResults($query, $max_rows, $count_key = '*', $page_holder = 'page') {
global $HTTP_GET_VARS, $HTTP_POST_VARS;

$this->sql_query = $query;
$this->page_name = $page_holder;

if (isset($HTTP_GET_VARS[$page_holder])) {
$page = $HTTP_GET_VARS[$page_holder];
} elseif (isset($HTTP_POST_VARS[$page_holder])) {
$page = $HTTP_POST_VARS[$page_holder];
} else {
$page = '';
}

if (empty($page) || !is_numeric($page)) $page = 1;
$this->current_page_number = $page;

$this->number_of_rows_per_page = $max_rows;

$pos_to = strlen($this->sql_query);
$pos_from = strpos($this->sql_query, ' from', 0);

$pos_group_by = strpos($this->sql_query, ' group by', $pos_from);
if (($pos_group_by < $pos_to) && ($pos_group_by != false)) $pos_to = $pos_group_by;

$pos_having = strpos($this->sql_query, ' having', $pos_from);
if (($pos_having < $pos_to) && ($pos_having != false)) $pos_to = $pos_having;

$pos_order_by = strpos($this->sql_query, ' order by', $pos_from);
if (($pos_order_by < $pos_to) && ($pos_order_by != false)) $pos_to = $pos_order_by;

if (strpos($this->sql_query, 'distinct') || strpos($this->sql_query, 'group by')) {
$count_string = 'distinct ' . tep_db_input($count_key);
} else {
$count_string = tep_db_input($count_key);
}

$count_query = tep_db_query("select count(" . $count_string . ") as total " . substr($this->sql_query, $pos_from, ($pos_to - $pos_from)));
$count = tep_db_fetch_array($count_query);

$this->number_of_rows = $count['total'];

$this->number_of_pages = ceil($this->number_of_rows / $this->number_of_rows_per_page);

if ($this->current_page_number > $this->number_of_pages) {
$this->current_page_number = $this->number_of_pages;
}

$offset = ($this->number_of_rows_per_page * ($this->current_page_number - 1));

$this->sql_query .= " limit " . max($offset, 0) . ", " . $this->number_of_rows_per_page;
}

/* class functions */

// display split-page-number-links
function display_links($max_page_links, $parameters = '') {
global $PHP_SELF, $request_type;

$display_links_string = '';

$class = 'class="pageResults"';

if (tep_not_null($parameters) && (substr($parameters, -1) != '&')) $parameters .= '&';

// previous button - not displayed on first page
if ($this->current_page_number > 1) $display_links_string .= '<a href="' . tep_href_link(basename($PHP_SELF), $parameters . $this->page_name . '=' . ($this->current_page_number - 1), $request_type) . '" class="pageResults" title=" ' . PREVNEXT_TITLE_PREVIOUS_PAGE . ' "><u>' . PREVNEXT_BUTTON_PREV . '</u></a>&nbsp;&nbsp;';

// check if number_of_pages > $max_page_links
$cur_window_num = intval($this->current_page_number / $max_page_links);
if ($this->current_page_number % $max_page_links) $cur_window_num++;

$max_window_num = intval($this->number_of_pages / $max_page_links);
if ($this->number_of_pages % $max_page_links) $max_window_num++;

// previous window of pages
if ($cur_window_num > 1) $display_links_string .= '<a href="' . tep_href_link(basename($PHP_SELF), $parameters . $this->page_name . '=' . (($cur_window_num - 1) * $max_page_links), $request_type) . '" class="pageResults" title=" ' . sprintf(PREVNEXT_TITLE_PREV_SET_OF_NO_PAGE, $max_page_links) . ' ">...</a>';

// page nn button
for ($jump_to_page = 1 + (($cur_window_num - 1) * $max_page_links); ($jump_to_page <= ($cur_window_num * $max_page_links)) && ($jump_to_page <= $this->number_of_pages); $jump_to_page++) {
if ($jump_to_page == $this->current_page_number) {
$display_links_string .= '&nbsp;<b>' . $jump_to_page . '</b>&nbsp;';
} else {
$display_links_string .= '&nbsp;<a href="' . tep_href_link(basename($PHP_SELF), $parameters . $this->page_name . '=' . $jump_to_page, $request_type) . '" class="pageResults" title=" ' . sprintf(PREVNEXT_TITLE_PAGE_NO, $jump_to_page) . ' "><u>' . $jump_to_page . '</u></a>&nbsp;';
}
}

// next window of pages
if ($cur_window_num < $max_window_num) $display_links_string .= '<a href="' . tep_href_link(basename($PHP_SELF), $parameters . $this->page_name . '=' . (($cur_window_num) * $max_page_links + 1), $request_type) . '" class="pageResults" title=" ' . sprintf(PREVNEXT_TITLE_NEXT_SET_OF_NO_PAGE, $max_page_links) . ' ">...</a>&nbsp;';

// next button
if (($this->current_page_number < $this->number_of_pages) && ($this->number_of_pages != 1)) $display_links_string .= '&nbsp;<a href="' . tep_href_link(basename($PHP_SELF), $parameters . 'page=' . ($this->current_page_number + 1), $request_type) . '" class="pageResults" title=" ' . PREVNEXT_TITLE_NEXT_PAGE . ' "><u>' . PREVNEXT_BUTTON_NEXT . '</u></a>&nbsp;';

return $display_links_string;
}

// display number of total products found
function display_count($text_output) {
$to_num = ($this->number_of_rows_per_page * $this->current_page_number);
if ($to_num > $this->number_of_rows) $to_num = $this->number_of_rows;

$from_num = ($this->number_of_rows_per_page * ($this->current_page_number - 1));

if ($to_num == 0) {
$from_num = 0;
} else {
$from_num++;
}

return sprintf($text_output, $from_num, $to_num, $this->number_of_rows);
}
}
?>


et le thumb_bar ou est appelé la classe union_split

CODE
<?php
/*=======================================================================*\
|| #################### //-- SCRIPT INFO --// ########################## ||
|| # Script name: thumb_bar.php
|| # Contribution: Thumbnail Category Browse on Product Page
|| # Version: 1.0
|| # Date: 24 Janauary 2005
|| # ------------------------------------------------------------------ # ||
|| #################### //-- COPYRIGHT INFO --// ######################## ||
|| # Copyright © 2005 Bobby Easland # ||
|| # Internet moniker: Chemo # ||
|| # Contact: chemo@mesoimpact.com # ||
|| # Commercial Site: http://gigabyte-hosting.com/ # ||
|| # GPL Dev Server: http://mesoimpact.com/ # ||
|| # # ||
|| # This script is free software; you can redistribute it and/or # ||
|| # modify it under the terms of the GNU General Public License # ||
|| # as published by the Free Software Foundation; either version 2 # ||
|| # of the License, or (at your option) any later version. # ||
|| # # ||
|| # This script is distributed in the hope that it will be useful, # ||
|| # but WITHOUT ANY WARRANTY; without even the implied warranty of # ||
|| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # ||
|| # GNU General Public License for more details. # ||
|| # # ||
|| # Script is intended to be used with: # ||
|| # osCommerce, Open Source E-Commerce Solutions # ||
|| # http://www.oscommerce.com # ||
|| # Copyright © 2003 osCommerce # ||
|| ###################################################################### ||
\*========================================================================*/

/*===============================================================================
*/
define('MAX_THUMB_ROW', 6); # Number of maximum thumbs per row
define('MIN_THUMB_ROW', 2); # Minimum number of thumbs
/*===============================================================================
=*/

#####################################
# DO NOT EDIT BELOW THIS POINT #
#####################################

# get the products in the current category
if ($current_category_id == 0) {
$cat_query = tep_db_query("select categories_id from " .TABLE_PRODUCTS_TO_CATEGORIES. " where products_id ='".$product_info['products_id']."'");
$cat = tep_db_fetch_array($cat_query);
$current_category_id = $cat['categories_id'];
}
$prod_query = "SELECT products_id FROM ".TABLE_PRODUCTS_TO_CATEGORIES." WHERE categories_id='".$current_category_id."' AND products_id != '".$products_id."'";
# execute the query
$products_id_query = tep_db_query($prod_query);
$num_rows = mysqli_num_rows($products_id_query);
IF ($num_rows > 0 ) {
# loop the array and populate the $prod_array with product ID's
$prod_array = array();
while($prods = tep_db_fetch_array($products_id_query)){
$prod_array[] = $prods['products_id'];
}
# free the result...clean as we go
tep_db_free_result($products_id_query);
# define the column list
$column_list = 'products_id, products_image, products_ordered';
# loop the $prod_array and start compiling the UNION query
$union = array();
foreach($prod_array as $index => $pID){
#$column_list = ( $index=0 ? 'SQL_CALC_FOUND_ROWS '.$column_list : $column_list);
$union[] = "SELECT ".$column_list." FROM ".TABLE_PRODUCTS." WHERE products_id='".$pID."' AND products_status='1'";
}
# implode the UNION query and get the final string
$union_str = implode(" UNION ", $union) . " ORDER BY products_ordered desc";
# unset some stuff...clean as we go
unset($prod_array, $union);
# include the class
include(DIR_WS_CLASSES . 'union_split_page_results.php');
# initiate the unionSplit class
# unionSplit( union query [string], max per row [int], current page [int], page parameter [string], explain the query [bool] )
$listing_split = new unionSplit($union_str, MAX_THUMB_ROW, (int)$_GET['page'], 'page', false);
# sanity check - if the number of returned products is greater than or equal to the minimum
if ( $listing_split->num_rows >= MIN_THUMB_ROW ){
?>
<!-- quick category thumb browser - by Chemo //-->
<?php
# set the column width dynamically
$width = (int)( ($listing_split->num_rows > MAX_THUMB_ROW) ? (1/MAX_THUMB_ROW*100) : (1/$listing_split->num_rows*100 ) );
#initialize the array - heading
$info_box_contents = array();
# set the array content - heading
$info_box_contents[] = array('align' => 'left', 'text' => TEXT_THUMB_BAR);
# initialize the contentBoxHeading
new infoBoxHeading($info_box_contents, false, false);
#initialize the array - content
$info_box_contents = array();
# loop the query results from the split
while ( $tmp = tep_db_fetch_array($listing_split->query) ){
# get the name of the product
# you may choose to get this from a JOIN ... modify the above code and comment this out
$tmp['products_name'] = tep_get_products_name($tmp['products_id']);
# assign the data
$info_box_contents[0][] = array('align' => 'center',
'params' => 'class="smallText" valign="top" width="'.$width.'%"',
// 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' //. $tmp['products_id'] . ( isset($_GET['page']) && tep_not_null($_GET['page']) && is_numeric($_GET['page']) ? '&page=' . //(int)$_GET['page'] : '') ) . ( isset($cPath) && tep_not_null($cPath) ? '&cPath='.$cPath : '' ) . '">' . //tep_image(DIR_WS_IMAGES . $tmp['products_image'], $tmp['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . //'</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $tmp['products_id']) . '">' . //$tmp['products_name'] . '</a>');
'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $tmp['products_id'] . ( isset($_GET['page']) && tep_not_null($_GET['page']) && is_numeric($_GET['page']) ? '&page=' . (int)$_GET['page'] : '') ) . '">' . tep_image(DIR_WS_IMAGES . $tmp['products_image'], $tmp['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $tmp['products_id']) . '">' . $tmp['products_name'] . '</a>');

}
# initialize the contentBox
new contentBox($info_box_contents);
// Add footer
if (MAIN_TABLE_BORDER == 'yes'){
$info_box_contents = array();
$info_box_contents = array();
$info_box_contents[] = array('align' => 'left',
'text' => tep_draw_separator('pixel_trans.gif', '100%', '1')
);
new infoboxFooter($info_box_contents, true, true);
}

# if the number of returned rows is greater than the max per row then output the nav links
if ( $listing_split->num_rows > MAX_THUMB_ROW ){
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><span class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></span></td>
<td align="right"><span class="smallText"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></span></td>
</tr>
</table>
<?php
} # end bracket for nav links block
?>
<!-- eof quick category thumb browser - by Chemo //-->
<?php
} # end bracket for if number returned products is greater than or equal to minimum
}
# If you would like to see how long it is taking to run the final UNION query for debugging
# uncomment the following line which will output the execution time
# echo $listing_split->execution_time;
?>


je pense que les deux sont à l'identique au début mais c'est pas le même nom de classe

sinon il faudrait supprimer au pire cette contrib si ça pose problème.

mais il me faudrait le fichier original dans ce cas là

merci de votre aide a ++


--------------------
oscommerce ms2.2 delaballe, header tag controller v2-6-3, Agree2Terms_v1.6.7, MS2-2.2-SiteMap-SEO-URLs-withproducts (bientot), sponsorship v2.2,pack_newsletters, pack_newsletters, Prof_Invoice&PackingSlip_v0.2(fr+stylesheet) (je crois), checkout_confirmation_chg_valid_xhtml, + d'autres mais je sais plus trop a force.
Go to the top of the page
 
Bonbec
posté 15 Mar 2018, 23:24
Message #63


Ceinture marron OSC
Icône de groupe

Groupe : Modérateurs
Messages : 1543
Inscrit : 30-May 06
Lieu : Vichy (03)
Membre no 10583



Pour ton problème de Fatal error: Cannot redeclare unionSplit::$page_number in /home/cuisinedn/www/includes/classes/union_split_page_results.php on line 34 :
Ton fichier thumb_bar.php, essaye de modifier cette ligne :
Code
include(DIR_WS_CLASSES . 'union_split_page_results.php');

en
Code
include_once(DIR_WS_CLASSES . 'union_split_page_results.php');

C'est une rustine à défaut de trouver les fichiers qui appellent cette classe.



--------------------
Config 1 en live : Osc 2.2 très fortement modifié ... UTF-8 et Php 5.4.
Contribs installées : down_for_maintenance_v 2.3 | Estimated Shipping v1.5 | imprint_1_3_5 | low_stock_report_v2.04 | visible_countries_1.2b | Products Tabs | shoppingCart_cleanup_v1.01.0 | + trop de bidouilles persos pas très OsCommerce (erreurs de jeunesse)
Config 2 en local avec UwAmp : Osc Phoenix
Go to the top of the page
 
taiko
posté 15 Mar 2018, 23:37
Message #64


Ceinture marron OSC
Icône de groupe

Groupe : Membres
Messages : 1770
Inscrit : 20-April 07
Lieu : chez mickey
Membre no 16736



Salut

Merci je vais rustiner en attendant de chercher plus en detail les fichiers.

C est la classes union split qu il faut que je trouve en double ?

Penses tu que le problème de nom et prenom non récupéré dans la base pour le account et account efit soit lie et du a cette erreur qui empeche la suite du fichier.

Est ce que je suis prêt de la fin pour le passage en php 5.6 ou pas là lol !!!!

Merci


--------------------
oscommerce ms2.2 delaballe, header tag controller v2-6-3, Agree2Terms_v1.6.7, MS2-2.2-SiteMap-SEO-URLs-withproducts (bientot), sponsorship v2.2,pack_newsletters, pack_newsletters, Prof_Invoice&PackingSlip_v0.2(fr+stylesheet) (je crois), checkout_confirmation_chg_valid_xhtml, + d'autres mais je sais plus trop a force.
Go to the top of the page
 
Bonbec
posté 15 Mar 2018, 23:45
Message #65


Ceinture marron OSC
Icône de groupe

Groupe : Modérateurs
Messages : 1543
Inscrit : 30-May 06
Lieu : Vichy (03)
Membre no 10583



Pour ton whoisonline, ton explication n'est pas claire du tout ... account.php n'a rien à voir avec whoisonline.
Citation
et je pense que tout est lié avec le account.php qui récupère pas le nom etc. les infos personnel du compte et quand je suis connecté en admin je vois bien sur le who online tous sauf le nom et prénom en étant connecté.

En ligne ID Nom & Prénom Adresse IP Heure d'arrivée Dernier Clic Dernière URL
00:04:33 0 Guest 54.36.148.7 22:25:39 22:25:39 /baignoire-bathtubbz338-p-3832.html?page=4
00:05:15 0 Guest 66.249.69.127 22:24:57 22:24:57 /meuble-de-salle-de-bain-csbmeu8218-p-4086.html?language=fr&page=2
00:20:32 0 2a01:cb00:9ef:3 22:09:40 22:23:53 /sauna-traditionnel-en-pin-finlandais-saunaks1212-p-3763.html


Dans admin/whoisonline.php le nom & prénom est récupéré dans la BDD via ceci (full_name) :
Code
  $whos_online_query = tep_db_query("select customer_id, full_name, ip_address, time_entry, time_last_click, last_page_url, session_id, user_agent from " . TABLE_WHOS_ONLINE);

Ce fameux full_name est inscrit en BDD via le fichier admin/includes/functions/whoisonline.php comme ceci :
Code
    if (tep_session_is_registered('customer_id')) {
      $wo_customer_id = $customer_id;

      $customer_query = tep_db_query("select customers_firstname, customers_lastname from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'");
      $customer = tep_db_fetch_array($customer_query);

      $wo_full_name = $customer['customers_firstname'] . ' ' . $customer['customers_lastname'];
    } else {
      $wo_customer_id = '';
      $wo_full_name = 'Guest';
    }

Donc la vraie question est de savoir si full_name est bien dans ta BDD quand tu es connecté.
Si oui, alors c'est dans le fichier admin/whoisonline.php qu'il y a un problème.
Si non, c'est dans admin/includes/functions/whoisonline.php que se situe le problème.



--------------------
Config 1 en live : Osc 2.2 très fortement modifié ... UTF-8 et Php 5.4.
Contribs installées : down_for_maintenance_v 2.3 | Estimated Shipping v1.5 | imprint_1_3_5 | low_stock_report_v2.04 | visible_countries_1.2b | Products Tabs | shoppingCart_cleanup_v1.01.0 | + trop de bidouilles persos pas très OsCommerce (erreurs de jeunesse)
Config 2 en local avec UwAmp : Osc Phoenix
Go to the top of the page
 
Bonbec
posté 15 Mar 2018, 23:50
Message #66


Ceinture marron OSC
Icône de groupe

Groupe : Modérateurs
Messages : 1543
Inscrit : 30-May 06
Lieu : Vichy (03)
Membre no 10583



Re,
Citation (taiko @ 15 Mar 2018, 23:37) *
... C est la classes union split qu il faut que je trouve en double ?

Il faut que tu trouves les fichiers qui appellent la classe de cette manière :
Code
include(DIR_WS_CLASSES . 'union_split_page_results.php');

Si il n'y a qu'un fichier, c'est que ce seul fichier est appelé plusieurs fois et là ce n'est peut-être pas normal.

PS : j'ai vu que ton problème de langues avait disparu smile.gif


--------------------
Config 1 en live : Osc 2.2 très fortement modifié ... UTF-8 et Php 5.4.
Contribs installées : down_for_maintenance_v 2.3 | Estimated Shipping v1.5 | imprint_1_3_5 | low_stock_report_v2.04 | visible_countries_1.2b | Products Tabs | shoppingCart_cleanup_v1.01.0 | + trop de bidouilles persos pas très OsCommerce (erreurs de jeunesse)
Config 2 en local avec UwAmp : Osc Phoenix
Go to the top of the page
 
taiko
posté 16 Mar 2018, 00:34
Message #67


Ceinture marron OSC
Icône de groupe

Groupe : Membres
Messages : 1770
Inscrit : 20-April 07
Lieu : chez mickey
Membre no 16736



Salut

Merci de ta reponse rapide.
Alors je vais regarder dans la base de donnée il y a de grande chance que ca n y est pas et que ca vient de la base de donnee puisque dans account et account edit je n ai pas d info personnel non plus qui doivent certainement etre récupéré en base de donnee aussi non ?

Je vais m en occuper la je viens de rentrer je vais rustiner deja pour voir si le prob est partis.
Merci

Pour le probleme de langue oui je l ai regle en modifiant le application top et le database et session je crois hier j ai passe une commande et tout fonctionnait nickel sans probleme du account edit perte des infos personnelle.
C est du a la modification du fichier session et des mysqli que ca ne fonctionne plus bien.
J ai reussi a passer une commande et tous etait enregistre nickel.
Mais maintenant ca ne fonctionne plus bien.
A force de bidouiller on s y perd.



--------------------
oscommerce ms2.2 delaballe, header tag controller v2-6-3, Agree2Terms_v1.6.7, MS2-2.2-SiteMap-SEO-URLs-withproducts (bientot), sponsorship v2.2,pack_newsletters, pack_newsletters, Prof_Invoice&PackingSlip_v0.2(fr+stylesheet) (je crois), checkout_confirmation_chg_valid_xhtml, + d'autres mais je sais plus trop a force.
Go to the top of the page
 
taiko
posté 16 Mar 2018, 00:48
Message #68


Ceinture marron OSC
Icône de groupe

Groupe : Membres
Messages : 1770
Inscrit : 20-April 07
Lieu : chez mickey
Membre no 16736



bon alors

je me suis connecté à mon compte et j'ai regardé dans la base de donné dans la table whos online j'ai le champs vide dans le fullname mais tous les autres champs c'est ok comme dans l'administration en faite.
donc pour toi c'est dans le admin function qu'il y aurait un problème car non enregistré dans la base de donnée.

euh je viens de regarder j'ai pas de whosonline dans admin include function!!!! mais j'en ai un dans catalog/include/function par contre avec la fonction dont tu parles

et j'ai modifier le whosonline de l'admin j'ai changé mysql en mysqli déjà car je suppose que je dois aussi le faire celui là.

CODE

if (STORE_SESSIONS == 'mysqli') {
$session_data = tep_db_query("select value from " . TABLE_SESSIONS . " WHERE sesskey = '" . $info . "'");
$session_data = tep_db_fetch_array($session_data);
$session_data = trim($session_data['value']);
} else {
if ( (file_exists(tep_session_save_path() . '/sess_' . $info)) && (filesize(tep_session_save_path() . '/sess_' . $info) > 0) ) {
$session_data = file(tep_session_save_path() . '/sess_' . $info);
$session_data = trim(implode('', $session_data));
}
}


Ce message a été modifié par taiko - 16 Mar 2018, 01:08.


--------------------
oscommerce ms2.2 delaballe, header tag controller v2-6-3, Agree2Terms_v1.6.7, MS2-2.2-SiteMap-SEO-URLs-withproducts (bientot), sponsorship v2.2,pack_newsletters, pack_newsletters, Prof_Invoice&PackingSlip_v0.2(fr+stylesheet) (je crois), checkout_confirmation_chg_valid_xhtml, + d'autres mais je sais plus trop a force.
Go to the top of the page
 
Bonbec
posté 16 Mar 2018, 01:06
Message #69


Ceinture marron OSC
Icône de groupe

Groupe : Modérateurs
Messages : 1543
Inscrit : 30-May 06
Lieu : Vichy (03)
Membre no 10583



Re,

Tu as raison, c'est pas dans admin, c'est dans catalog/includes/functions/ désolé ...

Je pense que çà ne doit pas récupérer $customer_id


--------------------
Config 1 en live : Osc 2.2 très fortement modifié ... UTF-8 et Php 5.4.
Contribs installées : down_for_maintenance_v 2.3 | Estimated Shipping v1.5 | imprint_1_3_5 | low_stock_report_v2.04 | visible_countries_1.2b | Products Tabs | shoppingCart_cleanup_v1.01.0 | + trop de bidouilles persos pas très OsCommerce (erreurs de jeunesse)
Config 2 en local avec UwAmp : Osc Phoenix
Go to the top of the page
 
taiko
posté 16 Mar 2018, 01:10
Message #70


Ceinture marron OSC
Icône de groupe

Groupe : Membres
Messages : 1770
Inscrit : 20-April 07
Lieu : chez mickey
Membre no 16736



re

oui le problème vient de là oui surement, j'avais vu un post sur ça il me semble.

je vais changer le include once au faite pour le union split voir si ça fonctionne.


--------------------
oscommerce ms2.2 delaballe, header tag controller v2-6-3, Agree2Terms_v1.6.7, MS2-2.2-SiteMap-SEO-URLs-withproducts (bientot), sponsorship v2.2,pack_newsletters, pack_newsletters, Prof_Invoice&PackingSlip_v0.2(fr+stylesheet) (je crois), checkout_confirmation_chg_valid_xhtml, + d'autres mais je sais plus trop a force.
Go to the top of the page
 
taiko
posté 16 Mar 2018, 01:24
Message #71


Ceinture marron OSC
Icône de groupe

Groupe : Membres
Messages : 1770
Inscrit : 20-April 07
Lieu : chez mickey
Membre no 16736



bon ben la rustine ne fonctionne pas par contre j'ai un split page result dans admin classe et un dans catalog classe aussi c'est normal


Ce message a été modifié par taiko - 16 Mar 2018, 01:41.


--------------------
oscommerce ms2.2 delaballe, header tag controller v2-6-3, Agree2Terms_v1.6.7, MS2-2.2-SiteMap-SEO-URLs-withproducts (bientot), sponsorship v2.2,pack_newsletters, pack_newsletters, Prof_Invoice&PackingSlip_v0.2(fr+stylesheet) (je crois), checkout_confirmation_chg_valid_xhtml, + d'autres mais je sais plus trop a force.
Go to the top of the page
 
Bonbec
posté 16 Mar 2018, 01:47
Message #72


Ceinture marron OSC
Icône de groupe

Groupe : Modérateurs
Messages : 1543
Inscrit : 30-May 06
Lieu : Vichy (03)
Membre no 10583



Si çà ne fonctionne pas, c'est que le fichier de classe est appelé ailleurs ... Faut trouver où.

Juste pour voir si l'erreur vient de ton thumb_bar.php, essaye de commenter provisoirement ta ligne include(DIR_WS_MODULES . 'thumb_bar.php'); dans ton product_info.php


--------------------
Config 1 en live : Osc 2.2 très fortement modifié ... UTF-8 et Php 5.4.
Contribs installées : down_for_maintenance_v 2.3 | Estimated Shipping v1.5 | imprint_1_3_5 | low_stock_report_v2.04 | visible_countries_1.2b | Products Tabs | shoppingCart_cleanup_v1.01.0 | + trop de bidouilles persos pas très OsCommerce (erreurs de jeunesse)
Config 2 en local avec UwAmp : Osc Phoenix
Go to the top of the page
 
taiko
posté 16 Mar 2018, 01:54
Message #73


Ceinture marron OSC
Icône de groupe

Groupe : Membres
Messages : 1770
Inscrit : 20-April 07
Lieu : chez mickey
Membre no 16736



bon

ben j'ai retirer carrément l'appel je sais même plus comment on commente une ligne en php.
et y a plus d'erreur ben je vais essayer de faire tous les fichiers demain et trouver ou c'est appeler .

sinon pour le customer_id faut faire quoi pour récupérer les infos

Ce message a été modifié par taiko - 16 Mar 2018, 02:01.


--------------------
oscommerce ms2.2 delaballe, header tag controller v2-6-3, Agree2Terms_v1.6.7, MS2-2.2-SiteMap-SEO-URLs-withproducts (bientot), sponsorship v2.2,pack_newsletters, pack_newsletters, Prof_Invoice&PackingSlip_v0.2(fr+stylesheet) (je crois), checkout_confirmation_chg_valid_xhtml, + d'autres mais je sais plus trop a force.
Go to the top of the page
 
Bonbec
posté 16 Mar 2018, 02:00
Message #74


Ceinture marron OSC
Icône de groupe

Groupe : Modérateurs
Messages : 1543
Inscrit : 30-May 06
Lieu : Vichy (03)
Membre no 10583



Re,

pour commenter une ligne en php, il suffit de mettre çà en début de ligne : //

Sinon je crois que j'ai trouvé la solution. Va voir la page de téléchargement de la contrib :
https://apps.oscommerce.com/O5g0M&thumb...category-browse
et clique sur PHP 5.4 Error duplicate $page number


--------------------
Config 1 en live : Osc 2.2 très fortement modifié ... UTF-8 et Php 5.4.
Contribs installées : down_for_maintenance_v 2.3 | Estimated Shipping v1.5 | imprint_1_3_5 | low_stock_report_v2.04 | visible_countries_1.2b | Products Tabs | shoppingCart_cleanup_v1.01.0 | + trop de bidouilles persos pas très OsCommerce (erreurs de jeunesse)
Config 2 en local avec UwAmp : Osc Phoenix
Go to the top of the page
 
taiko
posté 16 Mar 2018, 02:04
Message #75


Ceinture marron OSC
Icône de groupe

Groupe : Membres
Messages : 1770
Inscrit : 20-April 07
Lieu : chez mickey
Membre no 16736



re


ben j'avais vu que dans la ligne il y avait deux fois $page number hier mais j'ai pas essayer de le virer je penser que c'était normal lol je suis vraiment une quiche


--------------------
oscommerce ms2.2 delaballe, header tag controller v2-6-3, Agree2Terms_v1.6.7, MS2-2.2-SiteMap-SEO-URLs-withproducts (bientot), sponsorship v2.2,pack_newsletters, pack_newsletters, Prof_Invoice&PackingSlip_v0.2(fr+stylesheet) (je crois), checkout_confirmation_chg_valid_xhtml, + d'autres mais je sais plus trop a force.
Go to the top of the page
 

4 Pages V  < 1 2 3 4 >
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 : 28th March 2024 - 23:28
Ce site est déclaré auprès de la commision Nationale
de l'Informatique et des Libertés (déclaration n°: 1043896)