Page 1 of 3

Custom css seems unreachable after upgrade

Posted: Tue 24. Nov 2020, 12:46
by hal
Hi all,

I have recently upgraded a site form stone age (phpwcms Version Information - Unable to use socket functions.) to the newest release.

Most things look fine, but for some reason the custom css files seemingly can not be reached anymore, neither by the reference in meta tags nor by trying the direct link in browser. Check this:

Old version of site (still running):
http://www.michaelsuttner.de/template/i ... ontend.css
New version (with some random subdomain for trying the update):
http://misu.zokktube.de/template/inc_cs ... ontend.css

When I link to the default css it DOES indeed work - though not any custom on existing....

I suspect that it's some little thing I missed - but am clueless what it could be.
Any help would be greatly appreciated

Re: Custom css seems unreachable after upgrade

Posted: Tue 24. Nov 2020, 13:26
by Old Boy
Es gibt eine Fehlermeldung, die besagt, dass die CSS Datei nicht gefunden wurde:

Code: Select all

[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (ms_frontend.css, line 0)
Prüf doch mal, wo du deine CSS Datei abgelegt hast!

Re: Custom css seems unreachable after upgrade

Posted: Tue 24. Nov 2020, 13:43
by Old Boy
es könnte natürlich auch die Pfadangabe in der config-Datei falsch sein ... su sagtest etwas von Subdomain ...

Re: Custom css seems unreachable after upgrade

Posted: Tue 24. Nov 2020, 13:45
by Old Boy
Oder du hast dich beim Namen vertan ... MS_frontend.css ist nicht ms_frontend.css

Re: Custom css seems unreachable after upgrade

Posted: Tue 24. Nov 2020, 14:16
by Old Boy
Im Haupt-Template - im Feld für die zu verwendeten CSS-Dateien - die richtige css-Datei markiert ... wenn sie denn überhaupt in dem Ordner ist?!

Re: Custom css seems unreachable after upgrade

Posted: Tue 24. Nov 2020, 15:38
by hal
Also.. vielen Dank schon mal für die Antworten...

Bzgl. Pfad - hier nochmal die links zur Standard frontend.css:
http://misu.zokktube.de/template/inc_css/frontend.css
http://www.michaelsuttner.de/template/i ... ontend.css

D.h. Pfandangabe in der config muss demzufolge stimmen...

Klar wäre jetzt naheliegend, dass die MS_frontend.css nicht im Verzeichnis template/inc_css liegt - tut sie aber (screenshot anbei)!

Auch das mit Lower und Upper case ist mir schon eingefallen - auch hier passt es - Datei heisst tatsächlich MS_frontend.css (siehe auch hierzu screenshot). Hab sie testweise klein geschrieben - entsprechend auch im link natürlich - geht auch dann nicht.

Im css Feld im template ist sie entsprechend markiert (Zur Auswahl angezeigt - das sollte auch noch mal drauf hindeuten, dass sie im richtigen Verzeichnis liegt... allerdings sollte, selbst wenn sie dort nicht angeleuchtet wäre, der direkte link funktionieren...)

Wenn ich im template die standard frontend.css hinterlege funktioniert es.

Als asoluter php-programmier-nichtswisser gesagt: Für mich sieht es so aus, als ob in irgendeiner Konfigurations Datei, oder einer zum Rendern der Seite, sowas wie: 'Custom css ausschliessen' eingetragen wäre. Allerdings weiss ich zu wenig von php um dieser Frage nachzugehen.

Image

Re: Custom css seems unreachable after upgrade

Posted: Tue 24. Nov 2020, 15:54
by Old Boy
wie und wo hast du die MS_frontend.css denn eingebunden?

Re: Custom css seems unreachable after upgrade

Posted: Tue 24. Nov 2020, 16:08
by hal
Z.B. im Haupttemplate, auf dem die meisten Bereiche der Seite laufen:

Image

Re: Custom css seems unreachable after upgrade

Posted: Tue 24. Nov 2020, 16:22
by Old Boy
Wenn du probeweise mal die frontend.css aktivierst ... wird die denn gefunden und umgesetzt?

Re: Custom css seems unreachable after upgrade

Posted: Tue 24. Nov 2020, 16:28
by Old Boy
Hast du in deiner config Datei denn sowas drin stehen?

Code: Select all

 
 // site values
$phpwcms['site_ssl_mode']   = 1;     // turns the SSL Support of WCMS on (1) or off (0), default value 0
$phpwcms['site_ssl_url']    = 'https://'.$_SERVER['SERVER_NAME'].'/';   //'';   // URL assigned to the SSL Certificate. Recommend 'https://'.$_SERVER['SERVER_NAME'].'/'
 

Re: Custom css seems unreachable after upgrade

Posted: Tue 24. Nov 2020, 16:38
by hal
Das in der neuen vom Update:

Code: Select all

// site values
$phpwcms['site'] = ''; // leave empty to auto configure or try 'http://'.$_SERVER['SERVER_NAME'].'/'
$phpwcms['site_ssl_mode'] = 0; // turns the SSL Support of WCMS on (1) or off (0), default value 0
$phpwcms['site_ssl_url'] = ''; // URL assigned to the SSL Certificate. Recommend 'https://'.$_SERVER['SERVER_NAME'].'/'
$phpwcms['site_ssl_port'] = 443; // The Port on which you SSL Service serve the secure Sites, default SSL port is 443
Und das in der alten:

Code: Select all

// site values
$phpwcms['site']              = 'http://'.$_SERVER['SERVER_NAME'].'/'; // recommend 'http://'.$_SERVER['SERVER_NAME'].'/'
$phpwcms['site_ssl_mode']     = 0; // turns the SSL Support of WCMS on (1) or off (0), default value 0
$phpwcms['site_ssl_url']      = ''; // URL assigned to the SSL Certificate. Recommend 'https://'.$_SERVER['SERVER_NAME'].'/'
$phpwcms['site_ssl_port']     = 443; // The Port on which you SSL Service serve the secure Sites, default SSL port is 443

Re: Custom css seems unreachable after upgrade

Posted: Tue 24. Nov 2020, 16:39
by Old Boy
dann ändere mal die Neue!

Re: Custom css seems unreachable after upgrade

Posted: Tue 24. Nov 2020, 16:45
by Old Boy
hast du die neue .htaccess im Hauptordner der Anwendung verwendet!

Re: Custom css seems unreachable after upgrade

Posted: Tue 24. Nov 2020, 17:03
by hal
hast du die neue .htaccess im Hauptordner der Anwendung verwendet!
Ja.

Die alte hat folgende Einträge, die die neue nicht hat:

Code: Select all

	# Ignore
	RewriteRule ^(include|img|template|picture|filearchive|content|robots\.txt|favicon\.ico)($|/) - [L]
	RewriteRule ^index\.php$ - [L]
Und in dieser Zeile unterscheiden sie sich:

Code: Select all

Alt: RewriteRule ^(.+)\.html$ ./index.php?$1&%{QUERY_STRING}
Neu: RewriteRule ^(.+)/?$ ./index.php?$1&%{QUERY_STRING}
Die neue hat folgenden Eintrag, die die alte nicht hat:

Code: Select all

RewriteRule ^(.+) - [PT,L]
Die alte htaccess statt der neuen zu verwenden hat nur bewirkt, dass alles 'forbidden' war.


Die Änderung der ersten Zeile in der Config (die erste aus dem Viererblock in meiner letzten Nachricht - die einzige, die sich unterschied) hat nichts bewirkt.

Re: Custom css seems unreachable after upgrade

Posted: Tue 24. Nov 2020, 17:11
by Old Boy
Die müssen beide rein:

Code: Select all

 // site values
$phpwcms['site_ssl_mode']   = 1;     // turns the SSL Support of WCMS on (1) or off (0), default value 0
$phpwcms['site_ssl_url']    = 'https://'.$_SERVER['SERVER_NAME'].'/';   //'';   // URL assigned to the SSL Certificate. Recommend 'https://'.$_SERVER['SERVER_NAME'].'/'