Incorrect generation of CSS name

Support requests, bug reports, etc. go here. Dedicated servers / VDS hosting only
noble
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 02 Jan 2014, 11:03

Incorrect generation of CSS name

Postby noble » 02 Jan 2014, 11:12

Hello TTRSS

I installed a version on my local server (I have full admin access), I had some issues like adjusting the open_basedir and permissions initially. After sorting through them I can't figure out why the generated page contains the following for the css

Code: Select all

<head>
   <title>Tiny Tiny RSS : Preferences</title>

   <link rel="stylesheet" type="text/css" href="lib/dijit/themes/claro/claro.css?1387362364"/>
   <link rel="stylesheet" type="text/css" href="css/layout.css?1387362364"/>

   <link rel="stylesheet" type="text/css" href="themes/feedly.css?1388622308"/>

   
   <link rel="shortcut icon" type="image/png" href="images/favicon.png"/>
   <link rel="icon" type="image/png" sizes="72x72" href="images/favicon-72px.png" />

   <script type="text/javascript" charset="utf-8" src="lib/prototype.js?1387362364"></script>
<script type="text/javascript" charset="utf-8" src="lib/scriptaculous/scriptaculous.js?1387362364&load=effects,dragdrop,controls"></script>
<script type="text/javascript" charset="utf-8" src="lib/dojo/dojo.js?1387362364"></script>
<script type="text/javascript" charset="utf-8" src="lib/dojo/tt-rss-layer.js?1387362364"></script>
<script type="text/javascript" charset="utf-8" src="errors.php?1387362364&mode=js"></script>



Notice the number like 1387362634 appending the files. This addition in filename of the source file is confusing the browsers, which refuses to render the page correctly. I used the Firefox's web developer tools and saved the .css files locally and imported them for testing while loading the page, the page rendering improved drastically for index.php and prefs.php.

I am using the default theme above, I also tried with the feedly theme with same results.

Please help in sorting this through.

Thank you
Noble

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Incorrect generation of CSS name

Postby fox » 02 Jan 2014, 11:20

Notice the number like 1387362634 appending the files.This addition in filename of the source file is confusing the browsers, which refuses to render the page correctly.


You don't say.

AngryChris
Bear Rating Master
Bear Rating Master
Posts: 135
Joined: 08 Apr 2013, 02:42

Re: Incorrect generation of CSS name

Postby AngryChris » 02 Jan 2014, 11:38

The number is the epoch timestamp of the associated file's modification time. I'm not enough of a web guru to tell you why it's there, but it's not what's causing your display issue. My server does it, too, and neither Firefox nor Safari have any issues rendering the page correctly.

Code: Select all

<head>
   <title>Tiny Tiny RSS : Preferences</title>

   <link rel="stylesheet" type="text/css" href="lib/dijit/themes/claro/claro.css?1387362364"/>
   <link rel="stylesheet" type="text/css" href="css/layout.css?1387362364"/>

   <link rel="stylesheet" type="text/css" href="themes/classic.css?1371144876"/>

   <style type="text/css">#floatingTitle:not(:empty) {
  display: none !important;
}</style>
   <link rel="shortcut icon" type="image/png" href="images/favicon.png"/>
   <link rel="icon" type="image/png" sizes="72x72" href="images/favicon-72px.png" />

   <script type="text/javascript" charset="utf-8" src="lib/prototype.js?1387362364"></script>
<script type="text/javascript" charset="utf-8" src="lib/scriptaculous/scriptaculous.js?1387362364&load=effects,dragdrop,controls"></script>
<script type="text/javascript" charset="utf-8" src="lib/dojo/dojo.js?1387362364"></script>
<script type="text/javascript" charset="utf-8" src="lib/dojo/tt-rss-layer.js?1387362364"></script>
<script type="text/javascript" charset="utf-8" src="errors.php?1387362364&mode=js"></script>

The above isn't a quote from your post. It's the source of of the page generated by my own tt-rss instance.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Incorrect generation of CSS name

Postby fox » 02 Jan 2014, 11:58

My only hope is that his browser will get too confused to render these forums.

hrk
Bear Rating Disaster
Bear Rating Disaster
Posts: 75
Joined: 24 Apr 2013, 12:39

Re: Incorrect generation of CSS name

Postby hrk » 02 Jan 2014, 14:01

My only wish is that he'd posted this on the 1st. It would have been a terrific way to start 2014!

JustAMacUser
Bear Rating Overlord
Bear Rating Overlord
Posts: 373
Joined: 20 Aug 2013, 23:13

Re: Incorrect generation of CSS name

Postby JustAMacUser » 02 Jan 2014, 21:42

OP: The time stamp causes browsers to reload the file. This technique ensures the latest CSS, etc. is loaded. Modern browsers will handle it fine. The issue you're experiencing is likely caused by something else.

noble
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 02 Jan 2014, 11:03

Re: Incorrect generation of CSS name

Postby noble » 03 Jan 2014, 08:14

Thank you for your replies,

I tested it using latest version of Firefox (26.0) and chrome (Version 31.0.1650.63 m) with same results. On the side note this forum is rendering nice using my browsers :)

I found the problem, My lighttpd server was not setup correctly to process ".css" files thus incorrectly labeling them as "application/octet-stream", which I was mistaking the browser's rendering problem.

Please mark this thread as resolved.

Thanks

User avatar
sleeper_service
Bear Rating Overlord
Bear Rating Overlord
Posts: 884
Joined: 30 Mar 2013, 23:50
Location: Dallas, Texas

Re: Incorrect generation of CSS name

Postby sleeper_service » 03 Jan 2014, 08:36

Code: Select all

######
#     #  ######   ####    ####   #       #    #  ######  #####
#     #  #       #       #    #  #       #    #  #       #    #
######   #####    ####   #    #  #       #    #  #####   #    #
#   #    #            #  #    #  #       #    #  #       #    #
#    #   #       #    #  #    #  #        #  #   #       #    #
#     #  ######   ####    ####   ######    ##    ######  #####
*sigh* it's so seldom we get to close a ticket around here. (that's not pebcak)


Return to “Support”

Who is online

Users browsing this forum: No registered users and 9 guests