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

akerman

  • Jr. Member
  • **
  • Posts: 325
  • Knowledge weighs Nothing!
    • STOLT/AKERMAN
Re: SOLVED! - Theme.css not read?
« Reply #15 on: July 04, 2008, 22:32:30 pm »
Hi, sorry to hear that you have problems.

I'm not so familiar with Joomla 1.0 since I've only used it for a short period, before upgrading... anyhow:

When you say your theme.css does not work, in what particular sense?
Does the site come up, behaves oddly or is other css take presidency over the appearance?

------------------------------------------------------------------------------------------

'The Site URL' that you reefer to, that I reefer to, for reference (that was funny)  ;)
is actually in VM config and not in Joomla...

Look in VM 1.1 under Admin/Configuration/Security/Security Settings


Hope it helps


Regards
Akerman   
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

bigbunnyboy

  • Beginner
  • *
  • Posts: 4
Re: SOLVED! - Theme.css not read?
« Reply #16 on: July 13, 2008, 14:31:10 pm »
Hi,
I have installed VirtueMart 1.1.0 on a Joomla install, version 1.0.15.  However, I am experiencing the same issue regarding the theme not being read.  I have modified the permissions of the files and directories, to no avail.
Has anyone else experienced issues surrounding this, that have not been solved with the alteration of file permissions?
Any help would be appreciated as I this is driving me more bonkers than I care to admit!!
Thank you,
b3

akerman

  • Jr. Member
  • **
  • Posts: 325
  • Knowledge weighs Nothing!
    • STOLT/AKERMAN
Re: SOLVED! - Theme.css not read?
« Reply #17 on: July 13, 2008, 15:41:02 pm »
Hi there,

well, in VM 1.1.0 for J 1.0 the only thing I know of, that directly correlates with the "Site URL" setting in VM 1.1.X for J1.5; is the configuration file 'virtuemart.cfg.php'


When installing the J1.0 version for the first time that install file looks like this:
 
Code: [Select]
// these path and url definitions here are based on the mambo configuration
define( 'URL', $mosConfig_live_site.$app );
define( 'SECUREURL', $mosConfig_live_site.$app);


In J1.5 it looks like this when I'm running on my LAN:

Code: [Select]
// these path and url definitions here are based on the Joomla! Configuration
define( 'URL', 'http://192.168.1.101/' );
define( 'SECUREURL', 'http://192.168.1.101/' );


And in J1.5 it looks like this when I'm running in production:
Code: [Select]
// these path and url definitions here are based on the Joomla! Configuration
define( 'URL', 'http://www.infoclip.se/' );
define( 'SECUREURL', 'http://www.infoclip.se/' );


To edit/hardcode the configuration file to the correct 'www address' is maybe a solution?


The important thing to remember here, is that when setting these URL to 'localhost', '127.0.0.1', when performing LAN tests with other workstations, is that on the server itself everything looks nice, whilst on the other workstations pictures can be missing and other paths can become wrong, not showing what is intended.

The preferred way in the LAN (local environment), is to set this to the actual LAN address of the server. Then everything should work out nicely.


Hope it became less fuzzy?   :)


Regards
Akerman


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

bigbunnyboy

  • Beginner
  • *
  • Posts: 4
Re: SOLVED! - Theme.css not read?
« Reply #18 on: July 13, 2008, 16:58:01 pm »
Thank you for your time and information Akerman, I changed the URL from $mosConfig_live_site.$app and hardcoded it to the site URL.  This is still not working for the CSS.  It is strange that you mention the images being identified as it seems that the thumbnails for the products do not appear, while the Category images do.  I wonder if this is related??  Hmmmm......?
I do get the link in the header:
 
Code: [Select]
<script src="http://<website domain>/components/com_virtuemart/fetchscript.php?gzip=0&amp;subdir[0]=/themes/default&amp;file[0]=theme.js&amp;subdir[1]=/js&amp;file[1]=sleight.js&amp;subdir[2]=/js/mootools&amp;file[2]=mootools-release-1.11.js&amp;subdir[3]=/js/mootools&amp;file[3]=mooPrompt.js" type="text/javascript"></script>
as this install is on a non-local server.

Things become less fuzzy with your explanation, but unfortunately I seem to still get nowhere with this!  I wonder if a fresh install of the shopping cart will make a difference! :(

Thank you very much for your time, it is very appreciated a great deal.

bengrice

  • Beginner
  • *
  • Posts: 6
Re: SOLVED! - Theme.css not read?
« Reply #19 on: August 12, 2008, 13:34:11 pm »
i had this problem and it took me ages to find out, so hope this helps someone else.

the fetchscript.php loads the theme.css js mootools.css etc into the header and after runing this script directly it returned bad permission error

now i know this has been noted above but simply changing the permissions of the fetchscript file does not solve the problem plus you have to get the right permission

to test i always change to 777 full read write execute, but this was infact the problem. you have to change to 755 (full read and execute but only owner write) and the key is this must be the permission on the fetchscript.php file itself and also its container folders, components/ and components/com_virtuemart/. change the permissions to 755 and so far all css and js files seem to load fine.

i dont think this can be classed as a bug and i dont know what changes to make this happen becasue the site was loading fine for a few weeks and then suddenly this load problem occured. so some general use of the admin of virtumart must at some point modify the permissions and throw up this problem.

hope this helps like i say

ow ps to the developers if you read this, may be it would help for the fetchscript to somehow throw an error instead of it silently returning bad permissions which cannot be seem unless you copy from the view source and run in url.

cheers

ben

secounds

  • Beginner
  • *
  • Posts: 33
Re: SOLVED! - Theme.css not read?
« Reply #20 on: October 14, 2008, 00:27:06 am »
hello. I had the same problem as you akerman. And Nothing seems to change when i change perms to 644 so i tried 777. Nothing seem to work? can you take a screenshot of your settings or something? :)

akerman

  • Jr. Member
  • **
  • Posts: 325
  • Knowledge weighs Nothing!
    • STOLT/AKERMAN
Re: SOLVED! - Theme.css not read?
« Reply #21 on: October 14, 2008, 22:48:33 pm »
Hi,

well, did you see in the thread that setting to 777 also caused problems?

Try set your permissions (if you are on Unix/Linux) as 'bengrice' did. (The post just above yours.)

If you still run into problem, check the ownership of the files. Are you on a 'localhost' or are you running a hosting installation?

Regards
akerman
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

codinedawn

  • Beginner
  • *
  • Posts: 21
Re: SOLVED! - Theme.css not read?
« Reply #22 on: October 27, 2008, 23:13:03 pm »
Running locally, after following all these instructions theme.css still bugs out continually.

Eventually I emptied all the theme.css into a new css file in my main Joomla template directory. This makes local testing much easier because you can edit the sheet staight from dreamweaver. But, but you have to change various image paths along the way.