new zone with new theme shows elements of base theme

Post

Posted
Rating:
#4362 (In Topic #878)
Hello,

After a recent upgrade a few times ago suddenly all my other new zones started showing the background and some behavior from my original zone....  I did not report it as I assumed it was some problem I created myself.

Today, on a different website and a different server the same problem happened , for example:4

https://futurecode.jp/

is my original zone & theme

now check out the new zone & new theme:

https://futurecode.jp/restaurant/

you can see the new color scheme etc but i am unable to change the background. the photo image slide show is adopting the css from the original zone rather than behave with stock CSS.

I checked the "restaurant"  global wrap and CSS and its all fresh and not modified. So somehow CSS qualities from the orginal zone are being combined...

my mind is tired and boogeled so wanted to check in and report this issue and see if it is something I messed up or not.

Thank you tons for ideas & help

cheers

stevyn

 

Post

Posted
Rating:
#4365
Hi,

you can see the new color scheme etc but i am unable to change the background

Are you sure you edited the 'outer_background' theme image separately for each theme?
If you have overridden it only over what is in the default theme, rather than individually for each theme, it's going to be the same image.

the photo image slide show is adopting the css from the original zone rather than behave with stock CSS.

Please try these changed files:
Attachment

hotfix.tar


For reference, these are the commits:
https://github.com/ocproducts/composr/commit/3588fbbbb1d8dc29e61e4eb7a3d73987eff746fa
https://github.com/ocproducts/composr/commit/66906e6003b0456696e5149a2c21356a3e8353c4

Post

Posted
Rating:
Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 (Liked by Chris Graham)
#4366
Joe
Not sure what you mean by the two zones combining your CSS - looking at your site, I noticed even though it's the same background image, it is in fact shown differently on your new zone.

For example, body#main_website is different on each theme. The normal theme (not the restaurant one) defines other background properties that are not defined in your restaurant theme. This is why the background appears differently.

background-repeat: no-repeat;
background-attachment: fixed;
background-size: 100% 100%;
background-color: #ffffff !important;
background-attachment: fixed;

A side note, it almost looks like background-attachment: fixed; is shown twice. Maybe check that out?

Post

Posted
Rating:
#4369
Hello,

I created a new theme (copy of default) for futurecode.jp & restaurant.

Yeppers I edited the 'outer_background' theme image separately for each theme


I upload a different image and it is there in the editor, but after flushing cache on the cms and browser the new zone always keeps the first zone image…..

Joe mentioned double bits of CSS, it kinda is like the new zone and the previous zone CSS are merging somehow

i checked the CSS in the new zone (in theme editor) and none of my edits are there

or perhaps the new zone is loading the new zone theme but loading the old zone CSS

enclosed is image of the new restaurant zone with some sake bottles as background. It displays OK in theme editor but not on restaurant page.


So this same exact issue is happening on the other website on a different server. It has many different zones each with different CSS, backgrounds, etc and it was all working great but upon an upgrade it now has same problem, alll the various zones all now display CSS & background image of the original zone.

Thank you, I will apply the fix now and also investigate and report back



background-test.jpg

 

Last edit: by ironfeather


Post

Posted
Rating:
#4370
Joe
Are you 100% sure the zones are set to use different themes? You can check this in Adminzone -> Structure -> Zones -> Edit Zone. Ensure the 'theme' fields are set accordingly. Maybe they somehow reverted themselves after you upgraded?

I know you said it's not showing your edits in the new zone's CSS, but maybe a temporary fix could be to bypass the theme image editor and apply your background image directly inside the CSS? Or at least until Chris can figure this out.

Post

Posted
Rating:
#4371
Howdy

update:

the hotfix crashed the slideshow on the main zone and the restaurant zone. It attempts to load and doesnt.

So I will replace those files with original

Post

Posted
Rating:
#4372
Hello,

Name   Title   Default page   Theme   Require confirmed session   Actions

N/A   Welcome   start   Future_Code   No    Edit
adminzone   Admin Zone   start   admin   Yes    Edit
cms   Content Management   cms   admin   Yes    Edit
restaurant   Restaurant   start   restaurant2   No    Edit


copy of my zone setup, so main uses future_code and restaurant uses restaurant2 theme

