I can't really understand why I am getting the following error:
TinyButStrong Error (Object or Array value expected): Can't merge [var.settings.stylesheet.value] because the item before 'stylesheet' is neither an object nor an array. Its type is string. This message can be cancelled using parameter 'noerr'. |
The settings.stylesheet.value exists, as tbs also indicates it is a string. The two lines this happens for in the template are these:
<link rel="stylesheet" href="[var.dir.css;noerr][var.settings.stylesheet.value]" type="text/css">
<link rel="stylesheet" href="[var.dir.css;noerr][var.settings.stylesheet_print.value]" type="text/css" media="print"> |
Now, the weirdest thing is that although I am using an IIS6 server I have been developing at IIS4/5 or whatever comes with win2000 and everything *was* fine untill I reinstalled IIS and it gave me this message. I later on installed apache 2.0.54 which is my current local server and it also gives me the error where the EXACT SAME code doesn't give that problem on the live server (I copied it from the IIS6 live server).
If this was just a question of a weird message but everything working I would use noerr... ...but it ain't working either.
Other similar pieces of code do not give the same error:
[onload;file=[var.tmpl.breadcrumb]]
[onload;file=[var.tmpl.menu]]
[onload;file=[var.tmpl.section.main]]
[onload;file=[var.tmpl.section.side]] |
The only difference between the code that goes wrong and the code that goes right is that the tmpl variable is an array where the settings variable is an object.