Jump to content

(résolu)Pb affichage site


Recommended Posts

Bonsoir,

 

J'ai installé prestashop sur un serveur de gandi (simple hosting). j'ai lié un nom de domaine de chez gandi.

 

Deux problèmes se posent :

 

1er : l'affiche de mon site via le panneau d'administration, voici :

 

Index of /vhosts/www.mondomaine.com/htdocs/prestashop

 

Name Last modified Size Description

Parent Directory -

404.php 2011-10-09 10:48 1.5K

CHANGELOG.txt 2011-10-09 10:48 208K

address.php 2011-10-09 10:48 1.1K

addresses.php 2011-10-09 10:48 1.1K

admin420/ 2011-10-09 10:48 -

attachment.php 2011-10-09 10:48 1.4K

.... (les écrits sont précédés de dossier, cela fait penser à l'arborescence de mes fichiers)

 

2eme :

 

quand je vais sur mon site : www.monsite.fr (nom de domaine), page blanche.

 

Voici mon problème actuel.

 

Si vous avez une solution, je suis preneuse car cela fait plusieurs que j'ai des problèmes de lien avec mon nom de domaine. J'ai essayé de résoudre certains avec gandi mais là je pense que ce n'est plus de leur ressort.

 

Voici mon .htaccess si nécessaire :

 

SetEnv PHP_VER 5

SetEnv REGISTER_GLOBALS 0

# 1. URL rewriting module activation

 

RewriteEngine on

 

RewriteRule ^api/?(.*)$ /webservice/dispatcher.php?url=$1 [QSA,L]

RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1-$2$3.jpg [L]

RewriteRule ^([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1-$2.jpg [L]

RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/c/$1$2.jpg [L]

RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L]

RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /category.php?id_category=$1 [QSA,L]

RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L]

RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*) /supplier.php?id_supplier=$1 [QSA,L]

RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) /manufacturer.php?id_manufacturer=$1 [QSA,L]

RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms=$1 [QSA,L]

RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms_category=$1 [QSA,L]

RewriteRule ^([a-z]{2})/[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$2&isolang=$1 [QSA,L]

RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$2&isolang=$1 [QSA,L]

RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]* /category.php?id_category=$2&isolang=$1 [QSA,L]

RewriteRule ^([a-z]{2})/content/([0-9]+)\-[a-zA-Z0-9-]* /cms.php?isolang=$1&id_cms=$2 [QSA,L]

RewriteRule ^([a-z]{2})/content/category/([0-9]+)\-[a-zA-Z0-9-]* /cms.php?isolang=$1&id_cms_category=$2 [QSA,L]

RewriteRule ^([a-z]{2})/([0-9]+)__[a-zA-Z0-9-]* /supplier.php?isolang=$1&id_supplier=$2 [QSA,L]

RewriteRule ^([a-z]{2})/([0-9]+)_[a-zA-Z0-9-]* /manufacturer.php?isolang=$1&id_manufacturer=$2 [QSA,L]

RewriteRule ^en/page-not-found$ /404.php?isolang=en [QSA,L]

RewriteRule ^en/address$ /address.php?isolang=en [QSA,L]

RewriteRule ^en/addresses$ /addresses.php?isolang=en [QSA,L]

RewriteRule ^en/authentication$ /authentication.php?isolang=en [QSA,L]

RewriteRule ^en/best-sales$ /best-sales.php?isolang=en [QSA,L]

RewriteRule ^en/cart$ /cart.php?isolang=en [QSA,L]

RewriteRule ^en/contact-us$ /contact-form.php?isolang=en [QSA,L]

RewriteRule ^en/discount$ /discount.php?isolang=en [QSA,L]

RewriteRule ^en/guest-tracking$ /guest-tracking.php?isolang=en [QSA,L]

RewriteRule ^en/order-history$ /history.php?isolang=en [QSA,L]

RewriteRule ^en/identity$ /identity.php?isolang=en [QSA,L]

RewriteRule ^en/manufacturers$ /manufacturer.php?isolang=en [QSA,L]

RewriteRule ^en/my-account$ /my-account.php?isolang=en [QSA,L]

RewriteRule ^en/new-products$ /new-products.php?isolang=en [QSA,L]

RewriteRule ^en/order$ /order.php?isolang=en [QSA,L]

