HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Theme wizard problem

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#50572 (In Topic #11024)
Avatar

Fan in training

Hello!

I have the following problem: When I use the theme wizard and chose a color this color is used for the background but not for the background gradient image. I have narrowed down the problem: The $IMG-path variable is not resolved (in the new css-file) to the new theme folder but the default theme folder and therefore the blue gradient-background image from the default theme is used.

Is there a solution to that?

Thanks in advance
Nathaniel
Back to the top
 
Posted
Rating:
#50574
Avatar

Hi Nathaniel,

I believe I know what this problem is. It's a rather complex bug, but it's actually a problem in the cache rather than the generated theme. If you empty the template cache you will likely find the problem has gone away.

Alternatively this can also happen if the theme wizard/setup wizard does not finish; if you didn't see a final screen it wouldn't have finished, but you can keep refreshing until you do (on some slow servers you need to do this, as it can take a few loads to finish - but our code is 're-entrant' so refreshing works).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#50588
Avatar

Fan in training

Hello Chris,

thanks for the fast reply, but I still wasn't able to solve the problem

First, the the wizard finished, I'd say. It says

Theme Wizard: Step 4 of 4

You may choose one of the followup actions below if you wish.

The, how do I empty the template cache properly. I deleted the template_cached folder for themes (even the default theme) and tried the wizard, but to no avail. The result is still the same. I even disabled template_caching in the Admin/Config site, but it didn't really change something (only got slow… real slow).

The current progress is shown here http://portal.mydomicile.com

Hope there is some simple solution, or else I will have to change the css-file manually :(

Greeting
Nathaniel
Back to the top
 
Posted
Rating:
#50612
Avatar

Hi,

The regular way to empty the template cache is from the 'Cleanup tools' under the Tools section of the Admin Zone. Whilst you're there you might as well try the theme image cache too, in case that is malfunctioning.

Clearing that cache should fix the problem and you shouldn't need to run the Theme Wizard again. Deleting the folders isn't advisable as they are needed for CSS to work, but you could delete the CSS files out of the templates_cached/EN folder as an alternative way to clearing the cache.

The CSS files (the main ones, not the cached ones) themselves do not have any direct references to the images. They reference theme image codes. So if the theme really is corrupt, and you've cleared both template and theme image caches, the only explanation is if the theme images didn't ever get generated, but that would be very surprising as the theme wizard has been stable for some time.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#50617
Avatar

Fan in training

Hello Chris!

I'm sorry to be annoying but I emptied the cache via the Admintools and still no change (I even ran the Theme Wizard again and emptied the cache and yeah…). I looked into the global.css and still most pictures are taken from the default-folder.

The images (logo, zone_gradiant,…) are generated and can be found in the themes/theme_name/images folder (and they match the chosen color).

There must go something wrong when the css-files for the template_cached is generated (btw, there are only files in the DE folder (German) but non in the EN folder (except an empty index-html file)), I guess… :(

Best greetings
Nathaniel
Back to the top
 
Posted
Rating:
#50634
Avatar

How about if you upload this file then clear the template cache?

Attachment
sources/themes.php
» Download: themes.php (8 Kb, 130 downloads so far)


Another possibility is there might be a file permission problem. What happens when you try and load up the URL to one of the generated images manually? (it should display but if permissions are wrong it might not)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#50723
Avatar

Fan in training

Hello Chris!

Thanks for all the help and work, but it was to no avail so I simple reinstalled OC-Portal and voila - now it works. Sorry for the inconvenience.

Greetings
Nathaniel
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: