Hi
I've got this error after the sp1-update:
"Fatal error: Call to a member function fetchRow() on a non-object in /data/www/mtmerne.dk/templates/templeron/index.php on line 68"
What is this and how to solve it
Thank you :) :)
Bump.
I have the same problem, hope someone will actually reply here with a solution.
i don't know this template.
plz post a link to the template or show the index.php.
templeron is a template from Nov. 2006 and was designed for WebsiteBaker 2.6
it does not include any show_menu() nor show_menu2() call. But it tries to access a not existing object '$menu1' in line 68.
Can be that this object existed in WB2.6... but never since 2.8.0.
The one and only way to use is to remove the code between the lines 68 and 78 and replace it by a normal show_menu2() call.
Hey,
Thanks for the reply, yes already noticed that.
I already tried to change the argument but then the menu is totally messed up and I don't know how to code properly so the menu keeps working.
Is it possible to update the template in the repo? Since this is the best template for WebsiteBaker if you ask me.
If not, how can I code that argument back into it?
Kind regards
Same problem here. Would be great if someone could provide help with the correct code. I also think, that this theme is still popular.
ok, this should work:
1.: remove any code between <!-- Top Menu --> and <!-- // Top Menu -->
2: replace it by following code:
<?php
show_menu2(0, SM2_ROOT, SM2_START, SM2_ALL|SM2_PRETTY,
'<li class="premuto"><a href="[url]" title="[page_title]">[menu_title]</a>',
'<li class="divisoremenu"></li></li>',
'<ul class="menu"><li class="divisoremenu"></li>',
'</ul>', false, false);
?>
untested and without any guaranty! ;-)
short tested, code should better be:
<!-- Top Menu -->
<?php
show_menu2(0, SM2_ROOT, SM2_START, SM2_ALL|SM2_PRETTY,
'<li class="premuto"><a class="menuHead" href="[url]" title="[page_title]">[menu_title]</a>',
'<li class="divisoremenu"> </li>',
'<ul id="menu">',
'</ul>', false, false);
?>
<!-- // Top Menu -->
Quote from: dbs on September 19, 2011, 02:23:31 PM
short tested, code should better be:
<!-- Top Menu -->
<?php
show_menu2(0, SM2_ROOT, SM2_START, SM2_ALL|SM2_PRETTY,
'<li class="premuto"><a class="menuHead" href="[url]" title="[page_title]">[menu_title]</a>',
'<li class="divisoremenu"> </li>',
'<ul id="menu">',
'</ul>', false, false);
?>
<!-- // Top Menu -->
Working fine! Thank you very much! :-)
Unfortunately, its not working for me. I get the error below
Parse error: syntax error, unexpected '&', expecting T_STRING or T_VARIABLE or '$' in /home/awutse/public_html/templates/templeron/index.php on line 48
Can anyone help me?
Thanks
Nene
Hi, seems the forum has changed the posted code.
this: '
should be this: '