collective / collective.jbot

TTW jbot customizations
1 stars 0 forks source link

Alternates between PloneDefault and Sunburst themes for each reload #2

Open dbdueck opened 10 years ago

dbdueck commented 10 years ago

ISSUE: For Every second page reload, it causes the navigation to display in a funny way So, if you hit reload on a page 10x, it works on 1,3,5,7 and 9. But 2,4,6, and 8 display with the wrong HTML and ids and such.

It alternates between using [ul class=”navbar”] and [ul id=”portal-globalnav”]
It seems that it just flips between two different themes on each reload – Sunburst and PloneDefault

P.S. We’re using Plone 4.3.2, and jbot 1.0a3 (from 2014-04-22).

I’ll include the HTML source pages from two different “reloads”(FP1.htm, FP2.htm) when run on a very “stock” site. A "diff" reveals two very different DOM layouts.

**What it looks like normally (Sunburst) image

**After Reload - back to "plone default" image

vangheem commented 10 years ago

Yikes. Thanks for the bug report.

I just tested locally and I cannot reproduce this.

Could you give me more info on your setup?

dbdueck commented 10 years ago

Plone 4.3.2. NOT using Diazo (yet). Selected base theme is either Sunburst or Plone Classic.

Steps to Reproduce:

  1. From ZMI/Root: Create New Plone Site (Call it "testjbot") Press Button: [Create Site]

2: Enable Addons

3: $PLONE/Control Panel / Site Setup / Theme Settings set Default Theme = Sunburst, or Plone-Classic

4: Go to Front page, and click the "Home" button. Each reload alternates the theme.

So, it seems that perhaps the Bootstrap theme is involved. We will see if an upgrade to the plonetheme.bootstrap makes a difference.

[image: Inline image 1]

On Tue, Jun 24, 2014 at 2:17 PM, Nathan Van Gheem notifications@github.com wrote:

Yikes. Thanks for the bug report.

I just tested locally and I cannot reproduce this.

Could you give me more info on your setup?

  • is it diazo?
  • what is the selected base theme
  • can you explain the steps used to get this behavior?

— Reply to this email directly or view it on GitHub https://github.com/collective/collective.jbot/issues/2#issuecomment-47017856 .

vangheem commented 10 years ago

which bootstrap theme? this one? https://pypi.python.org/pypi/plonetheme.bootstrap

So it may be a problem of when a conflict between regular z3c.jbot customizations and collective.jbot

I'll give it a try

dbdueck commented 10 years ago

plonetheme.bootstrap-1.0-py2.7.egg

On Tue, Jun 24, 2014 at 2:41 PM, Nathan Van Gheem notifications@github.com wrote:

which bootstrap theme? this one? https://pypi.python.org/pypi/plonetheme.bootstrap

So it may be a problem of when a conflict between regular z3c.jbot customizations and collective.jbot

I'll give it a try

— Reply to this email directly or view it on GitHub https://github.com/collective/collective.jbot/issues/2#issuecomment-47020615 .

vangheem commented 10 years ago

looks like plonetheme.bootstrap has some problems. Even without jbot installed, and you try to disable bootstrap, it doesn't disable..

vangheem commented 10 years ago

Just to confirm, This seems to be related to a problem when collective.jbot is used along with z3c.jbot overrides. Wonkiness ensues.

vangheem commented 10 years ago

I have a pull request in z3c.jbot to address this problem: https://github.com/zopefoundation/z3c.jbot/pull/3