We have menu blocks that show up when a user logs in (managed by group permissions).
A problem occurs if pnRender caching and no force compile settings are on.
The first block in the position (say left) renders fine, but subsequent menu blocks ALL inherit the same content.
I'm guessing the cache check in the block rendering code is not using the block ID correctly, so all menu blocks are all rendered as if they are the same.
Anyone else seen this behavior?
To duplicate:
Set up a regular menu block with a few links
Set up another menu block with a few different links.
Set pnRender to CACHE and not force compilation.
Menu 1 renders fine.
Menu 2 title renders fine
Menu 2 links are the same as Menu 1.
RC3 (SVN as of Feb. 28th)
NCM
SwitchBit / UHEweb
EDIT - hmm...NOT seeing this on one copy of an RC3 site, and am on another that went from RC2 - > RC3 via SVN update. Im' goingto look into this further.
edited by: uheweb, Feb 29, 2008 - 01:17 PM
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
pnRender cache and menu blocks
-
- Rank: Helper
- Registered: Sep 16, 2004
- Last visit: Oct 21, 2009
- Posts: 731
-
- Rank: Helper
- Registered: Sep 16, 2004
- Last visit: Oct 21, 2009
- Posts: 731
EDIT - see last comment above, I'm going to try it on a clean install, and an upgraded .764 to RC3. Ignore below until I report back
Looks like the issue is in menu.php of /system/Blocks/pnblocks
The pnRender instance references Blocks, and pnUserGetVar('uid') - Line 58 of Blocks_menublock_display
So, several instances of the same menu block would only create one cache - the first menu block.
This is why the title is ok, but the content is duplicated in subsequent blocks.
Perhaps a blockid or blocktitle should be added to the cache id to avoid this.
NCM
SwitchBit / UHEweb
Let me know if you'd like me to post this as a bug in the tracker.
edited by: uheweb, Feb 29, 2008 - 01:19 PM -
- Rank: Registered User
- Registered: Jan 26, 2005
- Last visit: Oct 21, 2009
- Posts: 22
I confirm this problem. With PnRender activated and two or more menu blocks, the links are the same as first menu block. -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
This bug is now fixed in SVN for both the menu and extmenu blocks.
-Mark
--
Visit My homepage and Zikula themes.
- Moderated by:
- Support
