Author Topic: SOLVED! - Theme.css not read?  (Read 14675 times)

akerman

  • Jr. Member
  • **
  • Posts: 325
  • Knowledge weighs Nothing!
    • STOLT/AKERMAN
SOLVED! - Theme.css not read?
« on: April 24, 2008, 15:22:07 pm »
Upgraded my VM RC3 to Stable today. Everything works as it should except one important thing:

The 'theme.css' is not read on browser load. Instead the site template is used - which is natural if there where no 'theme.css' present.

Tried w two different HW platforms and three different browsers.

Firebug clearly states that it identifies my 'template_css.css' as being in charge.

Checked all filepermissions and the backend settings. Everything is 'Writeable' and dandy.


What can have happend? Any input is welcome.


Regards
Akerman / InfoClip.se
http://STOLT-AKERMAN.com - Web & Design agency. Spemildt in e-shop, ecommerce and marketing.
http://InfoClip.se - Swedish Antique & Used Books & Art Shop.
http://AkermansCove - Personal Portfolio
Ubuntu LAMP / Joomla 1.5.22 / VM 1.1.6 / JoomFish Contributor / Developer / Designer

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27433
  • Always on vacation
    • Jenkin Hill Internet
Re: Theme.css not read?
« Reply #1 on: April 24, 2008, 17:22:26 pm »
theme.css is working OK for me. J!1.5.2 with VM1.1 final

Firebug shows theme.css to be loaded and used.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.10057 on Joomla 3.9.8 PHP 7.0.33
Testing VM .3.6.0.10075 on Joomla 3.9.8

akerman

  • Jr. Member
  • **
  • Posts: 325
  • Knowledge weighs Nothing!
    • STOLT/AKERMAN
Re: Theme.css not read?
« Reply #2 on: April 24, 2008, 18:20:57 pm »
Hi, well yes I understand that there is something I've done or changed and that it's not something wrong with the actual VM installation.

But with your experience in this field, what could cause such scenario?
i.e. what can I have introduced to create this?

(Rule out any problem in regards of Joomla version or levels, since it worked fine
w RC3 and all levels are the latest stable and proved.)


Regards
Akerman / InfoClip.se
http://STOLT-AKERMAN.com - Web & Design agency. Spemildt in e-shop, ecommerce and marketing.
http://InfoClip.se - Swedish Antique & Used Books & Art Shop.
http://AkermansCove - Personal Portfolio
Ubuntu LAMP / Joomla 1.5.22 / VM 1.1.6 / JoomFish Contributor / Developer / Designer

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27433
  • Always on vacation
    • Jenkin Hill Internet
Re: Theme.css not read?
« Reply #3 on: April 24, 2008, 18:55:08 pm »
I have no idea what could cause this. Did you also try a different Joomla template?

There may be issues with Firebug and VirtueMart. For testing I always turned it off and used Developer Tools instead.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.10057 on Joomla 3.9.8 PHP 7.0.33
Testing VM .3.6.0.10075 on Joomla 3.9.8

KooTjoo

  • Beginner
  • *
  • Posts: 35
Re: Theme.css not read?
« Reply #4 on: April 24, 2008, 19:16:19 pm »
Hi,

I have got the same problem here. theme.css is not read. At first it workes perfectly and all of a sudden it stopped working. Maybe I did it myself, but I haven't got a clue how.

Best regards,
KooTjoo

unleash.it

  • Jr. Member
  • **
  • Posts: 150
Re: Theme.css not read?
« Reply #5 on: April 25, 2008, 01:30:45 am »
I'm not exactly sure if I am understanding right, but at least for me there aren't any problems. Firebug won't list themes.css but instead you'll see fetchscript.php.

The reason for this I believe is it's Virtuemart's way of getting the style sheet to dynamically link to your page so you don't have to add it to your template. Are you sure it's not being read? If you see buy it now buttons, etc. it has to be...

KooTjoo

  • Beginner
  • *
  • Posts: 35
Re: Theme.css not read?
« Reply #6 on: April 25, 2008, 08:08:42 am »
The buy it now buttons aren't styled. They are plain submit buttons. I have solved it however by doing a fresj install and copying my own template back again.


KooTjoo

akerman

  • Jr. Member
  • **
  • Posts: 325
  • Knowledge weighs Nothing!
    • STOLT/AKERMAN
Re: Theme.css not read?
« Reply #7 on: April 25, 2008, 11:39:05 am »
Unleash.it is right!

fetchscript.php is noted in Firebug as the last read instance off CSS code.

And yes, somehow the information is passed on from 'themes.css'
When I say not read I mean that there is no way to trace the controlling code and no indication that this script is used at all.

Since it's industry standard for the CSS to inherit features from its parent, if it doesn't posses the setting itself, I can't see why VM should differ or why Firebug doesn't manage to see the last instance of CSS?

So it can't be correct that I shouldn't see the last read CSS information

Mr. Jenkinhill what is your opinion on this?
Is it really correct only to see 'fetchscript.php' as the last read instance in the Firebug decoding? Is that behaviour related to VM or to Firebug?


Regards
Akerman / InfoClip.se
http://STOLT-AKERMAN.com - Web & Design agency. Spemildt in e-shop, ecommerce and marketing.
http://InfoClip.se - Swedish Antique & Used Books & Art Shop.
http://AkermansCove - Personal Portfolio
Ubuntu LAMP / Joomla 1.5.22 / VM 1.1.6 / JoomFish Contributor / Developer / Designer

laurie_lewis

  • Jr. Member
  • **
  • Posts: 211