RewriteRule ^en/order-follow$ /order-follow.php?isolang=en [QSA,L]

RewriteRule ^en/quick-order$ /order-opc.php?isolang=en [QSA,L]

RewriteRule ^en/order-slip$ /order-slip.php?isolang=en [QSA,L]

RewriteRule ^en/password-recovery$ /password.php?isolang=en [QSA,L]

RewriteRule ^en/prices-drop$ /prices-drop.php?isolang=en [QSA,L]

RewriteRule ^en/search$ /search.php?isolang=en [QSA,L]

RewriteRule ^en/sitemap$ /sitemap.php?isolang=en [QSA,L]

RewriteRule ^en/stores$ /stores.php?isolang=en [QSA,L]

RewriteRule ^en/supplier$ /supplier.php?isolang=en [QSA,L]

RewriteRule ^en/([^?&]*) /$1?isolang=en [QSA,L]

RewriteRule ^fr/page-non-trouvee$ /404.php?isolang=fr [QSA,L]

RewriteRule ^fr/adresse$ /address.php?isolang=fr [QSA,L]

RewriteRule ^fr/adresses$ /addresses.php?isolang=fr [QSA,L]

RewriteRule ^fr/authentification$ /authentication.php?isolang=fr [QSA,L]

RewriteRule ^fr/meilleures-ventes$ /best-sales.php?isolang=fr [QSA,L]

RewriteRule ^fr/panier$ /cart.php?isolang=fr [QSA,L]

RewriteRule ^fr/contactez-nous$ /contact-form.php?isolang=fr [QSA,L]

RewriteRule ^fr/bons-de-reduction$ /discount.php?isolang=fr [QSA,L]

RewriteRule ^fr/suivi-commande-invite$ /guest-tracking.php?isolang=fr [QSA,L]

RewriteRule ^fr/historique-des-commandes$ /history.php?isolang=fr [QSA,L]

RewriteRule ^fr/identite$ /identity.php?isolang=fr [QSA,L]

RewriteRule ^fr/fabricants$ /manufacturer.php?isolang=fr [QSA,L]

RewriteRule ^fr/mon-compte$ /my-account.php?isolang=fr [QSA,L]

RewriteRule ^fr/nouveaux-produits$ /new-products.php?isolang=fr [QSA,L]

RewriteRule ^fr/commande$ /order.php?isolang=fr [QSA,L]

RewriteRule ^fr/details-de-la-commande$ /order-follow.php?isolang=fr [QSA,L]

RewriteRule ^fr/commande-rapide$ /order-opc.php?isolang=fr [QSA,L]

RewriteRule ^fr/avoirs$ /order-slip.php?isolang=fr [QSA,L]

RewriteRule ^fr/mot-de-passe-oublie$ /password.php?isolang=fr [QSA,L]

RewriteRule ^fr/promotions$ /prices-drop.php?isolang=fr [QSA,L]

RewriteRule ^fr/recherche$ /search.php?isolang=fr [QSA,L]

RewriteRule ^fr/plan-du-site$ /sitemap.php?isolang=fr [QSA,L]

RewriteRule ^fr/magasins$ /stores.php?isolang=fr [QSA,L]

RewriteRule ^fr/fournisseurs$ /supplier.php?isolang=fr [QSA,L]

RewriteRule ^fr/([^?&]*) /$1?isolang=fr [QSA,L]

RewriteRule ^es/pagina-no-encuentra$ /404.php?isolang=es [QSA,L]

RewriteRule ^es/direccion$ /address.php?isolang=es [QSA,L]

RewriteRule ^es/direcciones$ /addresses.php?isolang=es [QSA,L]

RewriteRule ^es/autenticacion$ /authentication.php?isolang=es [QSA,L]

RewriteRule ^es/mas-vendidos$ /best-sales.php?isolang=es [QSA,L]

RewriteRule ^es/carro-de-la-compra$ /cart.php?isolang=es [QSA,L]

RewriteRule ^es/contactenos$ /contact-form.php?isolang=es [QSA,L]

RewriteRule ^es/descuento$ /discount.php?isolang=es [QSA,L]

RewriteRule ^es/estado-pedido$ /guest-tracking.php?isolang=es [QSA,L]

