Search found 12 matches

by dbuenzli
Mon Jan 14, 2013 9:07 pm
Forum: [locked] Installation, Setup and Upgrade
Topic: [SOLVED] Upgrade to 1.11.4, ContentPreCompile not called
Replies: 3
Views: 1906

Re: Upgrade to 1.11.4, ContentPreCompile not called with con

Thanks for the fix ! It works. I was trying, at the moment, to understand what was happening in CMS_Content_Block but I wasn't getting anywhere... For those interested before the next release, the fix is easy to integrate, see the following link (as code, square brackets seems to confuse the forum s...
by dbuenzli
Mon Jan 14, 2013 7:47 pm
Forum: [locked] Installation, Setup and Upgrade
Topic: [SOLVED] Upgrade to 1.11.4, ContentPreCompile not called
Replies: 3
Views: 1906

Re: Upgrade to 1.11.4, ContentPreCompile not called with con

I tried on a fresh 1.11.4 install. The same problem occurs. The content of the page has a hash in $smarty->_current_file and thus doesn't generate a ContentPreCompile event in this code . Is that a deprecated way of doing things or is it a bug ? I need to be able to distinguish between compilation o...
by dbuenzli
Mon Jan 14, 2013 6:26 pm
Forum: [locked] Installation, Setup and Upgrade
Topic: [SOLVED] Problem with UDT upgrading from 1.9.4.3 to 1.11.4
Replies: 10
Views: 3475

Re: [SOLVED] Problem with UDT upgrading from 1.9.4.3 to 1.11

But it didn't work even when I did not use $gCms->variables . That is: $lang = explode("/", cms_utils::get_current_content()->HierarchyPath(), 2); didn't work either. It only worked when I added the isset condition to test the result of cms_utils::get_current_content() . My (wild) guess is...
by dbuenzli
Mon Jan 14, 2013 4:50 pm
Forum: [locked] Installation, Setup and Upgrade
Topic: [SOLVED] Problem with UDT upgrading from 1.9.4.3 to 1.11.4
Replies: 10
Views: 3475

[SOLVED] Re: Problem with UDT upgrading from 1.9.4.3 to 1.11

The fix works, I got the hint from here. I'm still taking any better explanation on why this is needed, somehow I don't fully grasp what's written there ("smarty cannot properly trap (?) a template"). Thanks.
by dbuenzli
Mon Jan 14, 2013 3:07 pm
Forum: [locked] Installation, Setup and Upgrade
Topic: [SOLVED] Upgrade to 1.11.4, ContentPreCompile not called
Replies: 3
Views: 1906

[SOLVED] Upgrade to 1.11.4, ContentPreCompile not called

In my upgrade to 1.11.4, the event ContentPreCompile is never called on the content of my pages. A little bit of logging indicates me that the code path for 'content' in this file is never taken on my content because the value of $smarty->_current_file is a kind of hash. This problem was previously ...
by dbuenzli
Mon Jan 14, 2013 9:12 am
Forum: [locked] Installation, Setup and Upgrade
Topic: [SOLVED] Problem with UDT upgrading from 1.9.4.3 to 1.11.4
Replies: 10
Views: 3475

Re: Problem with UDT upgrading from 1.9.4.3 to 1.11.4

Not sure exactly why (I'll gladly take an explanation) but replacing the $lang line with the following solves the blank editing page/inability to save template problem. $c = cms_utils::get_current_content(); if (isset($c)) { $lang = explode('/', $c->HierarchyPath(), 2); } Cannot check right now if t...
by dbuenzli
Mon Jan 14, 2013 8:42 am
Forum: [locked] Installation, Setup and Upgrade
Topic: [SOLVED] Problem with UDT upgrading from 1.9.4.3 to 1.11.4
Replies: 10
Views: 3475

Re: Problem with UDT upgrading from 1.9.4.3 to 1.11.4

Thanks Rolf but removing these spaces don't change anything. As I said in my first post the problem specifically lies on the $lang line. If I change it to a constant string everything works fine.
by dbuenzli
Mon Jan 14, 2013 7:59 am
Forum: [locked] Installation, Setup and Upgrade
Topic: [SOLVED] Problem with UDT upgrading from 1.9.4.3 to 1.11.4
Replies: 10
Views: 3475

Re: Problem with UDT upgrading from 1.9.4.3 to 1.11.4

Thanks but that doesn't really help, I already mostly did that.

The problem lies in this UDT. If I remove the call to it in the template I can edit my pages.
by dbuenzli
Sun Jan 13, 2013 11:32 pm
Forum: [locked] Installation, Setup and Upgrade
Topic: [SOLVED] Problem with UDT upgrading from 1.9.4.3 to 1.11.4
Replies: 10
Views: 3475

[SOLVED] Problem with UDT upgrading from 1.9.4.3 to 1.11.4

Hello, I have the blank editing page/cannot save template problem. It seems it is due to the following UDT: $gCms = cmsms (); // Sets the smarty variable $wsite_lang // The root of the hierarchy path of the current page defines the language. $lang = explode ("/", $gCms->variables['content_...
by dbuenzli
Sun Nov 13, 2011 12:28 pm
Forum: Developers Discussion
Topic: 1.10.1 Module no longer receives ContentPreCompile events
Replies: 2
Views: 1800

Re: 1.10.1 Module no longer receives ContentPreCompile event

Couldn't find anything meaningful in the errors. Here's a repro case. In the module Silent below, DoEvent gets called at the right time on a clean install of 1.9.4.3. It is never called on a clean install of 1.10.1. Best, Daniel <?php class Silent extends CMSModule { public function __construct() { ...
by dbuenzli
Sat Nov 12, 2011 6:15 pm
Forum: Developers Discussion
Topic: 1.10.1 Module no longer receives ContentPreCompile events
Replies: 2
Views: 1800

1.10.1 Module no longer receives ContentPreCompile events

Hello, I tried an upgrade to 1.10.1 but one of my module no longer receives ContentPreCompile events (cf. below for the relevant parts). Does anybody know where that could come from ? Btw. is the plugin api formally documented somewhere ? Thanks. Daniel function IsPluginModule () { return false; } f...

Go to advanced search