• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Page specific logic not working (1.11.1) [solved]
PostPosted: Mon Aug 20, 2012 9:47 pm 
Offline
Forum Members
Forum Members

Joined: Sat Feb 18, 2006 3:35 pm
Posts: 24
Hi all,

Sorry if this issue was raised before, I couldn't find anything related.

Having
Code:
{assign var='test' value='test'}
in the field "Smarty data or logic that is specific to this page:" in the options tab of a page and then, in the template call {$test} would output "test" on my 1.10.3 install, but does nothing on my upgraded install from 1.10.3 to 1.11.1 .

Any Ideas what I could have set wrong?

----------------------------------------------

Cms Version: 1.11.1

Installed Modules:

CMSMailer: 5.2.1
FileManager: 1.4.0
MenuManager: 1.8.3
ModuleManager: 1.5.5
News: 2.12.8
Printing: 1.1.2
Search: 1.7.7
ThemeManager: 1.1.7
TinyMCE: 2.9.11
FormBuilder: 0.7.3
Captcha: 0.4.5
CGExtensions: 1.30
CGSimpleSmarty: 1.5.2
CGFeedMaker: 1.0.16
CGGoogleMaps: 2.3.1
CMSPrinting: 1.0.3
MicroTiny: 1.2.3

Config Information:

php_memory_limit:
process_whole_template:
output_compression: false
max_upload_size: 20000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale: de_DE.UTF-8
default_encoding: utf-8
admin_encoding: utf-8
set_names: true

Php Information:

phpversion: 5.3.3-7+squeeze14
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 60
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 20M
upload_max_filesize: 20M
session_save_path: /var/lib/php5 (1733)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)

Server Information:

Server Api: apache2handler
Server Db Type: MySQL (mysql)
Server Db Version: 5.1.63
Server Db Grants: Could not find a suitable "GRANT ALL" permission. This may mean you could have problems installing or removing modules. Or even adding and deleting items, including pages

----------------------------------------------


Last edited by reto on Tue Aug 21, 2012 9:00 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Page specific logic not working (1.11.1)
PostPosted: Mon Aug 20, 2012 10:27 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Wed Sep 05, 2007 8:03 pm
Posts: 3652
Location: The Netherlands
Works for me... My guess is that you don't have a {process_pagedata} tag on top of your template?

_________________
Get nice guestbook messages from your site visitors with the brand new Gbook module.
Integrate Piwik Web Analytics in your site admin with the Piwik module.
Extend your global site settings with the Custom Global Settings module.
The Fourth Dutch CMS Made Simple Workshop on April 9 2011 was great fun! Read all about it here
Announcement: The Fifth Dutch CMS Made Simple Workshop coming up?


Top
 Profile  
 
 Post subject: Re: Page specific logic not working (1.11.1)
PostPosted: Tue Aug 21, 2012 12:39 am 
Offline
Power Poster
Power Poster

Joined: Fri Mar 30, 2007 2:28 am
Posts: 862
Location: London
Try process_whole_template: false

process_pagedata tag has nothing to do with it.


Top
 Profile  
 
 Post subject: Re: Page specific logic not working (1.11.1)
PostPosted: Tue Aug 21, 2012 1:05 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 6587
Location: Fernie British Columbia, Canada
@Jos is correct.

The process_whole_template config var has been removed in 1.11

_________________
Follow me on twitter
--
if you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
----------------
Don't make me angry..... you won't like me when I'm angry....


Top
 Profile  
 
 Post subject: Re: Page specific logic not working (1.11.1)
PostPosted: Tue Aug 21, 2012 1:24 am 
Offline
Power Poster
Power Poster

Joined: Fri Mar 30, 2007 2:28 am
Posts: 862
Location: London
Ok thanks for the clarification and apologises to Jos, so now you need the process_pagedata tag in the head of the template as I have always removed it.

So which is processed first in the template smarty variables in the body or the head?


Top
 Profile  
 
 Post subject: Re: Page specific logic not working (1.11.1)
PostPosted: Tue Aug 21, 2012 7:35 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Wed Sep 05, 2007 8:03 pm
Posts: 3652
Location: The Netherlands
This is a nice article about it: http://www.i-do-this.com/blog/75/Under- ... -Templates

_________________
Get nice guestbook messages from your site visitors with the brand new Gbook module.
Integrate Piwik Web Analytics in your site admin with the Piwik module.
Extend your global site settings with the Custom Global Settings module.
The Fourth Dutch CMS Made Simple Workshop on April 9 2011 was great fun! Read all about it here
Announcement: The Fifth Dutch CMS Made Simple Workshop coming up?


Top
 Profile  
 
 Post subject: Re: Page specific logic not working (1.11.1)
PostPosted: Tue Aug 21, 2012 8:40 am 
Offline
Power Poster
Power Poster

Joined: Fri Mar 30, 2007 2:28 am
Posts: 862
Location: London
Thanks Jos as they say you learning something new everyday. Now where did I put that polyfill !!!


Top
 Profile  
 
 Post subject: Re: Page specific logic not working (1.11.1)
PostPosted: Tue Aug 21, 2012 8:57 pm 
Offline
Forum Members
Forum Members

Joined: Sat Feb 18, 2006 3:35 pm
Posts: 24
Thanks for all the help so far.

this turned out to be quite a nasty issue but had nothing to do with the settings, but with the way CMSMS/Smarty3 parses the templates.

Here is the bug/issue:
I had
Code:
<head profile="http://www.w3.org/2005/10/profile">

(see http://www.w3.org/2005/10/profile and http://www.w3.org/2005/10/howto-favicon for more information)

As it seems the parser expects probably
Quote:
<head>
and will fail if there are attributes in the opening head tag.

My workaround: removed the attribute from the head tag.

Hope this helps anybody in debugging and I'd be glad to see this aknowledged as a bug.

Reto


Top
 Profile  
 
 Post subject: Re: Page specific logic not working (1.11.1) [solved]
PostPosted: Fri Aug 24, 2012 9:26 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 6587
Location: Fernie British Columbia, Canada
The issue with the <head> tag should be fixed for the upcoming 1.11.2 release.

_________________
Follow me on twitter
--
if you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
----------------
Don't make me angry..... you won't like me when I'm angry....


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting