Page 1 of 1
{solved}Blank pages in admin upgrade 1.10.3 to 1.11.1
Posted: Wed Aug 22, 2012 12:49 pm
by jospanner
System details:
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
Gallery: 1.6
FormBuilder: 0.7.3
CMSPrinting: 1.0.3
MicroTiny: 1.2.3
Config Information:
php_memory_limit:
process_whole_template:
output_compression: false
max_upload_size: 10000000
url_rewriting: mod_rewrite
page_extension: .htm
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true
----------------------------------------------
Front end looks and works fine. In back end, when I click on any page to update/view content its blank. I've tried different admin themes. All modules are up to date. I assume TinyMCE is compatible with 1.11?
Can anyone help please?
Thanks
Re: Blank pages in admin upgrade 1.10.3 to 1.11.1
Posted: Wed Aug 22, 2012 1:19 pm
by Jos
Did you check on error messages with debug turned on?
Re: Blank pages in admin upgrade 1.10.3 to 1.11.1
Posted: Wed Aug 22, 2012 1:24 pm
by jospanner
I turned on debug and it didn't seem to show any errors that I could see.
Re: Blank pages in admin upgrade 1.10.3 to 1.11.1
Posted: Wed Aug 22, 2012 1:27 pm
by jospanner
Ah - found this in the Admin Log
ERROR DETECTED: Call to a member function GetPropertyValue() on a non-object at /home/joannacr/public_html/tmp/templates_c/c1345639064^3d7ba5f4dd7ddf8968c7922156392ba2993219fe.template.28.php:37
Re: Blank pages in admin upgrade 1.10.3 to 1.11.1
Posted: Wed Aug 22, 2012 1:34 pm
by Jos
Maybe a UDT is causing this?
Re: Blank pages in admin upgrade 1.10.3 to 1.11.1
Posted: Wed Aug 22, 2012 1:35 pm
by jospanner
I had this in my template that I think could be the culprit:
<title>
{capture assign='title'}{$content_obj->GetPropertyValue('extra1')}{/capture}
{if $title !=''}
{$title}
{else}
{title}
{/if}</title>
<meta name="description" content="{capture assign='description'}{$content_obj->GetPropertyValue('extra2')}{/capture}
{if $description !=''}
{$description}
{else}
Bespoke and affordable website design for businesses in Buckingham and Milton Keynes and throughout Buckinghamshire, Bedfordshire, Northamptonshire & Oxfordshire.{/if}"/>
Problem is - I have this in several sites as added by an seo specialist - can you please point out what is causing an issue with the code?
Thanks
Re: Blank pages in admin upgrade 1.10.3 to 1.11.1
Posted: Wed Aug 22, 2012 1:54 pm
by Jos
I think that the $content_obj variable isn't available anymore
Re: Blank pages in admin upgrade 1.10.3 to 1.11.1
Posted: Wed Aug 22, 2012 2:07 pm
by jospanner
Thanks Jos - very helpful. Will check it out.
Re: {solved}Blank pages in admin upgrade 1.10.3 to 1.11.1
Posted: Wed Aug 22, 2012 2:12 pm
by jospanner
You don't happen to know an alternative that achieves the same effect by any chance?
Re: Blank pages in admin upgrade 1.10.3 to 1.11.1
Posted: Wed Aug 22, 2012 6:21 pm
by Jos
I guess you can solve it like this (not tested)
Replace:
Code: Select all
{capture assign='title'}{$content_obj->GetPropertyValue('extra1')}{/capture}
With this:
Code: Select all
{page_attr key='extra1' assign='title'}
And replace:
Code: Select all
{capture assign='description'}{$content_obj->GetPropertyValue('extra2')}{/capture}
With this:
Code: Select all
{page_attr key='extra2' assign='description'}
Re: {solved}Blank pages in admin upgrade 1.10.3 to 1.11.1
Posted: Wed Aug 22, 2012 7:01 pm
by jospanner
That's it !
Thank you so much Jos - really appreciate it as I would never have come up with the solution.