Blank pages problem, easy to reproduce. Never had this problem before.
Html block named "begin":
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
{assign var="pretty" value="/"|explode:$smarty.get.page}
{if isset($canonical)}<link rel="canonical" href="{$canonical}" />{elseif isset($content_obj)}<link rel="canonical" href="{$content_obj->GetURL()}" />{/if}
<title>{title} | {sitename}</title>
{metadata}
{cms_stylesheet}
</head>
Template
-----------
{global_content name='begin'}
</__body>
{$pretty[0]}
{content}
<__body>
</__html>
----------
Save gives white screen !!!
/tmp/cache/debug.log gives ...
ERROR DETECTED: Cannot use object of type CMSMS_Dummy_Variable_Value as array at /var/www/vhosts/q-wash.nl/httpdocs/preview/tmp/templates_c/parser1353596484^dd10a1840f43813cd647195dd79bd3add047c6e9.template.appdata;tmp_template.php:30
You can't save the brackets [ ] !
{$pretty|print_r} gives the correct values so it's only a bug in edittemplate.php i guess.
You can save html block with variables like $pretty[1]
Thnx