The Serendipity Handbook

You can now read the (german) handbook here: PDF - https://github.com/s9y/Book (LaTeX source).

Forum-Information

Before posting about errors, make sure that the answer cannot already be found in our FAQ or by searching this forum!
Posting is restricted to registered users (registering is free and simple!) due to recent spam attacks. When having trouble with this board, contact garvin(-at)s9y(-dot)org.

Board index Bugs serendipity.css error in 1.6-alpha3

Found a bug? Tell us!!
User avatar
yellowled
Regular
 
Posts: 4887
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany

Postby yellowled » Sat Jan 08, 2011 9:13 pm

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

User avatar
garvinhicking
Core Developer
 
Posts: 28954
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Sat Jan 08, 2011 9:56 pm

Hi!

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

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
yellowled
Regular
 
Posts: 4887
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany

Postby yellowled » Sat Jan 08, 2011 10:06 pm

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

User avatar
yellowled
Regular
 
Posts: 4887
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany

Postby yellowled » Sat Jan 08, 2011 10:32 pm

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

User avatar
garvinhicking
Core Developer
 
Posts: 28954
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Sun Jan 09, 2011 12:38 am

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:

viewtopic.php?f=4&t=16668&start=15&hilit=serendipity.css+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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
garvinhicking
Core Developer
 
Posts: 28954
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Sun Jan 09, 2011 12:39 am

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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
yellowled
Regular
 
Posts: 4887
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany

Postby yellowled » Sun Jan 09, 2011 1:00 pm

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

User avatar
kleinerChemiker
Regular
 
Posts: 720
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria

Postby kleinerChemiker » Sun Jan 09, 2011 1:19 pm

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: viewtopic.php?p=10420903#p10420903

User avatar
garvinhicking
Core Developer
 
Posts: 28954
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Sun Jan 09, 2011 8:46 pm

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: 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
yellowled
Regular
 
Posts: 4887
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany

Postby yellowled » Sun Jan 09, 2011 10:29 pm

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

User avatar
garvinhicking
Core Developer
 
Posts: 28954
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Sun Jan 09, 2011 10:41 pm

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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
yellowled
Regular
 
Posts: 4887
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany

Postby yellowled » Sun Jan 09, 2011 11:12 pm

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

User avatar
yellowled
Regular
 
Posts: 4887
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany

Postby yellowled » Sun Jan 09, 2011 11:35 pm

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

User avatar
garvinhicking
Core Developer
 
Posts: 28954
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Mon Jan 10, 2011 10:14 am

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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
yellowled
Regular
 
Posts: 4887
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany

Postby yellowled » Mon Jan 10, 2011 3:11 pm

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

Next


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron