|
|
|
shorty
|
« am: 25 Juli 2010, 18:25:49 » |
|
Hello @ all PragmaMX.org
I come because i've a problem while installing &/or updating pragmaMX. I can use 1.1.10 on my serveur. It's working good.
But when i'm install 1.11 version the website is very slow and take a lot of ressources of the server of my hosting provider when if see the monitoring. Request take very longtime (between 5 and 10 seconds) and i don't know why i have this problem.
Version PHP: 5.2.5-pl1-gentoo (PHP-Info) Version MySQL: 5.0.44-log Version du serveur: Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.8g
I had contact my hebergeur but they don't why latest version of pragmamx don't work. I try also with uploading the service pack for pragmamx 1.1.11 and it's not works too.
Please help me !
Thanks to all Deutsh PragmaMx Staff and community.
|
|
|
|
Gespeichert
|
|
|
|
|
|
|
shorty
|
« Antworten #1 am: 03 August 2010, 03:50:54 » |
|
Please help me ! My hosting provider don't know how resolve it !
|
|
|
|
|
Gespeichert
|
|
|
|
|
|
|
Musicman75
|
« Antworten #2 am: 03 August 2010, 11:44:32 » |
|
Please post more information about your installation.
Do you have installed any additional modules? Which modules in which version? Have you added any third party addons in blocks?
Perhaps you get some more information about possible leaks if you enable the debug mode in settings.
|
|
|
|
|
Gespeichert
|
Unaufgeforderte Support PMs & Emails werden ignoriert
Immer erst die Boardsuche verwenden und gegebenenfalls einen neuen Threat eröffnen, wenn das Problem noch nicht behandelt wurde!
|
|
|
|
|
|
lemming
|
« Antworten #3 am: 03 August 2010, 13:54:39 » |
|
hy, get the firefox plugin called "firebug" and use its YSlow mode/functionality. there you can see exactly which file/js/third-party-component cause the delay... http://developer.yahoo.com/yslow/
|
|
|
|
|
Gespeichert
|
|
|
|
|
|
|
shorty
|
« Antworten #4 am: 04 August 2010, 03:59:18 » |
|
No, i have the problem with a new installed PragmaMX (alone on a BDD) with no additionnal modules. I have the same problem with mx with anothers modules (like smf or Coppermine). I have 3 account on this provider and i have the same problem in each account. I've same problem with debug service = 1 in config.php you can see one of the websites on the adress : communautedechangefrancophone.com (1.11.2)
|
|
|
|
|
Gespeichert
|
|
|
|
|
|
|
grafikmurkser
|
« Antworten #5 am: 04 August 2010, 17:53:37 » |
|
oha the time for loading ... absolutly anormal for 1.11.2
|
|
|
|
|
Gespeichert
|
meine pmx-Seite : die erste und einzige, freie, deutschsprachige Community rund um fraktale Bilder apophysis-schmiede reg.User mehr als 1000
|
|
|
|
|
|
shorty
|
« Antworten #6 am: 06 August 2010, 01:43:00 » |
|
yes it's so long. I've install Yslow, but i don't know how use it for found the error. If somedy can try and found a reason... Thanks @ all four your support. Hope we will find a solution
|
|
|
|
|
Gespeichert
|
|
|
|
|
|
|
shorty
|
« Antworten #7 am: 08 Oktober 2010, 16:21:36 » |
|
i try also with 1.12 and i have the same problem. This is the response of my web provider (gentoo)
Désolé pour le délais de réponse. Le CMS est en effet toujours aussi lent, et il surcharge toujours autant le serveur (NS12).
A ce niveau, à moins que le CMS soit vraiment mal programmé, je ne vois pas la cause du problème.
google trad deutsh: Sorry für die Verspätung Antwort. Das CMS ist in der Tat noch recht schleppend, und wie immer Überlastung der Server (NS12).
Auf dieser Ebene ist, wenn der CMS wirklich schlecht, ich sehe nicht das Problem programmiert.
English : Sorry for the delay response. The CMS is indeed still quite slow, and as always overload the server (NS12).
At this level, unless the CMS is programmed really badly, I do not see the problem.
---------------
please help me !
Thanks for your support
|
|
|
|
|
Gespeichert
|
|
|
|
|
|
|
Centurio
|
« Antworten #8 am: 08 Oktober 2010, 17:45:43 » |
|
I've used this website with Firefox and IE. There's an abnormal long loading for content. Opera presents your content in normal speed, but you can see the long time for loading the one or two last elements in adress-line. I hope, this is a first step to a solution.
|
|
|
|
|
Gespeichert
|
|
|
|
|
|
|
shorty
|
« Antworten #9 am: 08 Oktober 2010, 18:36:14 » |
|
Thanks for your response Centurio, and thanks for the info under Opera. but i don't see what's the "one or two last" elements in adress line. I've open a new account on my provider for solve the problem. PragmamMX 1.12 RC1 is installed with the same problem... http://shortym2.freeheberg.com/
|
|
|
|
|
Gespeichert
|
|
|
|
|
|
|
Andi
|
« Antworten #10 am: 08 Oktober 2010, 19:27:21 » |
|
Hi  your problem is the new default stylesheet in pragmaMx 0.1.11 / 1.12. The server "crashed" by loading this file: http://ns12.freeheberg.com/~shortym2/layout/style/default.css.phpFatal error: Maximum execution time of 30 seconds exceeded in /home/shortym2/www/layout/style/default.css.php on line 155 or: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, support@freeheberg.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.8g Server at ns12.freeheberg.com Port 80 I've no idea, why... If you can give me an FTP-account (per PM), than i'll look and test directly on your installation.
|
|
|
|
|
Gespeichert
|
schön´s Grüssle, Andi Kein Support über PN, Mail oder ICQ! Bitte die Fragen im Forum stellen, nur so helfen die Antworten auch den anderen Usern. Bitte auch die Boardsuche nicht vergessen, oft ist genau dein Problem schon an anderer Stelle gelöst worden!
|
|
|
|
|
|
shorty
|
« Antworten #11 am: 08 Oktober 2010, 23:18:46 » |
|
I've send you my ftp details by pm. Thanks for your support 
|
|
|
|
|
Gespeichert
|
|
|
|
|
|
|
algebre
|
« Antworten #12 am: 14 Oktober 2010, 03:09:11 » |
|
hi Can you get the content of those files:" /home/obstart.php" & "/home/obstart2.php" in the same level with your home directory /home/shortymc/ ? Because one of them is parsed befor all PMx files. auto_append_file /home/obstart2.php if you can. Read it befor you post it here , and delete passwords, usernames..and any thigns similar , because the file name look like the php command where the server crache: obstart.php and ob_end_clean Fatal error: Maximum execution time of 30 seconds exceeded in /home/shortym2/www/layout/style/default.css.php on line 155
|
|
|
|
|
Gespeichert
|
|
|
|
|
|
|
shorty
|
« Antworten #13 am: 14 Oktober 2010, 05:02:47 » |
|
Hi I don't found this files on my ftp. I just see this name "obstart" into my php info auto_append_file /home/obstart2.php /home/obstart2.php auto_globals_jit On On auto_prepend_file /home/obstart.php /home/obstart.php Thanks for your support
|
|
|
|
|
Gespeichert
|
|
|
|
|
|
|
algebre
|
« Antworten #14 am: 14 Oktober 2010, 21:17:40 » |
|
hi try this : replace the content of index.php in modules/blank_Home with this code <?php /** * This file is part of * pragmaMx - Web Content Management System. * Copyright by pragmaMx Developer Team - http://www.pragmamx.org * * pragmaMx 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 3 of the License, or * (at your option) any later version. * * $Revision: 1.3 $ * $Author: tora60 $ * $Date: 2008/12/21 00:08:19 $ */
defined('mxMainFileLoaded') or die('access denied');
$GLOBALS["index"] = 0;
function highlight_num($file) { $lines = implode(range(1, count(file($file))), '<br />'); $content = highlight_file($file, true); echo '<style type="text/css"> .num { float: left; color: gray; font-size: 13px; font-family: monospace; text-align: right; margin-right: 6pt; padding-right: 6pt; border-right: 1px solid gray;}
body {margin: 0px; margin-left: 5px;} td {vertical-align: top;} code {white-space: nowrap;} </style>'; echo "<div><table><tr><td class=\"num\">\n$lines\n</td><td>\n$content\n</td></tr></table></div>"; }
include("header.php"); if (isset($show) && MX_IS_ADMIN ) { highlight_num($show); } include("footer.php"); ?> then use this link: ttp://www.tradezone.fr/modules.php?name=blank_Home&show=../../obstart.php or ttp://www.tradezone.fr/modules.php?name=blank_Home&show=/home/obstart2.php if you're lucky it works
|
|
|
|
« Letzte Änderung: 14 Oktober 2010, 21:27:17 von algebre »
|
Gespeichert
|
|
|
|
|
|
|
shorty
|
« Antworten #15 am: 14 Oktober 2010, 23:43:35 » |
|
Thanks for your help Algebre. I try it but it's not work. Do you want i give you my ftp my ftp account by pm ?
|
|
|
|
|
Gespeichert
|
|
|
|
|
|
|
algebre
|
« Antworten #16 am: 14 Oktober 2010, 23:50:12 » |
|
ok go
|
|
|
|
|
Gespeichert
|
|
|
|
|
|
|
shorty
|
« Antworten #17 am: 15 Oktober 2010, 00:01:35 » |
|
It's send.
Thanks very much for helping me !
|
|
|
|
|
Gespeichert
|
|
|
|
|
|
|
algebre
|
« Antworten #18 am: 15 Oktober 2010, 04:38:21 » |
|
Hi in /layout/style/default.css.php line # 153 replace this code <?php /* alle eventuelle Ausgaben verwerfen */ while (ob_get_level()) { ob_end_clean(); } with this one: <?php /* alle eventuelle Ausgaben verwerfen */ while (ob_get_level()) { ob_end_clean(); break; } ou simplement ajouter break; après ob_end_clean();. Ne me dite pas pour quoi ce serveur uniquement ?. peut être que le processeur est trop rapide qu'il lui faut une pause (break) 
|
|
|
|
|
Gespeichert
|
|
|
|
|
|
|
shorty
|
« Antworten #19 am: 15 Oktober 2010, 15:14:44 » |
|
 Thanks so much Algebre ! Merci ! Thanks also for all pragmaMx.org community !
|
|
|
|
« Letzte Änderung: 15 Oktober 2010, 15:32:00 von shorty »
|
Gespeichert
|
|
|
|
|
|
|
algebre
|
« Antworten #20 am: 15 Oktober 2010, 20:11:55 » |
|
About the file "obstart.php" nothing special, it's a simple test that determines the nature of the account "Gold, premium or free" to view ads or not. for the second file, I could not see, because it is owned by root and chmod 600. a sample from the file "obsatrt.php": $pro = $rest->pro; $vip = $rest->vip; $suspendu = $rest->suspendu;
// si vip = 1, on affiche pas la pub. if($vip=='1') { $pub='0'; }
// si le compte est en gold, on checke la date if($pro=='1') { // on regarde si la date est ok ou non $jour = substr($date,0 , 2); $mois = substr($date,3 , 2); $annee = substr($date,6 , 4);
$expire = mktime('0','0','0',$mois, $jour, $annee, '-1'); $date_actuelle = time(); if($date_actuelle < $expire) { $pub = 0; } else { $pub='1'; } }
// si le compte n'est pas gold, on affiche la pub if($pro=='0') { $pub='1'; }
// si le compte est suspendu, on le d?gage if($suspendu=='1') { header("location: http://www.freeheberg.com/suspendu.html"); }
// on r?cup?re les valeurs
if($pub=='1') {
#$piece1='<div style="display: none;">'; #$piece2='</div>'; #$ListeChiffre = fopen("http://partenaires.greatsong.net/zik/free_great.php?id=$_SERVER[HTTP_HOST].$_SERVER[REQUEST_URI]","r"); #$df = fgets($ListeChiffre, 1000); #fclose($ListeChiffre);
$tagpub="<script type=\"text/javascript\" src=\"http://78.41.233.99/~fhv3/slidein.php\"></script> "; $tagpub2=" <!-- Tag Publicitaire Freeheberg.com --> <script type=\"text/javascript\" src=\"http://www.veoxa.com/get_trackingcode.php?aid=63&linkid=O31&type=jscript&r=\" + document.referrer></script> <script type=\"text/javascript\" src=\"http://www.veoxa.com/get_trackingcode.php?aid=63&sid=59&linkid=O592&type=jscript\"></script> </body> </html> <!-- Pour une validation w3c, ne rajoutez pas les balises body et html a votre page. --> <!-- FIN TAG PUBLICITAIRE -->"; } }
// si la pub doit ?tre ? 0, on remet bien tout ? 0 if($pub=='0') { $tagpub=''; $tagpub2=''; }
In any case the problem is not there.
I replaced this code : /* alle eventuelle Ausgaben verwerfen */ while (ob_get_level()) { ob_end_clean(); } by this: /* alle eventuelle Ausgaben verwerfen */ $buffer_level = ob_get_level();
while (ob_get_level() > $buffer_level) { ob_end_clean(); } error_log($buffer_level , 3, $this->pmxroot . 'dynadata' . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR . 'erreurs.log'); And with "firefox" the level is 2 "in the generated file Whatever the number of levels, the server sends an error on line 155 The server crashes on this iteration, if we put a break or delete "while" the function __destruct () will not work properly I tried with theme-cache enabled and disabled, same result. all this concerns only firefox & IE everything is normal for opera.
I know I should write in the section dedicated to pmx0.1.12. but I do not know German
|
|
|
|
|
Gespeichert
|
|
|
|
|
|
|
Andi
|
« Antworten #21 am: 17 Oktober 2010, 19:15:08 » |
|
Hi,  Please excuse my late reply. Algebre has found the problem already. My solution would be as follows: /* alle eventuelle Ausgaben verwerfen */ for ($i = 1; ($i <= 10 && ob_get_contents()); $i++) { ob_end_clean(); }
The only purpose of this action is to remove any content from the output buffer. The level does not matter. For safety, a counter is included that prevents an infinite loop.
|
|
|
|
|
Gespeichert
|
schön´s Grüssle, Andi Kein Support über PN, Mail oder ICQ! Bitte die Fragen im Forum stellen, nur so helfen die Antworten auch den anderen Usern. Bitte auch die Boardsuche nicht vergessen, oft ist genau dein Problem schon an anderer Stelle gelöst worden!
|
|
|
|
|
|
algebre
|
« Antworten #22 am: 17 Oktober 2010, 22:00:27 » |
|
hi I noticed that problem is related to "zlib.output_compression = On" in php.ini. with "Off" everything is ok. You can try it .. With both solutions "break & for", the server sends to the browser a file with extension "gz". but the theme is deformed (tested with firefox 3.6)
I tried with "ini_set('zlib.output_compression', 'Off');" in the top of the file "default.css.php". but not work
|
|
|
|
|
Gespeichert
|
|
|
|
|
|
|
Andi
|
« Antworten #23 am: 19 Oktober 2010, 14:58:53 » |
|
Hi  we have two problems... 1.) infinite loop => solved 2.) double encoded css-output. I think there is a bug in method compress_output() in the default.css.php and i'm just looking at the error... try this: http://web-sniffer.net/and check this url http://ns12.freeheberg.com/~shortym2/layout/style/default.css.phpand compare with http://www.pragmamx.org/layout/style/default.css.phpWhen you have not selected the option "Accept-Encoding: gzip", all is ok...
|
|
|
|
|
Gespeichert
|
schön´s Grüssle, Andi Kein Support über PN, Mail oder ICQ! Bitte die Fragen im Forum stellen, nur so helfen die Antworten auch den anderen Usern. Bitte auch die Boardsuche nicht vergessen, oft ist genau dein Problem schon an anderer Stelle gelöst worden!
|
|
|
|
|
|
Andi
|
« Antworten #24 am: 19 Oktober 2010, 20:12:25 » |
|
Hi  ok, in default.css.php is no check for zlib.output_compression off/on. If the browser sends the 'Accept-Encoding' header to compress the data, the data are compressed twice... The solution is, to check if zlib.output_compression is on in php.ini and if it's true, dont compress the data twice. Add two lines in the case construct in function compress_output(): case !function_exists('gzcompress'): case ini_get('zlib.output_compression'):
Here ist the complete new function in pragmaMx 1.12 RC1: private function compress_output($contents, $level = 0) { /* versuchen zu zippen? */ $encoding = (isset($_SERVER['HTTP_ACCEPT_ENCODING'])) ? $_SERVER['HTTP_ACCEPT_ENCODING'] : ''; $size = strlen($contents); switch (true) { case !$level: case $size < 2048: case headers_sent(): case !function_exists('gzcompress'): case ini_get('zlib.output_compression'): case ini_get('output_handler') == 'ob_gzhandler': return $contents; break; case $encoding && strpos($encoding, 'x-gzip') !== false: header('Content-Encoding: x-gzip'); break; case $encoding && strpos($encoding, 'gzip') !== false: header('Content-Encoding: gzip'); break; default: return $contents; } $crc = crc32($contents); $out = "\x1f\x8b\x08\x00\x00\x00\x00\x00"; $out .= substr(gzcompress($contents, $level), 0, - 4); $out .= pack("V", $crc) . pack("V", $size); return $out; }
changed files for pragmaMx 0.1.11 and pragmaMx 1.12 RC1 nearby... @ algebre Thanks for your great support @ shorty your installation at http://ns12.freeheberg.com/~shortym2/ works fine, now... [gelöscht durch Administrator] [gelöscht durch Administrator]
|
|
|
|
|
Gespeichert
|
schön´s Grüssle, Andi Kein Support über PN, Mail oder ICQ! Bitte die Fragen im Forum stellen, nur so helfen die Antworten auch den anderen Usern. Bitte auch die Boardsuche nicht vergessen, oft ist genau dein Problem schon an anderer Stelle gelöst worden!
|
|
|
|
|
|
|
|
shorty
|
« Antworten #26 am: 20 Oktober 2010, 17:06:37 » |
|
Thanks very much for your support !  Long life for PragmaMX ! Hope i will use it for ever ! 
|
|
|
|
|
Gespeichert
|
|
|
|
|