RewriteRule ^es/historial-de-pedidos$ /history.php?isolang=es [QSA,L]

RewriteRule ^es/identidad$ /identity.php?isolang=es [QSA,L]

RewriteRule ^es/fabricantes$ /manufacturer.php?isolang=es [QSA,L]

RewriteRule ^es/mi-cuenta$ /my-account.php?isolang=es [QSA,L]

RewriteRule ^es/nuevos-productos$ /new-products.php?isolang=es [QSA,L]

RewriteRule ^es/carrito$ /order.php?isolang=es [QSA,L]

RewriteRule ^es/devolucion-de-productos$ /order-follow.php?isolang=es [QSA,L]

RewriteRule ^es/pedido-rapido$ /order-opc.php?isolang=es [QSA,L]

RewriteRule ^es/vales$ /order-slip.php?isolang=es [QSA,L]

RewriteRule ^es/contrasena-olvidado$ /password.php?isolang=es [QSA,L]

RewriteRule ^es/promocion$ /prices-drop.php?isolang=es [QSA,L]

RewriteRule ^es/buscar$ /search.php?isolang=es [QSA,L]

RewriteRule ^es/mapa-del-sitio$ /sitemap.php?isolang=es [QSA,L]

RewriteRule ^es/tiendas$ /stores.php?isolang=es [QSA,L]

RewriteRule ^es/proveedores$ /supplier.php?isolang=es [QSA,L]

RewriteRule ^es/([^?&]*) /$1?isolang=es [QSA,L]

RewriteRule ^de/Seite-nicht-gefunden$ /404.php?isolang=de [QSA,L]

RewriteRule ^de/Adresse$ /address.php?isolang=de [QSA,L]

RewriteRule ^de/Adressen$ /addresses.php?isolang=de [QSA,L]

RewriteRule ^de/Authentifizierung$ /authentication.php?isolang=de [QSA,L]

RewriteRule ^de/Verkaufshits$ /best-sales.php?isolang=de [QSA,L]

RewriteRule ^de/Warenkorb$ /cart.php?isolang=de [QSA,L]

RewriteRule ^de/kontaktieren-sie-uns$ /contact-form.php?isolang=de [QSA,L]

RewriteRule ^de/Discount$ /discount.php?isolang=de [QSA,L]

RewriteRule ^de/auftragsverfolgung-gast$ /guest-tracking.php?isolang=de [QSA,L]

RewriteRule ^de/Bestellungsverlauf$ /history.php?isolang=de [QSA,L]

RewriteRule ^de/Kennung$ /identity.php?isolang=de [QSA,L]

RewriteRule ^de/Hersteller$ /manufacturer.php?isolang=de [QSA,L]

RewriteRule ^de/mein-Konto$ /my-account.php?isolang=de [QSA,L]

RewriteRule ^de/Neue-Produkte$ /new-products.php?isolang=de [QSA,L]

RewriteRule ^de/Bestellung$ /order.php?isolang=de [QSA,L]

RewriteRule ^de/Bestellungsverfolgung$ /order-follow.php?isolang=de [QSA,L]

RewriteRule ^de/schnell-bestellung$ /order-opc.php?isolang=de [QSA,L]

RewriteRule ^de/Bestellschein$ /order-slip.php?isolang=de [QSA,L]

RewriteRule ^de/kennwort-wiederherstellung$ /password.php?isolang=de [QSA,L]

RewriteRule ^de/Preise-fallen$ /prices-drop.php?isolang=de [QSA,L]

RewriteRule ^de/Suche$ /search.php?isolang=de [QSA,L]

RewriteRule ^de/sitemap$ /sitemap.php?isolang=de [QSA,L]

RewriteRule ^de/Shops$ /stores.php?isolang=de [QSA,L]

RewriteRule ^de/Zulieferer$ /supplier.php?isolang=de [QSA,L]

RewriteRule ^de/([^?&]*) /$1?isolang=de [QSA,L]

RewriteRule ^it/pagina-non-trovata$ /404.php?isolang=it [QSA,L]

RewriteRule ^it/indirizzo$ /address.php?isolang=it [QSA,L]

RewriteRule ^it/indirizzi$ /addresses.php?isolang=it [QSA,L]

RewriteRule ^it/autenticazione$ /authentication.php?isolang=it [QSA,L]

RewriteRule ^it/vendite-migliori$ /best-sales.php?isolang=it [QSA,L]

RewriteRule ^it/carrello$ /cart.php?isolang=it [QSA,L]

RewriteRule ^it/contattaci$ /contact-form.php?isolang=it [QSA,L]

RewriteRule ^it/sconto$ /discount.php?isolang=it [QSA,L]

RewriteRule ^it/ospite-monitoraggio$ /guest-tracking.php?isolang=it [QSA,L]

RewriteRule ^it/storico-ordine$ /history.php?isolang=it [QSA,L]

RewriteRule ^it/identite$ /identity.php?isolang=it [QSA,L]

RewriteRule ^it/produttori$ /manufacturer.php?isolang=it [QSA,L]

RewriteRule ^it/il-mio-account$ /my-account.php?isolang=it [QSA,L]

RewriteRule ^it/nuovi-prodotti$ /new-products.php?isolang=it [QSA,L]

RewriteRule ^it/ordine$ /order.php?isolang=it [QSA,L]

RewriteRule ^it/seguito-ordine$ /order-follow.php?isolang=it [QSA,L]

RewriteRule ^it/ordine-veloce$ /order-opc.php?isolang=it [QSA,L]

RewriteRule ^it/nota-di-ordine$ /order-slip.php?isolang=it [QSA,L]

RewriteRule ^it/password-recupero$ /password.php?isolang=it [QSA,L]

RewriteRule ^it/riduzione-prezzi$ /prices-drop.php?isolang=it [QSA,L]

RewriteRule ^it/cerca$ /search.php?isolang=it [QSA,L]

RewriteRule ^it/sitemap$ /sitemap.php?isolang=it [QSA,L]

RewriteRule ^it/negozi$ /stores.php?isolang=it [QSA,L]

RewriteRule ^it/fornitore$ /supplier.php?isolang=it [QSA,L]

RewriteRule ^it/([^?&]*) /$1?isolang=it [QSA,L]

 

# Catch 404 errors

ErrorDocument 404 /404.php

 

Je vous remercie d'avance de vos réponses. Pas facile d'être novice dans ce milieu. :rolleyes:

 

Indina

Link to comment
Share on other sites

Bonjour,

 

quand je vais dans firefox et que je lance mon site : www.mondomaine.com toujours page blanche. j'ai eu, dans la console d'erreur de firefox :

 

