ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

CSS and jQuery fluctuate between linking and unlinking

June 20, 2011 10:04pm

Subscribe [7]
  • #1 / Jun 20, 2011 10:04pm

    Brian A Morales

    27 posts

    Greetings,

    I had created cobblehillplayschool.com last year and until a few days ago, has been working quite well.
    As of now, the site fails to link to the css and javascript files. The client hasn’t changed any configurations, and the host only made a routine backup, nothing else. I have below a part of the header:

    <link rel="stylesheet" type="text/css" media="all" href="{stylesheet={w}/chp}" />
    <style type='text/css' media='screen'>@import "{stylesheet={w}/chp}";</style>
    {exp:jquery:script_tag}
    [removed][removed]
    [removed][removed]
    [removed][removed]


    About the site:

    • The current version of ExpressionEngine is v2.1.0 Build 20110411
    • htaccess file containing the following to remove index.php:

    RewriteEngine On
    RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    • Hosting by buyhttp

    I’m not sure if this is enough information for the query, but I’m very thankful for any help I can get!
    -Brian M.

  • #2 / Jun 21, 2011 9:19am

    Sue Crocker

    26054 posts

    Hi, Brian.

    What is {w} set to?

    One thing I’m noticing is there is a disconnect between your version and build info. The version should say 2.1.3, not 2.1.0 if you have that build. Is your config.php writable? That’s the first thing I’d look at.

    Your .htaccess looks fine to me, pretty generic for removing index.php?.

  • #3 / Jun 21, 2011 9:55am

    Add js and css to your list of extensions that aren’t processed by index.php:

    RewriteCond $1 !\.(css|js|gif|jpe?g|png) [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [L]
  • #4 / Jun 21, 2011 1:13pm

    Brian A Morales

    27 posts

    Hi Sue,
    The config.php file is writable. I’ll try re-installing the version, I didn’t know the build and version numbers were off, though how it got so I have no idea.

    Hi Nick, I updated the .htaccess file to no avail. I’ll see what happens with the version reinstallation.

    Thanks! Will update soon.
    -Brian M.

  • #5 / Jun 22, 2011 10:45am

    Kyle Cotter

    730 posts

    Hey Brian,

    Do you have any more information for us?

    And thanks to Nick for lending a hand here!

  • #6 / Jun 22, 2011 7:20pm

    Brian A Morales

    27 posts

    Hello all,

    I was able to update to the current version, and edited the .htaccess file according to Nick’s suggestion today.
    Unfortunately the css and js are still broken. In addition, a curious thing has appeared, instead of providing the version and build numbers at the bottom of the backend’s EE Info, what appears instead is: running_current. The fine print still gives me the information, though:  v2.1.3 Build: 20110411.

  • #7 / Jun 24, 2011 7:53am

    John Henry Donovan

    12339 posts

    Brain,

    In addition, a curious thing has appeared, instead of providing the version and build numbers at the bottom of the backend’s EE Info, what appears instead is: running_current. The fine print still gives me the information, though:  v2.1.3 Build: 20110411.

    The version and build in the very bottom of your control panel are what you are running. The EE Info just grabs current from ourselves. WE just released a new version of EE2.2 so that will take a couple of days to update

    I notice you have temp css and js up there.

    Can you create a separate template group just for testing please?
    And in a test template add the original homepage

    Can you then link that here please so we can see behaviour for ourselves?

  • #8 / Jul 01, 2011 12:45pm

    Brian A Morales

    27 posts

    I’m a bit behind, but I’ll move forward on John’s reply asap when I return Tuesday.
    Thanks!

  • #9 / Jul 01, 2011 12:54pm

    Kyle Cotter

    730 posts

    Great Brian! Just give us an update when you’re able to get back to it.

  • #10 / Jul 04, 2011 6:10am

    Sintra

    57 posts

    I have a similar issue as posted in this thread. When I leave the name of my site’s index page blank in the general configuration in the admin panel stylesheets linking doesn’t work anymore. If I enter index.php there the style sheet linking does work.

    The htaccess file has the generic index.php removal code as found in the EE docs.

  • #11 / Jul 06, 2011 1:38pm

    Sue Crocker

    26054 posts

    Hi, Brian. Any more news?

    Sintra, let’s keep your issues in the thread you started. I suspect they may be related, but let’s let Brian have a chance to respond.

  • #12 / Aug 30, 2011 2:11pm

    Brian A Morales

    27 posts

    Greetings All,

    Sorry for the delay, I’ve been backed-up with multiple projects, but I’m back to fix this one.

    I have gone ahead and reverted the templates for our testing. the URL is cobblehillplayschool.com

    Thanks!
    Brian M.

  • #13 / Aug 30, 2011 2:25pm

    Brian A Morales

    27 posts

    Sue,
    {w} is set to ‘welcome’ which is the template group name.

  • #14 / Aug 31, 2011 6:12pm

    Kevin Smith

    4784 posts

    Hey Brian,

    Bring us up to speed on where we are now. When I got to the site and view it, it looks like everything works, including CSS and JS. Could you describe the problems you’re still having?

  • #15 / Sep 07, 2011 10:19am

    Brian A Morales

    27 posts

    Hi Kevin,

    Over the past few days I’ve updated the EE installation to 2.2.2 and updated a couple of modules as well.

    The problem I’m still having is that the CSS and JS links and unlinks alternately and simultaneously, seemingly at random.
    I’ve attached a screenshot for reference.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases