Nach Update auf R438 werden keine Inhalte mehr dargestellt

Alle installationsbezogenen Probleme hier posten. Dies sollte die erste Anlaufstelle bei Problemen sein.
Post Reply
bewi0815
Posts: 4
Joined: Mon 13. Feb 2012, 13:06

Nach Update auf R438 werden keine Inhalte mehr dargestellt

Post by bewi0815 »

Hallo,

nach Update auf die Version 1.5 (r438) werden bei mir keine Inhalte mehr dargestellt, ich bekomme nur einen weißen Bildschirm dargestellt. Auch der Aufruf von .php Seiten funktioniert nicht mehr, d.h. kein Login in das Backend mehr möglich. Kann das evtl. mit der neuen Rewritefunktion zu tun haben?
Das Update wurde auf die Releaseversion r412 angewendet.

PS: Den Patch für die Datenbank habe ich zwischenzeitlich gemacht!

Danke für jede Anregung, die mir bei der weiteren Fehlersuche behilflich ist.
Last edited by bewi0815 on Tue 14. Feb 2012, 10:39, edited 1 time in total.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Nach Update auf R438 wird kein Inhalte mehr dargestellt

Post by flip-flop »

Hallo,

wenn es an der Rewritefunktion liegen sollte, schalte diese Funktion testweise in der config ab und setze die .htaccess außer Gefecht.

Was passiert denn beim Aufruf der login.php? Etwa auch eine weiße Seite?

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
bewi0815
Posts: 4
Joined: Mon 13. Feb 2012, 13:06

Re: Nach Update auf R438 werden keine Inhalte mehr dargestel

Post by bewi0815 »

Hallo Flip-Flop,

die .htaccess habe ich kurzfristig einmal deaktiviert (umbenannt) und die Parameter in der config.inc.php auf folgende Werte gesetzt:
$phpwcms['rewrite_url'] = 0;
$phpwcms['rewrite_ext'] = '';
Ich hatte in der .htaccess bereits die Anpassung an die Rewrite-Funktion gesetzt, aber daran lag es ja nicht (siehe oben).
# These settings are recommend
# Check phpinfo() before try these
# register_globals ON
# php_flag magic_quotes_gpc Off
# php_flag magic_quotes_runtime Off
# php_flag register_globals Off

#<IfModule mod_rewrite.c>

# Check that you have set Options FollowSymLinks
# and right Allow
# RewriteEngine On

# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d

# maybe you need this
# DirectoryIndex index.html index.php


# Default ReWrite settings for phpwcms
# ====================================
# RewriteBase /mysubdir

# Ignore
RewriteRule ^(include|img|template|picture|filearchive|content)/ - [L]

# Rewrite 0.0.0.0.0.0.phtml => index.php?id=0.0.0.0.0.0
RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.phtml$ index.php?id=$1,$2,$3,$4,$5,$6

# Rewrite mypage.html => index.php?mypage
RewriteRule ^(.+)\.phtml$ index.php?$1

#</IfModule>

#Sometimes neccessary to add those
#
#AddType application/x-javascript .js
#AddType text/css .css
Wenn ich die ./setup/setup.php aufrufe, kommt auch der Setup-Bildschirm, aber beim Aufruf von >>Upgrade existing installation<< bekomme ich den beschriebenen weißen Bildschirm und es passiert nichts. Ich habe jetzt das Browser-Plugin HTML-Validator installiert, welches mir in der upgrade.php folgenden Fehler meldet:
OpenSP: End of document in prolog
Cause: xml prolog at the beginning of the document was not closed, or the file is empty.
Example: Good

<?xml version="1.0" encoding="UTF-8"?>
Good

<?xml version="1.0" encoding="UTF-8"
Solution: Make sure you have closed the prolog

References:
W3 validator: http://validator.w3.org/
PHP-Version: 5.1.2
MySQL-Version: 5.0.26
PHP-Settings: Register-Globals Off, Safe_Mode Off (sicherheitskritisch, ich weiß), GD2

Noch irgendeine Idee, was es noch sein könnte? Danke für jede Rückmeldung.

Liebe Grüsse
Last edited by bewi0815 on Tue 14. Feb 2012, 11:48, edited 3 times in total.
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: Nach Update auf R438 wird kein Inhalte mehr dargestellt

Post by juergen »

Oh, nix durcheinander schmeissen. Die .htaccess arbeitet für sich alleine und ist übrigens eine versteckte Datei

Die config Einstellungen betrifft die Art wie Links im System geschrieben werden.

Also : .htaccess ist im Linux System eine versteckte Datei. ALLE ! Direktiven ausser Kraft setzen oder eine leere Datei drüber kopieren. Wenn es dann nicht funktioniert kann man weiter sehen.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Nach Update auf R438 wird kein Inhalte mehr dargestellt

