Page 1 of 2

serendipity.css error in 1.6-alpha3

Posted: Sat Jan 08, 2011 8:13 pm
by yellowled
Testing some stuff in a 1.6-alpha3, I realized serendipity.css is not generated on my localhost devblog. http://localhost/serendipity/serendipity.css doesn't exist, neither with my current test template nor BP or default. This is a fresh install, and I can't recall doing anything different or setting any config option different than in lots of S9y installs before. Permissions are correct, too.

Bug in 1.6-alpha3 or where do I start looking?

YL

Re: serendipity.css error in 1.6-alpha3

Posted: Sat Jan 08, 2011 8:56 pm
by garvinhicking
Hi!

Check rewrite rules, or maybe your server doesn'T support it and you should disable url rewriting?

Regards,
Garvin

Re: serendipity.css error in 1.6-alpha3

Posted: Sat Jan 08, 2011 9:06 pm
by yellowled
garvinhicking wrote:Check rewrite rules, or maybe your server doesn'T support it and you should disable url rewriting?
Since /admin/ works perfectly fine, I guess it's safe to say rewriting works in general. :) Also, other CSS files included via serendipity_getFile work prefectly fine, as well as the newly added jQuery. It's only serendipity.css which isn't included correctly.

The passages of my .htaccess I consider to be relevant for this:

Code: Select all

RewriteEngine On
RewriteBase /devblog/
[...]
RewriteRule ^(serendipity\.css|serendipity_admin\.css) index.php?url=/$1 [L,QSA]
RewriteRule ^index\.(html?|php.+) index.php?url=index.html [L,QSA]
[...]
#RewriteCond %{REQUEST_URI} !-U
RewriteRule (.*\.html?) index.php?url=/$1 [L,QSA]
Or do you need the complete .htaccess?

YL

Re: serendipity.css error in 1.6-alpha3

Posted: Sat Jan 08, 2011 9:32 pm
by yellowled
Keeps getting better. I just now updated to the latest svn snapshot. After uploading the files, logging into the backend or accessing the frontend gives me:

Code: Select all

Fatal error: Call to undefined method Smarty::setDeprecationNotices() in /var/www/devblog/include/functions_smarty.inc.php on line 923
YL

Re: serendipity.css error in 1.6-alpha3

Posted: Sat Jan 08, 2011 11:38 pm
by garvinhicking
Hi!

The smarty thing is now fixed. Its code that will be required for smarty3 migration and currently in the works :)

About the CSS thing. That's quite strange. The change was committed due to this thread:

http://board.s9y.org/viewtopic.php?f=4& ... ss+rewrite

you might want to try to rever the change and add the $ back at the end of the rule and see if that works? Whats your current setup for apache etc? We might be able to turn RewriteLog on for you to see what's happening...

Regards,
Garvin

Re: serendipity.css error in 1.6-alpha3

Posted: Sat Jan 08, 2011 11:39 pm
by garvinhicking
Hi!

Also, you might want to try to open index.php?url=/serendipity.css to see if that generates the CSS for you? Because that's what the redirect should actually do... (like http://blog.koehntopp.de/index.php?url=/serendipity.css)

Regards,
Garvin

Re: serendipity.css error in 1.6-alpha3

Posted: Sun Jan 09, 2011 12:00 pm
by yellowled
garvinhicking wrote:Also, you might want to try to open index.php?url=/serendipity.css to see if that generates the CSS for you?
Yes, it does.
garvinhicking wrote:you might want to try to rever the change and add the $ back at the end of the rule and see if that works?
Yes, it does.
garvinhicking wrote:Whats your current setup for apache etc? We might be able to turn RewriteLog on for you to see what's happening...
If you still need that, could you please be a little more specific? I have no idea what setup info you might refer to. :)

YL

Re: serendipity.css error in 1.6-alpha3

Posted: Sun Jan 09, 2011 12:19 pm
by kleinerChemiker
Wasn't there a problem with a german webhoster with serendipity.css? 1&1 I think? There was only a char at the beginning to change or so.

edit: found it: http://board.s9y.org/viewtopic.php?p=10420903#p10420903

Re: serendipity.css error in 1.6-alpha3

Posted: Sun Jan 09, 2011 7:46 pm
by garvinhicking
Hi!
kleinerChemiker wrote:Wasn't there a problem with a german webhoster with serendipity.css? 1&1 I think? There was only a char at the beginning to change or so.

edit: found it: http://board.s9y.org/viewtopic.php?p=10420903#p10420903
Yes, I referred to that already. YellowLED has this change active, and now on his setup it doesn't work anymore. So if he adds the $ back again (which we removed) it breaks for him.

Well, I don't understand this.

Regards,
Garvin

Re: serendipity.css error in 1.6-alpha3

Posted: Sun Jan 09, 2011 9:29 pm
by yellowled
garvinhicking wrote:Well, I don't understand this.
I'm not an expert on .htaccess or RegExps, but shouldn't this:

Code: Select all

RewriteRule ^(serendipity\.css|serendipity_admin\.css) index.php?url=/$1 [L,QSA]
target serendipity.css.php as well while the same rule with a $ at the end only targets serendipity.css? Maybe that's causing the issue?

YL

Re: serendipity.css error in 1.6-alpha3

Posted: Sun Jan 09, 2011 9:41 pm
by garvinhicking
Hi!

Exactly, and I don't know why mod_rewrite behaves like this. Maybe you can raise RewriteLogLevel 9 and set RewriteLog to see what the rule chain looks like?

Maybe this:

Code: Select all

RewriteRule ^(serendipity\.css|serendipity_admin\.css).* index.php?url=/$1 [L,QSA]
could also work?

Regards,
Garvin

Re: serendipity.css error in 1.6-alpha3

Posted: Sun Jan 09, 2011 10:12 pm
by yellowled
garvinhicking wrote:Maybe this:

Code: Select all

RewriteRule ^(serendipity\.css|serendipity_admin\.css).* index.php?url=/$1 [L,QSA]
could also work?
Nope, doesn't use the serendipity.css with this rule. I'm gonna need some time to figure out how to raise the log level. :)

YL

Re: serendipity.css error in 1.6-alpha3

Posted: Sun Jan 09, 2011 10:35 pm
by yellowled
So at http://dl.dropbox.com/u/691134/rewrite.log.txt you find a copy of my rewrite.log, log level 9, already grepped for "css" to make it shorter. The first lines are with the dollar sign at the end, the later line without it.

Hope this helps. If not: Tell me what you need. :)

YL

Re: serendipity.css error in 1.6-alpha3

Posted: Mon Jan 10, 2011 9:14 am
by garvinhicking
Hi!

Hm, I don't really understand the log; what I read there, serendipity.css does properly get rewritten to index.php?url=/serendipity.css.php...

I also tested it on my blog, the rewrite thing works here flawlessly. Running Apache/2.2.16 (Debian) mit the modules: mod_status.c, mod_ssl.c, mod_setenvif.c, mod_rewrite.c, mod_reqtimeout.c, mod_php5.c, mod_negotiation.c, mod_mime.c, mod_info.c,
mod_env.c, mod_dir.c, mod_deflate.c, mod_cgi.c, mod_autoindex.c, mod_authz_user.c, mod_authz_host.c, mod_authz_groupfile.c,
mod_authz_default.c, mod_authn_file.c, mod_auth_basic.c, mod_alias.c, mod_so.c, http_core.c, prefork.c, mod_logio.c,
mod_log_config.c, core.c

Regards,
Garvin

Re: serendipity.css error in 1.6-alpha3

Posted: Mon Jan 10, 2011 2:11 pm
by yellowled
Apache 2.2.16, Ubuntu 10.10 Maverick Meerkat

Code: Select all

Loaded Modules:
 core_module (static)
 log_config_module (static)
 logio_module (static)
 mpm_prefork_module (static)
 http_module (static)
 so_module (static)
 alias_module (shared)
 auth_basic_module (shared)
 authn_file_module (shared)
 authz_default_module (shared)
 authz_groupfile_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 cgi_module (shared)
 deflate_module (shared)
 dir_module (shared)
 env_module (shared)
 expires_module (shared)
 headers_module (shared)
 mime_module (shared)
 mxslt_module (shared)
 negotiation_module (shared)
 php5_module (shared)
 reqtimeout_module (shared)
 rewrite_module (shared)
 setenvif_module (shared)
 status_module (shared)
 userdir_module (shared)
Syntax OK
YL