I agree, I will just hardcode the new background into the restaurant theme CSS so I can continue working on it (showing it to the restaurant tomorrow)  so its OK  but this seems to a bug or something I messed up on my end.  

Post

Posted
Rating:
#4373
update: i should mention that i created a new test gallery in the restaurant and now it is using the proper box css for the restaurant theme but not the color. so weird

Post

Posted
Rating:
#4374

"…..Deferred blocks should use theme of context they are running in not …."

This is true.... I tested the fader gallery block not deferred mode and it has proper CSS for the theme *

but in deferred mode it uses the main zone CSS

I will try the hotfixes again now


*  i should mention that my theme color seed is GREEN and menu etc is greenish but the image box is blue....

Post

Posted
Rating:
#4375
i tried the hotfixes again but no luck. did not change behavior of the deferred imade fader and actually interfered with  custom image fader CSS on original zone so switched back to standard

since my site is primitive and new i may try and do a fresh install and start over as a test and see if same issues

will report back later

Post

Posted
Rating:
#4378
I edited the 'outer_background' theme image separately for each theme. I upload a different image and it is there in the editor, but after flushing cache on the cms and browser the new zone always keeps the first zone image…..

I know you said you emptied the cache, but I did just find a bug where editing a theme image did not correctly clear the part of the template cache containing the global.css files. Maybe that will help avoid some possible confusion, especially when you've found multiple bugs unfortunately.

Joe mentioned double bits of CSS, it kinda is like the new zone and the previous zone CSS are merging somehow

The deferred block will cause CSS to double evaluate, as the block will load the CSS not knowing it's already loaded. It should be the correct CSS file in both instances though, so it shouldn't create a problem albeit it will be messy to see in the browser debug tools.

I did just find a bug whereby the keep_theme URL parameter was not being evaluated correctly, which may have also caused an issue somewhere. This did come up very recently, caused by a different bug fix.

i checked the CSS in the new zone (in theme editor) and none of my edits are there. or perhaps the new zone is loading the new zone theme but loading the old zone CSS

Hmm, maybe it's the issue Joe just had in https://compo.sr/forum/topicview/browse/deploying/custom-css-js-files.htm, if you happened to be using the template editor rather than the CSS editor to edit the file.
I just tested editing as CSS, as a template, and as CSS using the screen action tool in the footer - all worked.



I also have fixed blank image titles copying through, it should stay to the last title set, or 'Media'.

I have also fixed an issue with IMG_INLINE not working correctly for overridden theme images.

Sorry for the big pile of issues!

If you are still having issues (you said your last hotfix application did not work, perhaps an incompatibility), please consider e-mailing me with FTP access and I'll make sure it does work for you.

Attachment

hotfix2.tar


The hotfix incorporates changes in the previous one, and the fix for Joe's issue I referenced.

Post

Posted
Rating:
#4386
Hello, thanks much. I will download and apply the hotfix right now and report back

:rockon:

Post

Posted
Rating:
#4387
Success!  

The hot fix2 has fixed the background issue on the newest zone. and my original zone looks fine and dandy.

I will experiement more with the deferred stuff next and report back

Thank you!!!!!

:rockon:  

 

Post

Posted
Rating:
#4388
Success!  

The hot fix2 has fixed the background issue on the newest zone. and my original zone looks fine and dandy.

I will experiement more with the deferred stuff next and report back

Thank you!!!!!

:rockon:  

sigh, tiny update:

on my orginal zone page the slide show customized rounded corners are broken.  looking at it now
 

Post

Posted
Rating:
#4389

UPDATE:

sorry to say some problems…

I am investigating to see whats going on, tempted to do a fresh re-install tomorrow as I have been tweaking many things.

Post

Posted
Rating:
#4390
Hello, I have decided to do a fresh install and make a record of how I install and everything I do as well as any problems that may occur.  Will share when done.  

Post

Posted
Rating:
#4410

I installed a new fresh one and used the hotfix and everything seems good

I did experience some other problems but will start a new post.

Thank you!
:thumbs:

Post

Posted
Rating:
#4413
Hi,

I expect to be in the IRC room from roughly 1pm UK time to 4am UK time on Friday (i.e. today but I haven't gone to sleep yet) - so if you want you can try and catch me there. (There'll be a few hours here and there where I'll be gone.)
1 guest and 0 members have recently viewed this.