Error 500 bei jedem 2. Aufruf im FF und unregelmässig im IE

Hier bekommst Du deutschsprachigen Support. Keine Fehlermeldungen oder Erweiterungswünsche bitte!
Post Reply
ShyGuy
Posts: 158
Joined: Sat 11. Nov 2006, 15:27
Location: DE-Hannover
Contact:

Error 500 bei jedem 2. Aufruf im FF und unregelmässig im IE

Post by ShyGuy »

Hallo...

den anderen Thread bzgl. dieses Themas habe ich durch - bringt mich allerdings nicht wirklich weiter.
Bei mir ist's ebenfalls genau so wie hier http://www.phpwcms.de/forum/viewtopic.p ... =error+500 beschrieben. Bei jedem zweiten Aufruf im FF kommt ein Error 500. Zurück zur 1.28 möchte ich nicht, da ich jetzt mühsam alles auf die 1.30 umgestellt habe und auch jeden Tag auf das FE-Login warte. http://www.phpwcms.de/forum/viewtopic.p ... e&start=33

Ich habe nicht bei Strato gehostet, sondern bei internet4ever.de
Bei mir zickt allerdings auch der IE rum, so dass ich einen erheblichen Bug in meinem Template vermute. Das Template habe ich selbst eingefriemelt, so dass ich -aufgrund meiner mangelhaften Kenntnisse- hier am ehesten den Fehler vermute.
Ist jemand mal so nett, und schaut sich meinen Code an... :idea:

Vielen Dank, Stefan


---
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Post by juergen »

Hallo,

dieses Mal ist der Server unter Confixx am laufen, das sollte die Problematik auf die Umgebung des Apaches reduzieren.

Auch hier läuft PHP als Fast CGI, deckungsgleich zu dem anderen Problem. Es ist wieder das 4.3.10.

Nach dem googlen kann man sehen, dass wordpress und andere Kandidaten ebenfalls mit dieser Konfiguration Ärger hatten. Die haben ein Fix gebaut, das den Header Redirect abändert. Aber ob das hier wirklich helfen sollte .... :?

Du solltest den Hoster fragen ob der Server vielleicht 'ein wenig zu sicher ist'

Jürgen
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Verstehe nur Bahnhof. Wo denn?

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Post by juergen »

hihi,

durch raten ... www button anklicken :D
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Eine Validierung der about Seite bringt 42 Fehler.

Würde ich erst einmal korrigieren.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
ShyGuy
Posts: 158
Joined: Sat 11. Nov 2006, 15:27
Location: DE-Hannover
Contact:

Post by ShyGuy »

Hi Knut...

die Validierung habe ich auch schon drüber laufen lassen; sofern denn überhaupt ein on-line validierer die Site ansprechen konnte :-\ Aber wirklich schlau bin ich nicht draus geworden - da fehlt mir einfach das Fachwissen. Ich habe aus dem Template schon Head, Kopfzeile, Footer und rechts rausgenommen und in Links nur das Menü, sowie in Haupt {CONTENT} stehen lassen - der Fehler bleibt. Damit habe ich eigentlich alle, für mich behebbaren Fehlerquellen des Error 500 ausgeschlossen. Die Validierung bemängelt viel, auf das ich -meiner Meinung nach- keinen Einfluss habe... Das mit den beiden fehlenden /DIVs muss ich mal suchen :?

-> DF6IH
Es lief doch aber mit 1.28 auf genau der gleichen Maschine. Andere, die das gleiche Problem hatten, haben “Sende Last modified Header” (Administration > Einstellungen > erweiterte Einstellungen) auf “nein” gestellt und sind damit das Problem los. Da ich keinen 'eigenen' Server habe, stehe ich da doch etwas auf dem Schlauch...

-> you both
Wie auch immer, ich danke Euch beiden, dass Ihr Euch die Zeit genommen habt. Wird evtl. Zeit, sich nach einem anderen CMS umzusehen. Die ätzend hakeligen Updates und das nicht vorhandene FE-Login sind einfach Mist.

Die Fehler, die ggf. in meinem Template stecken, gehen auf meine Kappe, aber sonst kommt mittlerweile echt Frust auf...

Gruß, Stefan

1:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2:"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3:<html xmlns="http://www.w3.org/1999/xhtml">
--- unknown attribute "XMLNS" for element <html>.
4:<head>
5:<!--
6: phpwcms | free open source content management system
7: created by Oliver Georgi (oliver at phpwcms dot de) and licensed under GNU/GPL.
8: phpwcms is copyright 2003-2006 of Oliver Georgi. Extensions are copyright of\
9: their respective owners. Visit project page for details: http://www.phpwcms.org/
10://-->
11:<title>About | About</title>
12: <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
--- unknown attribute "/" for element <meta>.
13: <meta http-equiv="content-style-type" content="text/css" />
--- unknown attribute "/" for element <meta>.
14: <script src="template/inc_js/frontend.js" type="text/javascript"></script>
--- unknown attribute "TYPE" for element <script>.
--- empty container element <SCRIPT>.
15: <style type="text/css" media="all">
--- unknown attribute "MEDIA" for element <style>.
16: <!--
17: body {
18: margin: 0;
19: padding-top: 20px;
20: padding-bottom: 0;
21: padding-left: 0;
22: padding-right: 0;
23:
24: }
25: //-->
26: </style>
27: <style type="text/css">
28: <!--
29: @import url("template/inc_css/frontend.css");
30: //-->
31: </style>
32:
33:</head>
34:<body>
35:<table border="0" cellspacing="0" cellpadding="0" width="962" align="center">
36:<tr>
37:<td colspan="5" style="height:10px;" ><img src="img/leer.gif" width="1" height="10" border="0" alt="" /></td>
--- attribute `STYLE' for <td> is extended markup (use "-x <extension>" to allow this).
--- unknown attribute "/" for element <img>.
38:</tr>
39:<tr>
40:<td valign="top" width="200"><div style="padding:0px 0px 15px 0px; margin:0;">
--- attribute `STYLE' for <div> is extended markup (use "-x <extension>" to allow this).
41:<div class="me_menu">
--- attribute `CLASS' for <div> is extended markup (use "-x <extension>" to allow this).
42:
43:
44:<ul>
45: <li class="sub_no"><a href="index.php?en_news">News</a></li>
--- attribute `CLASS' for <li> is extended markup (use "-x <extension>" to allow this).
46: <li class="sub_no active"><a href="index.php?en_about">About</a></li>
--- attribute `CLASS' for <li> is extended markup (use "-x <extension>" to allow this).
47: <li class="sub_no"><a href="index.php?en_optical">Products · Optical</a></li>
--- attribute `CLASS' for <li> is extended markup (use "-x <extension>" to allow this).
48: <li class="sub_no"><a href="index.php?en_inductive">Products · Inductive</a></li>
--- attribute `CLASS' for <li> is extended markup (use "-x <extension>" to allow this).
49: <li class="sub_no"><a href="index.php?en_capacitive">Products · Capacitive</a></li>
--- attribute `CLASS' for <li> is extended markup (use "-x <extension>" to allow this).
50: <li class="sub_no"><a href="index.php?en_timer">Products · Timer</a></li>
--- attribute `CLASS' for <li> is extended markup (use "-x <extension>" to allow this).
51: <li class="sub_no"><a href="index.php?en_newsletter">Newsletter</a></li>
--- attribute `CLASS' for <li> is extended markup (use "-x <extension>" to allow this).
52: <li class="sub_no"><a href="index.php?en_contact">Contact us</a></li>
--- attribute `CLASS' for <li> is extended markup (use "-x <extension>" to allow this).
53: <li class="sub_no"><a href="index.php?en_details">Xecro Details</a></li>
--- attribute `CLASS' for <li> is extended markup (use "-x <extension>" to allow this).
54: <li class="sub_no"><a href="index.php?en_looking">Looking for Distributors</a></li>
--- attribute `CLASS' for <li> is extended markup (use "-x <extension>" to allow this).
55: <li class="sub_no"><a href="index.php?en_distribution">Distribution</a></li>
--- attribute `CLASS' for <li> is extended markup (use "-x <extension>" to allow this).
56:</ul>
57:</td>
58:<td valign="top" width="12"><img src="img/leer.gif" width="12" height="1" border="0" alt="" /></td>
--- unknown attribute "/" for element <img>.
59:<td valign="top" width="538"><div style="padding:5px 0px 25px 0px; margin:0;"><a name="jump1"></a><div>
--- attribute `STYLE' for <div> is extended markup (use "-x <extension>" to allow this).
--- empty container element <A>.
60:<h1 style="margin:0 0 5px 0;">About us</h1>
--- attribute `STYLE' for <h1> is extended markup (use "-x <extension>" to allow this).
61:
62:
63:</div><div style="margin:20px 0 0 0;padding:0;" class="spaceBeforeCP"></div><table border="0" cellspacing="0" width="1%" cellpadding="0">
--- attribute `STYLE' for <div> is extended markup (use "-x <extension>" to allow this).
--- attribute `CLASS' for <div> is extended markup (use "-x <extension>" to allow this).
--- empty container element <DIV>.
64:<tr><td class="imagelisttd"><img src="content/images/73890dc649e94fa9f49fa8c321d7d22f.png" width="250" height="88" border="0" class="imagelistimg" alt="about.png" /></td></tr>
--- attribute `CLASS' for <td> is extended markup (use "-x <extension>" to allow this).
--- attribute `CLASS' for <img> is extended markup (use "-x <extension>" to allow this).
--- unknown attribute "/" for element <img>.
65:<tr><td><img src="img/leer.gif" width="1" height="5" border="0" alt="" /></td></tr>
--- unknown attribute "/" for element <img>.
66:</table><div style="margin:20px 0 0 0;padding:0;" class="spaceBeforeCP"></div><div class="articleText">Xecro is an independent company. We develop, produce and market industrial sensors and general industrial electronics. Our portfolio is divided into two main areas:</div><table width="100%" cellspacing="10" cellpadding="1" border="0">
--- attribute `STYLE' for <div> is extended markup (use "-x <extension>" to allow this).
--- attribute `CLASS' for <div> is extended markup (use "-x <extension>" to allow this).
--- empty container element <DIV>.
--- attribute `CLASS' for <div> is extended markup (use "-x <extension>" to allow this).
67: <tbody>
--- <tbody> is extended markup (use "-x <extension>" to allow this).
68: <tr>
69: <td>General use sensors built to a very high technical standard in conjunction with first class housing units. Details of these products can be found in the ‘Products’ category.</td>
70: <td>Products which are specially developed in accordance with our customers requirements. These highly specialised systems are not featured in our catalogue.</td>
71: </tr>
72: </tbody>
--- </tbody> is extended markup (use "-x <extension>" to allow this).
73:</table><div class="articleText">We could develop a customised system for your business too - based on the following technology:</div><ul>
--- attribute `CLASS' for <div> is extended markup (use "-x <extension>" to allow this).
74:<li>Optical, dirt resistant sensors</li>
75:<li>Optical, high temperature resistant sensors up to 248°F / 120°C</li>
76:<li>Capacitive high temperature resistant sensors up to 302°F / 150°C</li>
77:<li>Inductive sensors, pressure resistant up to 7250 psi / 500 bar</li>
78:<li>Inductive sensors, high temperature resistant up to 482°F / 250°C</li>
79:<li>Inductive sensors, low temperature resistant down to -112°F / -80°C</li>
80:<li>Inductive sensors, beyond (!) military standard</li>
81:<li>Inductive sensors, certified for aviation use</li>
82:<li>Industrial control equipment</li>
83:<li>General industrial electronic. e.g.<ul>
84:<li>Control units</li>
85:<li>Equipment with Profibus</li>
86:<li>Equipment with DeviceNet</li>
87:<li>...</li>
88:</ul>
89:</ul>
90:<div class="articleText">The special housings are designed in 3D - IGES or STEP documents can be provided in advance to check that the later integration is possible.</div></div></td>
--- attribute `CLASS' for <div> is extended markup (use "-x <extension>" to allow this).
--- </TD> on line 57 seems to overlap <DIV>, opened on line 59.
91:<td valign="top" width="12"><img src="img/leer.gif" width="12" height="1" border="0" alt="" /></td>
--- unknown attribute "/" for element <img>.
92:<td valign="top" width="200" background="img/template/bg_right.jpg"></td>
--- attribute `BACKGROUND' for <td> is extended markup (use "-x <extension>" to allow this).
93:</tr>
94:<tr>
95:<td colspan="5" style="height:10px;" ><img src="img/leer.gif" width="1" height="10" border="0" alt="" /></td>
--- attribute `STYLE' for <td> is extended markup (use "-x <extension>" to allow this).
--- unknown attribute "/" for element <img>.
--- </TR> on line 93 seems to overlap <TD>, opened on line 95.
96:</tr>
97:</table>
98:<div id="VisualModeIndicator">admin: de_webmaster <a href="phpwcms.php?do=articles&p=2&s=1&id=1" target="_blank" title="edit article"><img src="img/symbols/fe_page_edit.gif" width="16" height="16" alt="edit article" border="0" style="vertical-align:middle" /></a></div>
--- attribute `ID' for <div> is extended markup (use "-x <extension>" to allow this).
--- attribute `STYLE' for <img> is extended markup (use "-x <extension>" to allow this).
--- unknown attribute "/" for element <img>.
99:</body>
--- no closing </DIV> seen for <DIV> on line 41.
--- no closing </DIV> seen for <DIV> on line 40.
100:</html>

---
User avatar
Oliver Georgi
Site Admin
Posts: 9918
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

mit der Vailidierung hat das nichts zu tun. Ist ein Problem im Firefox + Apache + der gesendeten Header.

Schau in die index.php und ergänze mal den Teil (um Zeile 176):

Code: Select all

// phpwcms Default header settings
if($phpwcms['cache_timeout']) {
	header('Expires: '.gmdate('D, d M Y H:i:s', time() + $phpwcms['cache_timeout']) .' GMT');
	header('Last-Modified: '.gmdate('D, d M Y H:i:s', empty($row['article_date']) ? time() : $row['article_date']) .' GMT');
	header('Cache-Control: public, max-age='.$phpwcms['cache_timeout']);
	header('Pragma: public');
}
Setze $phpwcms['cache_timeout'] = 0; in der conf.inc.php oder auf einen entsprechend hohen Wert.
Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Post by juergen »

Wird evtl. Zeit, sich nach einem anderen CMS umzusehen. Die ätzend hakeligen Updates und das nicht vorhandene FE-Login sind einfach Mist.
:shock: Oder mal mit dem Hoster reden ;)
ShyGuy
Posts: 158
Joined: Sat 11. Nov 2006, 15:27
Location: DE-Hannover
Contact:

Post by ShyGuy »

Hallo Oliver,

vielen Dank für Deine Mühe! Ich habe in der index.php jetzt folgendes stehen:
// phpwcms Default header settings
//$gmdate_timestamp = time(); // + date('Z');
header('Expires: '.gmdate('D, d M Y H:i:s', time() + $phpwcms['cache_timeout']) .' GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s', empty($row['article_date']) ? time() : $row['article_date']) .' GMT');
header('Cache-Control: public, max-age='.$phpwcms['cache_timeout']);
header('Pragma: public');
if($phpwcms['cache_timeout']) {
header('Expires: '.gmdate('D, d M Y H:i:s', time() + $phpwcms['cache_timeout']) .' GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s', empty($row['article_date']) ? time() : $row['article_date']) .' GMT');
header('Cache-Control: public, max-age='.$phpwcms['cache_timeout']);
header('Pragma: public');
}
und auch in der conf.inc.php die Zeile eingefügt
Es hat leider nichts gebracht.

-> DF6IH
Was soll ich dem Hoster denn sagen ? Sind die Anpassungen, die erforderlich sind so gravierend, dass sie in viel Arbeit ausarten oder die anderen, ebenfalls laufenden, Sites negativ beinflussen.


---
User avatar
Oliver Georgi
Site Admin
Posts: 9918
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

vergleiche mal bitte genau - da ist natürlich keine Verbesserung zu erwarten, ist ja absolut das gleiche

Code: Select all

// phpwcms Default header settings
//$gmdate_timestamp = time(); // + date('Z');
if($phpwcms['cache_timeout']) {
  header('Expires: '.gmdate('D, d M Y H:i:s', time() + $phpwcms['cache_timeout']) .' GMT');
  header('Last-Modified: '.gmdate('D, d M Y H:i:s', empty($row['article_date']) ? time() : $row['article_date']) .' GMT');
  header('Cache-Control: public, max-age='.$phpwcms['cache_timeout']);
  header('Pragma: public');
} 
// phpwcms Default header settings
//$gmdate_timestamp = time(); // + date('Z');
header('Expires: '.gmdate('D, d M Y H:i:s', time() + $phpwcms['cache_timeout']) .' GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s', empty($row['article_date']) ? time() : $row['article_date']) .' GMT');
header('Cache-Control: public, max-age='.$phpwcms['cache_timeout']);
header('Pragma: public');

if($phpwcms['cache_timeout']) {
header('Expires: '.gmdate('D, d M Y H:i:s', time() + $phpwcms['cache_timeout']) .' GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s', empty($row['article_date']) ? time() : $row['article_date']) .' GMT');
header('Cache-Control: public, max-age='.$phpwcms['cache_timeout']);
header('Pragma: public');
}
Das fettgedruckte weg!!!

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
ShyGuy
Posts: 158
Joined: Sat 11. Nov 2006, 15:27
Location: DE-Hannover
Contact:

Post by ShyGuy »

Jetzt bin ich platt - funktioniert als ob nie etwas gewesen wäre...
Wenn Du die Zeit findest, wäre es schön zu wissen, was da jetzt gemacht wurde !?
Die Passage hatte ich angehängt, weil Du geschrieben hast, ich solle den Text ergänzen. :oops:

Vielen Dank !!!


---
User avatar
Oliver Georgi
Site Admin
Posts: 9918
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Prüfung, ob der Cache Timeout > 0 ist - das if().

Wenn dieser nämlich = 0 ist, scheint Mozilla hiermit nicht klar zu kommen:
header('Cache-Control: public, max-age=0);

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

wäre es so nicht etwas 'sauberer' ?

Code: Select all

// phpwcms Default header settings
header('Expires: '.gmdate('D, d M Y H:i:s', time() + $phpwcms['cache_timeout']) .' GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s', empty($row['article_date']) ? time() : $row['article_date']) .' GMT');
$phpwcms['cache_timeout'] ? header('Cache-Control: public, max-age='.$phpwcms['cache_timeout']) : header('Cache-Control: public, max-age=1');
header('Pragma: public');
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
Post Reply