EllisLab text mark
Advanced Search
     
CSS template not being loaded
Posted: 16 July 2010 10:53 PM   [ Ignore ]
Joined: 2002-03-20
98 posts

Yet another problem with yet another EE 2.1.0 test installation.

My core site dates back to the pMachine days, back when a “channel’s” CSS template was named weblog_css by default. When my EE 1.6.9 was updated to 2.1.0, the CSS isn’t getting loaded. I noticed that EE 2.1.0 did what appears to be a global search/replace for “weblog” > “channel.”

Yes, I updated all the references in my templates to reflect the change. But the CSS still isn’t getting loaded. Here’s the relevant code snippet.

<link rel='stylesheet' type='text/css' media='all' href='{stylesheet=hasten/channel_css}' /> 

Pretty straightforward, right? What am I missing?

 Signature 


Michael Fraase, partner
ARTS & FARCES LLC
.(JavaScript must be enabled to view this email address)
http://www.farces.com

 
Posted: 17 July 2010 11:30 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2005-06-20
3997 posts

Hi mfraase,

Just to confirm, you have updated the template name to reflect the change as well as references within your templates? Have you got a URL where we can see this?

Cheers

Greg

 Signature 

   Purple Dogfish | Member of EE Pro Network | Follow me on Twitter

 
Posted: 17 July 2010 12:26 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2002-03-20
98 posts

I see what the problem is. EE is making an absolute reference to the stylesheet.

 Signature 


Michael Fraase, partner
ARTS & FARCES LLC
.(JavaScript must be enabled to view this email address)
http://www.farces.com

 
Posted: 17 July 2010 05:36 PM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2005-06-20
3997 posts

Hi mfraase,

Have you got a URL where we can see this? Have you got this working properly?

Cheers

Greg

 Signature 

   Purple Dogfish | Member of EE Pro Network | Follow me on Twitter

 
Posted: 17 July 2010 06:22 PM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Joined: 2002-03-20
98 posts

Like all major EE updates this one is turning out to be a real pain in the ass.

Because EE uses absolute references for everything, it’s impossible to develop on one server and migrate that to a production server. And because Engine Hosting uses an old version of phpMyAdmin, I have to email them the .sql file to import.

Here’s something that would be really nice: If Ellis spent a little more time testing its installer/updater so it would error out gracefully from a failed update process it would make things much easier. Shouldn’t be too hard to add logic on the order of “does this table/column exist? Is it valid? OK, move along to the next one. Don’t just error out, leaving tables and columns behind

 Signature 


Michael Fraase, partner
ARTS & FARCES LLC
.(JavaScript must be enabled to view this email address)
http://www.farces.com

 
Posted: 18 July 2010 03:59 PM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Avatar
Joined: 2005-06-20
3997 posts

Hi mfraase,

What is the status of your upgrade now?

Cheers

Greg

 Signature 

   Purple Dogfish | Member of EE Pro Network | Follow me on Twitter

 
Posted: 18 July 2010 04:01 PM   [ Ignore ]   [ # 6 ]   [ Rating: 0 ]
Joined: 2002-03-20
98 posts

It’s working now. Apologies, I thought I had added that after my rant, but I guess not.

 Signature 


Michael Fraase, partner
ARTS & FARCES LLC
.(JavaScript must be enabled to view this email address)
http://www.farces.com

 
Posted: 18 July 2010 04:15 PM   [ Ignore ]   [ # 7 ]   [ Rating: 0 ]
Avatar
Joined: 2009-09-24
5506 posts

Hi mfraase,

We appreciate the feedback, and I’m glad you got this working. Don’t hesitate with further questions.