Post by flip-flop »

Zur .htaccess:
Ohne ein

Code: Select all

RewriteEngine On
wird es nicht funktionieren.

"... außer Kraft setzen" würde ich die .htaccess immer durch einfaches Umbenennen wenn möglich oder wenn versteckt, siehe Jürgens Vorschlag.

Mich beschleicht allerdings das komische Gefühl, dass mit deiner conf.inc.php irgendetwas nicht stimmt. Vielleicht ein falsches Zeichen gesetzt oder ein Zeichen vergessen?
Die Datei folgt der php Notation!

Wenn ich Updates mache oder auch neu installiere nehme ich grundsätzlich die dist.conf.inc.php, vergleiche diese Datei mit der alten conf.inc.php bzw. kopiere diese nach conf.inc.php und editiere dann die Datei wenn notwendig.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
Oliver Georgi
Site Admin
Posts: 9888
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Nach Update auf R438 wird kein Inhalte mehr dargestellt

Post by Oliver Georgi »

  • die .htaccess einfach umbenennen – z.B. in _.htaccess
  • welchen Datenbankpatch? Normalerweise einfach einmal die login.php aufrufen.
  • phpwcms schreibt kein <?xml version="1.0" encoding="UTF-8"?> – klingt also, als ob Du Dir etwas ins Template oder Script gemogelt hast.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
bewi0815
Posts: 4
Joined: Mon 13. Feb 2012, 13:06

Re: Nach Update auf R438 werden keine Inhalte mehr dargestel

Post by bewi0815 »

Hallo,

danke erst einmal für die zahlreichen Antworten. Bei dem betroffenen System handelt es sich um unser Intranet, ich habe also Vollzugriff auf alle Dateien, auch auf die Datenbank. Die .htaccess habe ich in BAK__.htaccess umbenannt, sie sollte somit ausser Gefecht gesetzt sein.

Beim Aufruf von login.php bekomme ich leider auch nur einen weißen Bildschirm angezeigt, ein Anmelden ins Backend ist somit leider nicht mehr möglich.
Ich poste euch einmal unsere config.inc.php.
<?php
/*************************************************************************************
Copyright notice

(c) 2002-2008 Oliver Georgi (oliver@phpwcms.de) // All rights reserved.

This script is part of PHPWCMS. The PHPWCMS web content management system 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.

The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html
A copy is found in the textfile GPL.txt and important notices to the license
from the author is found in LICENSE.txt distributed with these scripts.

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.

This copyright notice MUST APPEAR in all copies of the script!
*************************************************************************************/
// phpwcms base values -> needed in any document

// database values
$phpwcms['db_host'] = 'XXXX';
$phpwcms['db_user'] = 'YYYY';
$phpwcms['db_pass'] = '***';
$phpwcms['db_table'] = 'XXXYYY';
$phpwcms['db_prepend'] = '';
$phpwcms['db_pers'] = 1;
$phpwcms['db_charset'] = 'utf-8';
$phpwcms['db_collation'] = 'utf8_bin';
$phpwcms['db_version'] = 50026;

// site values
$phpwcms['site'] = 'http://zzzzzzzzz/';
$phpwcms['admin_name'] = 'Webmaster ZZZZZZZZZZ';
$phpwcms['admin_user'] = 'webmaster';
$phpwcms['admin_pass'] = '****'; //MD5
$phpwcms['admin_email'] = 'webmaster@***.de';

// paths
$phpwcms['DOC_ROOT'] = $_SERVER['DOCUMENT_ROOT'];
$phpwcms['root'] = '';
$phpwcms['file_path'] = 'filearchive';
$phpwcms['templates'] = 'template';
$phpwcms['content_path'] = 'content';
$phpwcms['cimage_path'] = 'images';
$phpwcms['ftp_path'] = 'upload';

// content values
$phpwcms['file_maxsize'] = 52428800; //Bytes (50 x 1024 x 1024)
$phpwcms['content_width'] = 538; //max width of the article content column - important for rendering multi column images
$phpwcms['img_list_width'] = 100; //max with of the list thumbnail image
$phpwcms['img_list_height'] = 75; //max height of the list thumbnail image
$phpwcms['img_prev_width'] = 538; //max width of the large preview image
$phpwcms['img_prev_height'] = 538; //max height of the large preview image
$phpwcms['max_time'] = 1800; //nach wieviel Sekunden soll automatischer logout erfolgen? 1800 Sekunden=30Minuten

