WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Problem with the templeron-template after update sp1 (2.8.2.)
  • Print
Pages: [1]   Go Down

Author Topic: Problem with the templeron-template after update sp1 (2.8.2.)  (Read 11804 times)

Offline webby

  • Posts: 90
Problem with the templeron-template after update sp1 (2.8.2.)
« on: September 04, 2011, 03: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 :) :)
Logged

NaHoW

  • Guest
Re: Problem with the templeron-template after update sp1 (2.8.2.)
« Reply #1 on: September 05, 2011, 11:50:53 AM »
Bump.

I have the same problem, hope someone will actually reply here with a solution.
Logged

Offline dbs

  • Betatester
  • **
  • Posts: 8914
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Problem with the templeron-template after update sp1 (2.8.2.)
« Reply #2 on: September 05, 2011, 12:30:16 PM »
i don't know this template.
plz post a link to the template or show the index.php.
Logged
https://onkel-franky.de

Offline DarkViper

  • Forum administrator
  • *****
  • Posts: 3087
  • Gender: Female
Re: Problem with the templeron-template after update sp1 (2.8.2.)
« Reply #3 on: September 05, 2011, 12:45:01 PM »
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
Der blaue Planet - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen

"We need education to cope with digitalization - and NOT the digitalization of education.!"

Tägliches Stoßgebet: Oh Herr, wirf Hirn vom Himmel !

NaHoW

  • Guest
Re: Problem with the templeron-template after update sp1 (2.8.2.)
« Reply #4 on: September 05, 2011, 04: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

Offline VCRulez

  • Posts: 10
  • Gender: Male
Re: Problem with the templeron-template after update sp1 (2.8.2.)
« Reply #5 on: September 19, 2011, 12:14:51 PM »
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

Offline DarkViper

  • Forum administrator
  • *****
  • Posts: 3087
  • Gender: Female
Re: Problem with the templeron-template after update sp1 (2.8.2.)
« Reply #6 on: September 19, 2011, 01:13:29 PM »
ok, this should work:

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

Code: [Select]
<?php
show_menu2
(0, SM2_ROOT, SM2_START, SM2_ALL|SM2_PRETTY, 
           &
#39;<li class="premuto"><a href="[url]" title="[page_title]">[menu_title]</a>&#39;, 
           
&#39;<li class="divisoremenu"></li></li>&#39;, 
           
&#39;<ul class="menu"><li class="divisoremenu"></li>&#39;, 
           
&#39;</ul>&#39;, false, false);

?>


untested and without any guaranty!  ;-)
Logged
Der blaue Planet - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen

"We need education to cope with digitalization - and NOT the digitalization of education.!"

Tägliches Stoßgebet: Oh Herr, wirf Hirn vom Himmel !

Offline dbs

  • Betatester
  • **
  • Posts: 8914
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Problem with the templeron-template after update sp1 (2.8.2.)
« Reply #7 on: September 19, 2011, 02:23:31 PM »
short tested, code should better be:

Code: [Select]
<!-- Top Menu -->
<?php
show_menu2
(0, SM2_ROOT, SM2_START, SM2_ALL|SM2_PRETTY, 
           &
#39;<li class="premuto"><a class="menuHead" href="[url]" title="[page_title]">[menu_title]</a>&#39;, 
           
&#39;<li class="divisoremenu">&nbsp;</li>&#39;, 
           
&#39;<ul id="menu">&#39;, 
           
&#39;</ul>&#39;, false, false);

?>

<!-- // Top Menu -->
Logged
https://onkel-franky.de

Offline VCRulez

  • Posts: 10
  • Gender: Male
Re: Problem with the templeron-template after update sp1 (2.8.2.)
« Reply #8 on: September 20, 2011, 12:56:10 PM »
Quote from: dbs on September 19, 2011, 02:23:31 PM
short tested, code should better be:

Code: [Select]
<!-- Top Menu -->
<?php
show_menu2
(0, SM2_ROOT, SM2_START, SM2_ALL|SM2_PRETTY, 
           &
#39;<li class="premuto"><a class="menuHead" href="[url]" title="[page_title]">[menu_title]</a>&#39;, 
           
&#39;<li class="divisoremenu">&nbsp;</li>&#39;, 
           
&#39;<ul id="menu">&#39;, 
           
&#39;</ul>&#39;, false, false);

?>

<!-- // Top Menu -->
Working fine! Thank you very much! :-)
Logged

Offline nene

  • Posts: 59
Re: Problem with the templeron-template after update sp1 (2.8.2.)
« Reply #9 on: August 16, 2013, 02:10:03 PM »
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
Logged

Offline dbs

  • Betatester
  • **
  • Posts: 8914
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Problem with the templeron-template after update sp1 (2.8.2.)
« Reply #10 on: August 16, 2013, 02:39:51 PM »
Hi, seems the forum has changed the posted code.
this:  &#39;
should be this: '
Logged
https://onkel-franky.de

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Problem with the templeron-template after update sp1 (2.8.2.)
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2