View Issue Details

IDProjectCategoryView StatusLast Update
2310Composrcorepublic2016-03-23 14:02
ReporterPDStig Assigned ToChris Graham  
PrioritynormalSeverity@40@ 
Status resolvedResolutionfixed 
Summary2310: Composr 10b4: Sometimes blocks on the same page will run into each other
DescriptionSometimes blocks will run into each other if they are on the same comcode page. A specific case of this happening is when I have a poll block and an award block on the same page. The title of the currently active poll will also show up on the award block. It may have to do with deferred javascript loading (output streaming is currently disabled).
Steps To Reproduce1. Add a poll block and a top content / award block on the same comcode page. Make sure differed loading is enabled and that website output streaming is disabled.
2. Add and set a poll.
3. Award the award to some content.
4. View the page. Sometimes the title of the poll will run into the title of the awards block.
Additional InformationThis is a complex case. Reproducing it is hard to do sometimes and is semi-random.
TagsNo tags attached.
Attach Tags
Attached Files
Untitled.jpg (25,154 bytes)   
Untitled.jpg (25,154 bytes)   
Time estimation (hours)
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

Chris Graham

2016-03-22 21:43

administrator   ~3478

I can't think of any cause for this on our end other than if the random number generator is causing repeats. Each deferred block is given a random ID.

This should not happen, but there could be some flaw in the random number generation.

I have made changes so the Tempcode random numbers are now guaranteed as unique.


Another possibility would be a bug in some particular web browser. I tested on Chrome and Firefox and could not reproduce.


Other than this, I really can't think what it could be. The HTML is set into a particular div of a particular ID. No global variables are used in the JavaScript code. There is no caching overlap with how the blocks load up. Even if there was caching overlap, I wouldn't expect just the title to move like that.



So if this still occurs in the next beta, please mention the browser used, and also what happens to the other block. Does the poll block have the poll title as well, or is it a titleless block as the title has somehow moved across?

Also knowing the generated HTML (using the browser dev tools to copy and paste from the DOM would help.

Chris Graham

2016-03-23 14:02

administrator   ~3486

Complex Tempcode issue.

Issue History

Date Modified Username Field Change
2016-03-17 20:59 PDStig New Issue
2016-03-17 20:59 PDStig File Added: Untitled.jpg
2016-03-22 21:43 Chris Graham Note Added: 0003478
2016-03-22 21:43 Chris Graham Status Not Assigned => Closed
2016-03-22 21:43 Chris Graham Assigned To => Chris Graham
2016-03-22 21:43 Chris Graham Resolution open => unable to reproduce
2016-03-23 14:02 Chris Graham Note Added: 0003486
2016-03-23 14:02 Chris Graham Status Closed => Resolved
2016-03-23 14:02 Chris Graham Resolution unable to reproduce => fixed