Does anyone else see a strange string (apparently generated by Smarty) on top of the article page, when pnRender is enabled?
The string looks like this (example):
f8d698aea36fcbead2b9d5359ffca76f{insert_cache a:1:{s:4:"name";s:12:"getstatusmsg";}}f8d698aea36fcbead2b9d5359ffca76f
It disappears when I deactivate EZComments.
Any idea how to fix it?
--
I'll have it up in no time. It's an official term of BloodElf engineers union. It should not be interpreted as a reasonable estimation of the actual time it will take to complete a task in any way, shape or form.
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- rgasch created topic »Using PageUtil::addVar() to load script code« 11:48 AM
- 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
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
EZComments and pnRender
-
- Rank: Softmore
- Registered: Jun 20, 2008
- Last visit: May 07, 2010
- Posts: 109
-
- Rank: Softmore
- Registered: Jun 20, 2008
- Last visit: May 07, 2010
- Posts: 109
I think I found what the problem was, but as to why it was a problem, I'm still oblivious.
The line:
Code
<!--[insert name="getstatusmsg"]-->
in my template was causing the strange message to pop up, when I removed it, the message stopped appearing. I'm still testing to see if there were no side effects to removing this line and I'm hoping someone will be kind enough to share with me why did this cause a problem only when pnRender was enabled?
--
I'll have it up in no time. It's an official term of BloodElf engineers union. It should not be interpreted as a reasonable estimation of the actual time it will take to complete a task in any way, shape or form. -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
Mmmmm
I guess that it get solved with the reference invoking the pnRender instance:
I guess it doesn't happen in Zikula 1.2 because that...Code
$render = & pnRender::getInstance('ModName');
--
- Mateo T. -
Mis principios... son mis fines -
- Rank: Softmore
- Registered: Jun 20, 2008
- Last visit: May 07, 2010
- Posts: 109
damn, some bug took me out for few days
thanks for your help Mateo, I get it, I need to upgrade.
can you help me with one more thing?
I'm making a custom adjustment for the code (I know! I know! can't help it!) and I'm kind of stuck.
I want to change the avatar details that are retrieved by EZComments. I don't want it to use the core avatar, but the one user has defined in phpBB.
now I got to the stage where I kind of see where all the comment data is gathered, but I'm scared of looking into pnModAPIFunc to see what it actually does
from what I understand the data is retrieved here:
Code
$items = pnModAPIFunc('EZComments',
'user',
'getall',
compact('mod', 'objectid','sortorder','status','numitems','startnum'));
and this $items table is passed to the function that does the value assigning.
how do I make it take the avatar details from a different place?
--
I'll have it up in no time. It's an official term of BloodElf engineers union. It should not be interpreted as a reasonable estimation of the actual time it will take to complete a task in any way, shape or form. -
- Rank: Softmore
- Registered: Dec 23, 2003
- Last visit: May 05, 2010
- Posts: 351
Ok,
Please guide me, cause I have the same issue, running ZK 1.1.2. Once I have EZComments enabled, anywhere there is a :
Code
<!--[nocache]-->
I get that weird string all over my output.
I was hopeful you found the bug. I have been looking for months now. Can't believe ZK is at 1.2 and these caching issues have not bee ironed out as yet.
On another note, these forums have been acting up as well. Every page I have to refresh cause I get this error:
Code
Fatal error: function name must be a string in /home/zcomm/public_html/includes/classes/Smarty/internals/core.process_cached_inserts.php on line 49
supa
--
Caribbean News
Online Shopping from USA, Canada, UK, France, Germany
On Facebook -
- Rank: Softmore
- Registered: Jun 20, 2008
- Last visit: May 07, 2010
- Posts: 109
Daddysupa, you need to add a news_user_menu.htm template in your theme (copy the news_user_menu.htm you have in your modules/News directory) and remove the line:
Code
<!--[insert name="getstatusmsg"]-->
I don't know if you're experiencing the same issue though.
If I disable the pnRender I don't see any message.
--
I'll have it up in no time. It's an official term of BloodElf engineers union. It should not be interpreted as a reasonable estimation of the actual time it will take to complete a task in any way, shape or form. -
- Rank: Softmore
- Registered: Dec 23, 2003
- Last visit: May 05, 2010
- Posts: 351
Didn't help me, so I guess I am still one of the unlucky ones with the Smartyissue.Code
<!--[nocache]-->
In my news_user_main.htm the only tag similar to above is:
Code
<!--[insert name='getstatusmsg' class='pn-informationmsg']-->
which i commented out and still nada. every nocache tag is wrapped with thos criptic tags and no content in them.
do you have theme caching enabled as well?
supa
--
Caribbean News
Online Shopping from USA, Canada, UK, France, Germany
On Facebook -
- Rank: Softmore
- Registered: Dec 23, 2003
- Last visit: May 05, 2010
- Posts: 351
Don't mean/want to hijack your thread, but i spent a couple weeks well trying to get to the bottom of this.
if you search for: Smarty nocache problem in google TADA!
http://www.google.ca…al&client=firefox-a
even a return from a ZK user in Oct. 2009: http://www.smarty.ne…ewtopic.php?p=32662
Most results even from the Smarty site recommends/fixes the issue by hacking core code, which i am hesitant to do.
But it is a major bother that I can't cache pretty much static news articles.
supa
edited by: daddysupa, datetimebrief
--
Caribbean News
Online Shopping from USA, Canada, UK, France, Germany
On Facebook -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
AragornSG,
your EZComments customization seems proper to do in the templates level. Find THERE where the avatar is displayed, and build a plugin to extract the PNphpBB2 avatar of each user.
I guess it's the better way
And about the pnRender cache, it's true, dirty stuff, fortunately Drak is rewriting the Template Engine for 1.3, also to introduce Dwoo, and I guess we won't have this issues again.
--
- Mateo T. -
Mis principios... son mis fines -
- Rank: Softmore
- Registered: Jun 20, 2008
- Last visit: May 07, 2010
- Posts: 109
Quote
do you have theme caching enabled as well?
nope.
theme cashing makes my site act funny.
Quote
your EZComments customization seems proper to do in the templates level.
on the template level?
how would you do that Mateo?
the templates for each user need to be retrieved from the database, how do you want to do that on template level?
--
I'll have it up in no time. It's an official term of BloodElf engineers union. It should not be interpreted as a reasonable estimation of the actual time it will take to complete a task in any way, shape or form. -
- Rank: Softmore
- Registered: Jun 20, 2008
- Last visit: May 07, 2010
- Posts: 109
Quote
the templates for each user need to be retrieved from the database, how do you want to do that on template level?
I've read your post again and understood what you were saying.
Wouldn't that be a very resource consuming thing to do as opposed to just retrieving proper avatar in the original query?
--
I'll have it up in no time. It's an official term of BloodElf engineers union. It should not be interpreted as a reasonable estimation of the actual time it will take to complete a task in any way, shape or form. -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
Well, what I know is that EZComments already does it in the unefficient way, adding the UserVars in sepparated queries. I guess that we will fix this for 1.3 with the EventManager and Doctrine introduction. Ideally, we will be able to hook a module and insert stuff to the original query. Doctrine Query object rocks!
In the other hand, if PNphpBB2 handles them as user properties it would be better, because that means that the info already there... as the usual Avatar.
--
- Mateo T. -
Mis principios... son mis fines
- Moderated by:
- Support