Erreur : [Exception... "Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name]" nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" location: "JS frame :: resource:///components/nsLoginManager.js :: <TOP_LEVEL> :: line 293" data: no]

Fichier Source : resource:///components/nsLoginManager.js

Ligne : 293

 

et quand j'ai cliqué sur fichier source :

 

this._pwmgr.log("onStateChange accepted: req = " +

(aRequest ? aRequest.name : "(null)") +

", flags = 0x" + aStateFlags.toString(16));

Que dois je comprendre ?

 

Merci d'avance.

 

Indina

Link to comment
Share on other sites

Bonjour,

 

Gandi m'a dit de regarder dans les logs erreurs de mon php pour savoir comment résoudre le problème mais j'avoue ne pas y comprendre, voici :

 

 

<?php

/*

* 2007-2011 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Open Software License (OSL 3.0)

* that is bundled with this package in the file LICENSE.txt.

* It is also available through the world-wide-web at this URL:

* http://opensource.org/licenses/osl-3.0.php

* If you did not receive a copy of the license and are unable to

* obtain it through the world-wide-web, please send an email

* to [email protected] so we can send you a copy immediately.

*

* DISCLAIMER

*

* Do not edit or add to this file if you wish to upgrade PrestaShop to newer

* versions in the future. If you wish to customize PrestaShop for your

* needs please refer to http://www.prestashop.com for more information.

*

* @author PrestaShop SA <[email protected]>

* @copyright 2007-2011 PrestaShop SA

* @version Release: $Revision: 6643 $

* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

* International Registered Trademark & Property of PrestaShop SA

*/

 

//

// IMPORTANT : don't forget to delete the underscore _ in the file name if you want to use it !

//

 

function developpementErrorHandler($errno, $errstr, $errfile, $errline)

{

if (!(error_reporting() & $errno))

return;

switch($errno)

{

case E_ERROR:

echo '

 '.$errstr.' ('.$errfile.', line '.$errline.')';

break;

case E_WARNING:

echo '[php Warning #'.$errno.'] '.$errstr.' ('.$errfile.', line '.$errline.')';

break;

case E_PARSE:

echo '[php Parse #'.$errno.'] '.$errstr.' ('.$errfile.', line '.$errline.')';

break;

case E_NOTICE:

echo '[php Notice #'.$errno.'] '.$errstr.' ('.$errfile.', line '.$errline.')';

break;

case E_CORE_ERROR:

echo '[php Core #'.$errno.'] '.$errstr.' ('.$errfile.', line '.$errline.')';

break;

case E_CORE_WARNING:

echo '[php Core warning #'.$errno.'] '.$errstr.' ('.$errfile.', line '.$errline.')';

break;

case E_COMPILE_ERROR:

echo '[php Compile #'.$errno.'] '.$errstr.' ('.$errfile.', line '.$errline.')';

break;

case E_COMPILE_WARNING:

echo '[php Compile warning #'.$errno.'] '.$errstr.' ('.$errfile.', line '.$errline.')';

break;

case E_USER_ERROR:

echo '[php Error #'.$errno.'] '.$errstr.' ('.$errfile.', line '.$errline.')';

break;

case E_USER_WARNING:

echo '[php User warning #'.$errno.'] '.$errstr.' ('.$errfile.', line '.$errline.')';

break;

case E_USER_NOTICE:

echo '[php User notice #'.$errno.'] '.$errstr.' ('.$errfile.', line '.$errline.')';

break;

case E_STRICT:

echo '[php Strict #'.$errno.'] '.$errstr.' ('.$errfile.', line '.$errline.')';

break;

case E_RECOVERABLE_ERROR:

echo '[php Recoverable error #'.$errno.'] '.$errstr.' ('.$errfile.', line '.$errline.')';

break;

default:

echo '[php Unknown error #'.$errno.'] '.$errstr.' ('.$errfile.', line '.$errline.')';

}

die;

return true;

}

 

 

class FrontController extends FrontControllerCore

{

public $_memory = array();

public $_time = array();

private static $_footer = true;

 

public static function disableParentCalls()

{

self::$_footer = false;

}

 

private function displayMemoryColor($n)

{

$n /= 1048576;

if ($n > 3)

return '<span style="color:red">'.round($n, 2).' Mb</span>';

if ($n > 1)

return '<span style="color:orange">'.round($n, 2).' Mb</span>';

return '<span style="color:green">'.round($n, 2).' Mb</span>';

}

 

private function displaySQLQueries($n)

{

if ($n > 150)

return '<span style="color:red">'.$n.' queries</span>';

if ($n > 100)

return '<span style="color:orange">'.$n.' queries</span>';

return '<span style="color:green">'.$n.' quer'.($n == 1 ? 'y' : 'ies').'</span>';

}

 

private function displayLoadTimeColor($n, $kikoo = false)

{

if ($n > 1)

return '<span style="color:red">'.round($n, 3).'s</span>'.($kikoo ? '<br />You\'d better run your shop on a toaster' : '');

if ($n > 0.5)

return '<span style="color:orange">'.round($n * 1000).'ms</span>'.($kikoo ? '<br />I hope it is a shared hosting' : '');

return '<span style="color:green">'.round($n * 1000).'ms</span>'.($kikoo ? '<br />Good boy! That\'s what I call a webserver!' : '');

}

 

private function getTimeColor($n)

{

if ($n > 4)

return 'style="color:red"';

if ($n > 2)

return 'style="color:orange"';

return 'style="color:green"';

}

 

private function getQueryColor($n)

{

if ($n > 5)

return 'style="color:red"';

if ($n > 2)

return 'style="color:orange"';

return 'style="color:green"';

}

 

private function getTableColor($n)

{

if ($n > 30)

return 'style="color:red"';

if ($n > 20)

return 'style="color:orange"';

return 'style="color:green"';

}

 

public function __construct()

{

// error management

set_error_handler('developpementErrorHandler');

ini_set('html_errors', 'on');

ini_set('display_errors', 'on');

error_reporting(E_ALL | E_STRICT);

 

$this->_memory = array_fill(0, 10, 0);

$this->_time = array_fill(0, 10, 0);

 

// Usually set in the parent constructor, but here I need it to evaluate init()

$useSSL = $this->ssl;

 

if (!self::$_footer)

return;

 

$this->_memory[-3] = memory_get_usage();

$this->_time[-3] = microtime(true);

$this->init();

$this->_memory[-2] = memory_get_usage();

$this->_time[-2] = microtime(true);

parent::__construct();

$this->_memory[-1] = memory_get_usage();

$this->_time[-1] = microtime(true);

}

 

public function run()

{

$this->_memory[0] = memory_get_usage();

$this->_time[0] = microtime(true);

$this->preProcess();

$this->_memory[1] = memory_get_usage();

$this->_time[1] = microtime(true);

$this->setMedia();

$this->_memory[2] = memory_get_usage();

$this->_time[2] = microtime(true);

$this->displayHeader();

$this->_memory[3] = memory_get_usage();

$this->_time[3] = microtime(true);

$this->process();

$this->_memory[4] = memory_get_usage();

$this->_time[4] = microtime(true);

$this->displayContent();

$this->_memory[5] = memory_get_usage();

$this->_time[5] = microtime(true);

$this->displayFooter();

}

 

function ini_get_display_errors()

{

$a = 'display_errors';

$b = ini_get($a);

switch (strtolower($B))

{

case 'on':

case 'yes':

case 'true':

return 'assert.active' !== $a;

case 'stdout':

case 'stderr':

return 'display_errors' === $a;

default:

return (bool)(int)$b;

}

}

 

private function sizeofvar($var)

{

$start_memory = memory_get_usage();

$tmp = unserialize(serialize($var));

$size = memory_get_usage() - $start_memory;

return $size;

}

 

public function displayFooter()

{

global $start_time;

 

if (self::$_footer)

parent::displayFooter();

 

if (!$this->ini_get_display_errors())

return;

 

$this->_memory[6] = memory_get_usage();

$this->_time[6] = microtime(true);

 

$hr = '<hr style="color:#F5F5F5;margin:2px" />';

 

$totalSize = 0;

foreach (get_included_files() as $file)

$totalSize += filesize($file);

 

$totalQueryTime = 0;

foreach (Db::getInstance()->queriesTime as $time)

$totalQueryTime += $time;

 

$hooktime = Module::getHookTime();

arsort($hooktime);

$totalHookTime = 0;

foreach ($hooktime as $time)

$totalHookTime += $time;

 

$globalSize = array();

$totalGlobalSize = 0;

foreach ($GLOBALS as $key => $value)

if ($key != 'GLOBALS')

{

$totalGlobalSize += ($size = $this->sizeofvar($value));

if ($size > 1024)

$globalSize[$key] = round($size / 1024, 1);

}

arsort($globalSize);

 

echo '<br /><br />

<div class="rte" style="text-align:left;padding:8px;float:left">

<b>Load time</b>: '.$this->displayLoadTimeColor($this->_time[6] - $start_time, true).'';

if (self::$_footer)

echo '

<ul>

<li>Config: '.$this->displayLoadTimeColor($this->_time[-3] - $start_time).'</li>

<li>Init: '.$this->displayLoadTimeColor(($this->_time[-2] - $this->_time[-3])).'</li>

<li>Constructor: '.$this->displayLoadTimeColor(($this->_time[-1] - $this->_time[-2])).'</li>

<li>preProcess: '.$this->displayLoadTimeColor(($this->_time[1] - $this->_time[0])).'</li>

<li>setMedia: '.$this->displayLoadTimeColor(($this->_time[2] - $this->_time[1])).'</li>

<li>displayHeader: '.$this->displayLoadTimeColor(($this->_time[3] - $this->_time[2])).'</li>

<li>process: '.$this->displayLoadTimeColor(($this->_time[4] - $this->_time[3])).'</li>

<li>displayContent: '.$this->displayLoadTimeColor(($this->_time[5] - $this->_time[4])).'</li>

<li>displayFooter: '.$this->displayLoadTimeColor(($this->_time[6] - $this->_time[5])).'</li>

</ul>';

echo '</div>

<div class="rte" style="text-align:left;padding:8px;float:left;margin-left:20px">

<b>Hook processing</b>: '.$this->displayLoadTimeColor($totalHookTime).'

<ul>';

foreach ($hooktime as $hook => $time)

echo '<li>'.$hook.': '.$this->displayLoadTimeColor($time).'</li>';

echo '</ul>

</div>

<div class="rte" style="text-align:left;padding:8px;float:left;margin-left:20px">

<b>Memory peak usage</b>: '.$this->displayMemoryColor(memory_get_peak_usage()).'';

if (self::$_footer)

echo '

<ul>

<li>Config: '.$this->displayMemoryColor($this->_memory[-3]).'</li>

<li>Init: '.$this->displayMemoryColor(($this->_memory[-2] - $this->_memory[-3])).'</li>

<li>Constructor: '.$this->displayMemoryColor(($this->_memory[-1] - $this->_memory[-2])).'</li>

<li>preProcess: '.$this->displayMemoryColor(($this->_memory[1] - $this->_memory[0])).'</li>

<li>setMedia: '.$this->displayMemoryColor(($this->_memory[2] - $this->_memory[1])).'</li>

<li>displayHeader: '.$this->displayMemoryColor(($this->_memory[3] - $this->_memory[2])).'</li>

<li>process: '.$this->displayMemoryColor(($this->_memory[4] - $this->_memory[3])).'</li>

<li>displayContent: '.$this->displayMemoryColor(($this->_memory[5] - $this->_memory[4])).'</li><li>displayFooter: '.$this->displayMemoryColor(($this->_memory[6] - $this->_memory[5])).'</li>

</ul>';

echo '</div>';

 

$countByTypes = '';

foreach (Db::getInstance()->countTypes as $type => $count)

if ($count)

$countByTypes .= '<li>'.$count.' x '.$type.'</li>';

$countByTypes = rtrim($countByTypes, ' |');

 

echo '

<div class="rte" style="text-align:left;padding:8px;float:left;margin-left:20px">

<b>SQL Queries</b>: '.$this->displaySQLQueries(Db::getInstance()->count).'

<ul>'.$countByTypes.'</ul>

<br /><b>Time spent querying</b>: '.$this->displayLoadTimeColor($totalQueryTime).'

</div>

<div class="rte" style="text-align:left;padding:8px;float:left;margin-left:20px">

<b>Included files</b>: '.sizeof(get_included_files()).'<br />

<b>Size of included files</b>: '.$this->displayMemoryColor($totalSize).'

</div>

<div class="rte" style="text-align:left;padding:8px;float:left;margin-left:20px">

<b>Globals (> 1 Ko only): '.round($totalGlobalSize / 1024).' Ko</b>

<ul>';

foreach ($globalSize as $global => $size)

echo '<li>'.$global.' ≈ '.$size.' Ko</li>';

echo '</ul>

</div>';

 

echo '

<div class="rte" style="text-align:left;padding:8px;clear:both;margin-top:20px">

<ul>

<li><a href="#stopwatch">Go to Stopwatch</a></li>

<li><a href="#doubles">Go to Doubles</a></li>

<li><a href="#tables">Go to Tables</a></li>

</ul>

</div>

<div class="rte" style="text-align:left;padding:8px">

<h3><a name="stopwatch">Stopwatch (with SQL_NO_CACHE)</a></h3>';

$queries = Db::getInstance()->queriesTime;

arsort($queries);

foreach ($queries as $q => $time)

echo $hr.'<b '.$this->getTimeColor($time * 1000).'>'.round($time * 1000, 3).' ms</b> '.$q;

echo '</div>

<div class="rte" style="text-align:left;padding:8px">

<h3><a name="doubles">Doubles (IDs replaced by "XX")</a></h3>';

$queries = Db::getInstance()->queries;

arsort($queries);

foreach ($queries as $q => $nb)

echo $hr.'<b '.$this->getQueryColor($nb).'>'.$nb.'</b> '.$q;

echo '</div>

<div class="rte" style="text-align:left;padding:8px">

<h3><a name="tables">Tables stress</a></h3>';

$tables = Db::getInstance()->tables;

arsort($tables);

foreach ($tables as $table => $nb)

echo $hr.'<b '.$this->getTableColor($nb).'>'.$nb.'</b> '.$table;

echo '</div>';

}

}

 

je vous remercie d'avance de votre compréhension.

 

:unsure:

 

Indina

Link to comment
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
×
×
  • Create New...