// other stuff
$phpwcms['compress_page'] = 0; //wenn 1 = Seite komprimieren, 0 = Kompresion aus
$phpwcms['imagick'] = 0; //if 0 = GD, 1 = ImageMagick convert, 2 = ImageMagick 4.2.9
$phpwcms['imagick_path'] = ''; //Path to ImageMagick
$phpwcms['use_gd2'] = 1; //if 0 = GD1, 1 = GD2
$phpwcms['rewrite_url'] = 0; //whether URL should be rewritable
$phpwcms['rewrite_ext'] = '';
$phpwcms['wysiwyg_editor'] = 2; //0 = no wysiwyg editor, 2 = FCKeditor, 4 = spaw
$phpwcms['phpmyadmin'] = 0; //enable/disable phpmyadmin in Admin section
$phpwcms['default_lang'] = 'de'; //default language
$phpwcms['DOCTYPE_LANG'] = ''; //by default same as $phpwcms['default_lang'], but can be injected by whatever you like
$phpwcms['allowed_lang'] = array('de', 'en'); //array of allowed languages
$phpwcms['charset'] = 'iso-8859-1'; //default charset 'iso-8859-1'
$phpwcms['allow_remote_URL'] = 0; //0 = no remote URL in {PHP:...} replacement tag allowed, 1 = allowed
$phpwcms['gt_mod'] = 1; //0 = Graphical Text MOD disabled, 1 = enabled
$phpwcms['jpg_quality'] = 85; //JPG Quality Range 25-100
$phpwcms['sharpen_level'] = 1; //Sharpen Level - only ImageMagick: 0, 1, 2, 3, 4, 5 -- 0 = no, 5 = extra sharp
$phpwcms['allow_ext_init'] = 1; //allow including of custom external scripts at frontend initialization
$phpwcms['allow_ext_render'] = 1; //allow including of custom external scripts at frontend rendering
$phpwcms['cache_enabled'] = 0; //cache On/Off - 1 = caching On / 0 = caching Off (default)
$phpwcms['cache_timeout'] = 14400; //default cache timeout setting in seconds - 0 = caching Off
$phpwcms['imgext_disabled'] = ''; //comma seperated list of imagetypes which should not be handled 'pdf,ps'
$phpwcms['multimedia_ext'] = 'aif,aiff,mov,movie,mp3,mpeg,mpeg4,mpeg2,wav,swf,swc,ram,ra,wma,wmv,avi,au,midi,moov,rm,rpm,mid,midi'; //comma seperated list of file extensiosn allowed for multimedia
$phpwcms['recipient_count'] = 0;
$phpwcms['inline_download'] = 1; //try to open download document in browser window
$phpwcms['form_tracking'] = 1; //make a db entry for each form
$phpwcms['formmailer_set'] = array('allow_send_copy' => 0, 'global_recipient_email' => 'form@localhost'); //for better security handling
$phpwcms['allow_cntPHP_rt'] = 1; //allow PHP replacement tags and includes in content parts
$phpwcms['GETparameterName'] = 'id'; //must have a minimum of 2 chars
$phpwcms['BOTS'] = array('googlebot', 'msnbot', 'ia_archiver', 'altavista', 'slurp', 'yahoo', 'jeeves', 'teoma', 'lycos', 'crawler');
$phpwcms['mode_XHTML'] = 1; // Doctype: 1 = XHTML 1.0 Transitional, 0 = HTML 4.01 Transitional, 2 = XHTML 1.0 Strict
$phpwcms['header_XML'] = 0; // Content Type: 1 = application/xhtml+xml, 0 = text/html
$phpwcms['IE_htc_hover'] = 1; // enables HTC Hover for IE < 7 - has no effect in other browsers
$phpwcms['IE_htc_png'] = 1; // enables HTC pngbehavior for IE < 7 - has no effect in other browsers
$phpwcms['timezone_GMT'] = '+1';
$phpwcms['Bad_Behavior'] = 1; // enables spam blocking by Bad Behavior
$phpwcms['wysiwyg_template'] = array( 'FCKeditor' => 'phpwcms_basic,phpwcms_default,Default,Basic', 'SPAW2' => 'standard,all,mini' );
$phpwcms['GET_pageinfo'] = 0; // will add "&pageinfo=/cat1/cat2/page-title.htm" based on the breadcrumb information for each site link
$phpwcms['version_check'] = 1; // checks for current release of phpwcms online
$phpwcms['SESSION_FEinit'] = 0; // set 1 to enable sessions in frontend, 0 to disable sessions in frontend
$phpwcms['Login_IPcheck'] = 0;
$phpwcms['frontend_edit'] = 0; // enable content specific direct links - linking direct into the backend
$phpwcms['gd_memcheck_off'] = 0; // disable GD php memory check before resize an image
$phpwcms['enable_chat'] = 0; // enable or disable chat function, by default it is disabled - not recommend anymore to use it
$phpwcms['enable_messages'] = 0; // enable or disable internal messags, by default it is disabled - not recommend anymore to use it
$phpwcms['enable_seolog'] = 1; // enable or disable logging of search engine referrer data
$phpwcms['i18n_parse'] = 1; // enable|disable browser based language parser - all @@Text@@ will be parsed and checked for translation/var based replacement
$phpwcms['i18n_complex'] = 0; // enable|disable the way browser language setting should be used, false = the easier way (always 2 chars "en"), true - "en-gb"...

// dynamic ssl encryption engine
$phpwcms['site_ssl_mode'] = '0'; // tuns the SSL Support of WCMS on(1) or off (0) DEFAULT '0'
$phpwcms['site_ssl_url'] = ''; // URL assigned to the SSL Certificate. DON'T add a slash at the End! Exp. 'https://www.yourdomainhere.tld'
$phpwcms['site_ssl_port'] = '443'; // The Port on which you SSL Service serve the secure Sites. Servers DEFAULT is '443'

// smtp values
$phpwcms['SMTP_FROM_EMAIL'] = 'ZXZXZXZXZX';
$phpwcms['SMTP_FROM_NAME'] = 'Webmaster ZZZZZZZZZZ';
$phpwcms['SMTP_HOST'] = 'YZYZYZYZ';
$phpwcms['SMTP_PORT'] = 25;
$phpwcms['SMTP_MAILER'] = 'sendmail';
$phpwcms['SMTP_AUTH'] = 1;
$phpwcms['SMTP_USER'] = '#####';
$phpwcms['SMTP_PASS'] = '****';

define('PHPWCMS_INCLUDE_CHECK', true);

?>
Danke auf alle Fälle schon einmal für Eure Unterstützung.

PS: Wenn alles nichts hilft, werde ich es einmal mit einem Downgrade auf die alte Version (r412) versuchen.
Last edited by bewi0815 on Tue 14. Feb 2012, 11:47, edited 1 time in total.
User avatar
Oliver Georgi
Site Admin
Posts: 9888
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Nach Update auf R438 werden keine Inhalte mehr dargestel

Post by Oliver Georgi »

prüfen, was als PHP Fehler ausgegeben wird. Dann findest Du auch die Ursache. Die Config hilft leider überhaupt nicht, da auch gnadenlos veraltet. Zwar typischerweise kein Problem, aber…

Wieso wurde das Update nicht auf einer Kopie angewendet?
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
bewi0815
Posts: 4
Joined: Mon 13. Feb 2012, 13:06

Re: Nach Update auf R438 werden keine Inhalte mehr dargestel

Post by bewi0815 »

Hallo,

wie heißt ein Sprichwort doch so schön "aus Schaden wird man klug", ich gelobe hiermit Besserung.
Die nächsten Updates werden zuerst auf einem Backup gemacht, versprochen. :oops:

PS: Das Downgrade auf r412 hat funktioniert, jetzt geht wieder alles und mein Chef ist glücklich (ich natürlich auch :D ).

Nochmals danke an alle, die sich mit meinem Fehler beschäftigt haben. Von unserem Internet lasse ich lieber erst einmal die Finger, bis ich ein sauberes Update mit unserem Intranet hin bekomme.

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

Re: Nach Update auf R438 werden keine Inhalte mehr dargestel

Post by flip-flop »

Ich habe mir erlaubt einige Stellen in der oben gezeigten config zu editieren, einige Angaben müssen hier nicht erscheinen.


Ich würde eine saubere r438 installieren und dann die CP Templates und Scripte in dieser Installation nachführen.
Hier eine brauchbare Anleitung zu einer parallelen Installation: http://www.phpwcms-howto.de/wiki/doku.p ... ion/update

Ich habe gerade an einem Live System ein Update gemacht, kein Problem. Natürlich habe ich auch den ganzen alten Kram rausgeschmissen um Seiteneffekte zu vermeiden.
Lokal läuft die r438 ebenfalls bestens.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
Oliver Georgi
Site Admin
Posts: 9888
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Nach Update auf R438 werden keine Inhalte mehr dargestel

Post by Oliver Georgi »

flip-flop wrote:Ich habe gerade an einem Live System ein Update gemacht, kein Problem. Natürlich habe ich auch den ganzen alten Kram rausgeschmissen um Seiteneffekte zu vermeiden. Lokal läuft die r438 ebenfalls bestens.
dito – aber noch einen kleinen Fehler gefunden in Verbindung mit ImageMagick, neuerem Setting und Thumbnailgenerierung für Dateidownloads und PDF/EPS etc.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Post Reply