The css breaks on anonymous...It works fine while logged in or trying to log in..But first time users on i.e. platforms and others it breaks instantly.

Permissions are all set properly.
Go to
http://www.betabug.net/xapris/

then if you see it properly simply hit refresh and it breaks everytime..if it didn't break when you hit this page..

thanks!

Comments

mojos’s picture

I have the same issue, looks like the css is not added to the head tag when anonymous.

link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/fpss/fpss/css/fpss-XXX.css?c"

What can be causing this?

Leif Robertson’s picture

Just to add..When it's working the css is on the bottom of the page..when it's not the css is gone..

So when your logged in or trying to log in the css displays in the code:

but when you first hit the site or refresh once without logging in it breaks and you get nothing:


----

Why isn't the css loading as anonymous when I have it set properly in the permissions?

Leif Robertson’s picture

Anyone have insight on this yet?

I gotta go w. the static version if this doesn't work on while logged out..Again permissions are set...I even tried hard coding this it into the page.tpl but it seems to disappear..Is this a theme conflict possibly?

mojos’s picture

This is a show stopper for me and anyone else trying to use this module with Drupal

sadly If I can't find a solution to this will have to move back to Joomla :(

ARray’s picture

Please read this:
http://drupal.org/node/458664
I guess it is not module related bug but it is a drupal bug.

Leif Robertson’s picture

I really don't think that its the same. If you read the post they RAN CRON and cleared the cache and the issue was gone. THis issue still remains after CRON and CACHE cleared...

jordancl’s picture

I have the exact opposite issue. When I am working as an authenticated user, the CSS will not load. But when I am anonymous, it will load fine.

jcmwebs’s picture

I was having the same problem, that is the slider was not being displayed for anonymous users.

The problem was solved bye replacing the following lines in the fpss.module (line 841)

$sql = "SELECT * FROM {node} n JOIN {node_revisions} r ON n.vid = r.vid JOIN {fpss_slides} f ON f.vid = r.vid JOIN {upload} a ON a.vid = r.vid JOIN {files} q ON q.fid = a.fid WHERE n.type = '%s' AND n.status = %d AND f.ssid = %d";

with this one:

$result = db_query ("SELECT * FROM {node} n JOIN {node_revisions} r ON n.vid = r.vid JOIN {fpss_slides} f ON f.vid = r.vid JOIN {upload} a ON a.vid = r.vid JOIN {files} q ON q.fid = a.fid WHERE n.type = '%s' AND n.status = %d AND f.ssid = %d",'fpss_slide', 1, $delta);

I am not sure if this effects something else, but up till now it is work for me.

techgirlgeek’s picture

That rewrite only compiles line 841 and line 842 ($result = db_query(db_rewrite_sql($sql), 'fpss_slide', 1, $delta);) while removing the db_rewrite_sql. This would not affect the css not being visible to anonymous users.

Has anyone found a better solution to this issue?

techgirlgeek’s picture

I finally "fixed" or I should say saw this issue resolve after turning off Block Caching in the admin/settings/performance. All other performance enhancements are enabled including using the javascript aggregation module for optimizing and minifying js files. The only other setting that is disabled is Page Compression since our web server is already handling that.