Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 08:08:54 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155551 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Problem with the templeron-template after update sp1 (2.8.2.)  (Read 829 times)
webby

Offline Offline

Posts: 85


« on: September 04, 2011, 02:48:38 PM »

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 Smiley Smiley
Logged
NaHoW

Offline Offline

Posts: 2


« Reply #1 on: September 05, 2011, 10:50:53 AM »

Bump.

I have the same problem, hope someone will actually reply here with a solution.
Logged
dbs
WebsiteBaker Org e.V.

Offline Offline

Posts: 3719


WWW
« Reply #2 on: September 05, 2011, 11:30:16 AM »

i don't know this template.
plz post a link to the template or show the index.php.
Logged

DarkViper
Development Team
*****
Offline Offline

Posts: 1253


« Reply #3 on: September 05, 2011, 11:45:01 AM »

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.
Logged

Anleitungen lesen und selber nachdenken ist anstrengend...  Da lass ich doch lieber andere für mich denken...

In 1984:  Nineteen Eighty-Four is a unrealistic utopia!!
In 2012:  Nineteen Eighty-Four is a little piece only of our reality!!
NaHoW

Offline Offline

Posts: 2


« Reply #4 on: September 05, 2011, 03:25:11 PM »

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
Logged
VCRulez

Offline Offline

Posts: 8


« Reply #5 on: September 19, 2011, 11:14:51 AM »

Same problem here. Would be great if someone could provide help with the correct code. I also think, that this theme is still popular.
Logged
DarkViper
Development Team
*****
Offline Offline

Posts: 1253


« Reply #6 on: September 19, 2011, 12:13:29 PM »

ok, this should work:

1.: remove any code between <!-- Top Menu --> and <!-- // Top Menu -->
2: replace it by following code:

Code:
<?php
show_menu2
(0SM2_ROOTSM2_STARTSM2_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>'falsefalse);

?>


untested and without any guaranty!  wink
Logged

Anleitungen lesen und selber nachdenken ist anstrengend...  Da lass ich doch lieber andere für mich denken...

In 1984:  Nineteen Eighty-Four is a unrealistic utopia!!
In 2012:  Nineteen Eighty-Four is a little piece only of our reality!!
dbs
WebsiteBaker Org e.V.

Offline Offline

Posts: 3719


WWW
« Reply #7 on: September 19, 2011, 01:23:31 PM »

short tested, code should better be:

Code:
<!-- Top Menu -->
<?php
show_menu2
(0SM2_ROOTSM2_STARTSM2_ALL|SM2_PRETTY
           
'<li class="premuto"><a class="menuHead" href="[url]" title="[page_title]">[menu_title]</a>'
           
'<li class="divisoremenu">&nbsp;</li>'
           
'<ul id="menu">'
           
'</ul>'falsefalse);

?>

<!-- // Top Menu -->
Logged

VCRulez

Offline Offline

Posts: 8


« Reply #8 on: September 20, 2011, 11:56:10 AM »

short tested, code should better be:

Code:
<!-- Top Menu -->
<?php
show_menu2
(0SM2_ROOTSM2_STARTSM2_ALL|SM2_PRETTY
           
'<li class="premuto"><a class="menuHead" href="[url]" title="[page_title]">[menu_title]</a>'
           
'<li class="divisoremenu">&nbsp;</li>'
           
'<ul id="menu">'
           
'</ul>'falsefalse);

?>

<!-- // Top Menu -->
Working fine! Thank you very much! smiley
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!