Re: Theme.css not read?
« Reply #8 on: April 25, 2008, 13:54:44 pm »
I am looking at my product browse page using Firebug and I can also see that fetschscript.php is loading the theme.css file.  I can see the settings for .browseProductContainer (and others) clearly.  It appears to be working correctly.  You alter settings and it is updated - in that regard it is working.

What concerns me is that I am getting errors as it is not being read as the last lot of CSS.  In my case I am getting template.css being read again for one setting and overwriting theme.css.   I am using the rhuk_milyway template for my testing.  The problem area is with #whitebox div.  theme.css has text-align center while whitebox has text-align left. 

I am also using the default theme with default settings (that is using tables) but I am sure I tested it earlier with divs and found the same issue.

Very odd.

laurie_lewis

  • Jr. Member
  • **
  • Posts: 211
Re: Theme.css not read?
« Reply #9 on: April 25, 2008, 14:24:52 pm »
I have found my problem to be a template issue I think.  I change to the other default template with Joomla 1.5.2 and have NO problems.  Things appear to work properly.  Might be time for a reinstall.

Need to test it with a few more templates, though. 

akerman

  • Jr. Member
  • **
  • Posts: 325
  • Knowledge weighs Nothing!
    • STOLT/AKERMAN
Re: Theme.css not read?
« Reply #10 on: April 25, 2008, 14:36:07 pm »
Yes it is really odd. For me all worked fine until I installed/uppgraded to 'Stable'.

What I would like to see is a 1,2,3 step schematic view of the files that are read.
This in order to better understand what is supposed to be happening.

My guess is the following order:

1. index.php - in site root is read
2. template_css.css - site template is called upon.
3. virtuemart.php
      virtuemart_parser.php
           virtuemart.cfg.php
              global.php
                theme.css

Still investigating if this is the right or even correct order...

Regards
Akerman / InfoClip.se

http://STOLT-AKERMAN.com - Web & Design agency. Spemildt in e-shop, ecommerce and marketing.
http://InfoClip.se - Swedish Antique & Used Books & Art Shop.
http://AkermansCove - Personal Portfolio
Ubuntu LAMP / Joomla 1.5.22 / VM 1.1.6 / JoomFish Contributor / Developer / Designer

akerman

  • Jr. Member
  • **
  • Posts: 325
  • Knowledge weighs Nothing!
    • STOLT/AKERMAN
Re: Theme.css not read?
« Reply #11 on: April 25, 2008, 14:49:35 pm »
I've tested w 'rhuk_milkyway' as well with 13 other templates from 10 different manufactures.

For me those template tests didn't show any change in regards of what Firebug reports.
Each templates CSS was however correctly read, upon each template change.

Just to emphasize; ALL other extensions I have (Mosets Tree, DocMan, Fireboard and others...)
all behave and shows the correct CSS.


Regards
Akerman / InfoClip
http://STOLT-AKERMAN.com - Web & Design agency. Spemildt in e-shop, ecommerce and marketing.
http://InfoClip.se - Swedish Antique & Used Books & Art Shop.
http://AkermansCove - Personal Portfolio
Ubuntu LAMP / Joomla 1.5.22 / VM 1.1.6 / JoomFish Contributor / Developer / Designer

akerman

  • Jr. Member
  • **
  • Posts: 325
  • Knowledge weighs Nothing!
    • STOLT/AKERMAN
Re: Theme.css not read?
« Reply #12 on: April 25, 2008, 19:12:12 pm »
SOLVED!

Some of the files under /components/com_virtuemart/.. had faulty permissions.

Setting all files to 644 (rw-r-r) solved the problem.


And as 'unleash.it' pointed out earlier in this thread:

"Firebug won't list themes.css but instead you'll see fetchscript.php.
The reason for this I believe is it's Virtuemart's way of getting the style sheet to dynamically link..."

Thanx for the assistance all!

Regards
Akerman.css  ;) / Infoclip.se
http://STOLT-AKERMAN.com - Web & Design agency. Spemildt in e-shop, ecommerce and marketing.
http://InfoClip.se - Swedish Antique & Used Books & Art Shop.
http://AkermansCove - Personal Portfolio
Ubuntu LAMP / Joomla 1.5.22 / VM 1.1.6 / JoomFish Contributor / Developer / Designer

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27433
  • Always on vacation
    • Jenkin Hill Internet
Re: SOLVED! - Theme.css not read?
« Reply #13 on: April 26, 2008, 00:42:24 am »
If you use Firefox's web developer tools it does show the themes.css styles.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.10057 on Joomla 3.9.8 PHP 7.0.33
Testing VM .3.6.0.10075 on Joomla 3.9.8

tadekchavez

  • Beginner
  • *
  • Posts: 2
Re: SOLVED! - Theme.css not read?
« Reply #14 on: July 03, 2008, 02:26:10 am »
Hi akerman, I hope you can help me out with this, I've seen this post and "Chown or chmod problem?" (yours), and I'm guessing I have the same problem.

I have Joomla 1.0.15 and VM 1.1 and works just fine in my localhost server but when I uploaded it to a demo server I can't get theme.css and mooPrompt.css to work. I've already changed permissions to ../com_virtuemart and set it to 777 (just for testing purposes), I also verified that fetchscript.php has all permissions and still not working.

I saw in your other post that changing "Site URL" from the VM configuration to the actual URL can get the job done but in the VM version for Joomla 1.0.x that option doesn't exist.

I you have a clue of what's going on with this, I'll really appreciate your help.
Thanks in advance.