pluck
pluck 4.7 out now, download it today!

pluck support forums

for all your questions about the easiest CMS on the planet

You are not logged in.

Announcement

New registrations are disabled for some spam problems. New registrations will be avaliable soon. If you want to help to keep forum away from spam - contact us.
Please post your bug reports on Launchpad.

#1 12-11-2009 10:33:00

cypher
Member
Registered: 12-11-2009
Posts: 6

Fatal error: Call to undefined function theme_submenu()

Hi there,
I'm new to this whole CMS thing. I just installed pluck on an evohosting site. So far, so good. But whenever I try to install a theme, the theme does not display properly. A whole bunch of stuff is missing, like themes have no menus, and where the sidebar should appear, I get errors like this:

Fatal error: Call to undefined function theme_submenu() in /home/zachjoub/public_html/data/themes/abrasive/theme.php on line 82

You can check out what else is wrong with the theme at www dot zachjoubert dot com

These are the installed modules:

'./configure' '--enable-bcmath' '--enable-calendar' '--enable-dbase' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-pdo=shared' '--enable-soap' '--enable-sockets' '--enable-wddx' '--enable-zend-multibyte' '--enable-zip' '--prefix=/usr' '--with-bz2' '--with-curl=/opt/curlssl/' '--with-curlwrappers' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libexpat-dir=/usr' '--with-libxml-dir=/opt/xml2' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/' '--with-mime-magic' '--with-mm=/opt/mm/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-png-dir=/usr' '--with-pspell' '--with-sqlite=shared' '--with-tidy=/opt/tidy/' '--with-ttf' '--with-xmlrpc' '--with-xpm-dir=/usr' '--with-xsl=/opt/xslt/' '--with-zlib' '--with-zlib-dir=/usr'

Any help would me much appreciated! smile

Offline

#2 12-11-2009 11:24:25

a_bach
developer/module guru
From: Poland
Registered: 24-11-2008
Posts: 439
Website

Re: Fatal error: Call to undefined function theme_submenu()

cypher wrote:

Hi there,
I'm new to this whole CMS thing. I just installed pluck on an evohosting site. So far, so good. But whenever I try to install a theme, the theme does not display properly. A whole bunch of stuff is missing, like themes have no menus, and where the sidebar should appear, I get errors like this:

Fatal error: Call to undefined function theme_submenu() in /home/zachjoub/public_html/data/themes/abrasive/theme.php on line 82

[cut]

Any help would me much appreciated! smile

This is becouse you try to install a theme with submenu on pluck without submenu modification.

Now you can:
1. Edit theme.php in this theme, end remove theme_submenu() part

2. Download submenu modification and use it on your pluck instalation

3. Choose difrent theme  without submenu

Choose with option is best for you.

A_Bach

Offline

#3 12-11-2009 11:35:52

cypher
Member
Registered: 12-11-2009
Posts: 6

Re: Fatal error: Call to undefined function theme_submenu()

Thanks! Where do I get a submenu modification, and how do I install it?

Offline

#4 12-11-2009 16:12:02

cypher
Member
Registered: 12-11-2009
Posts: 6

Re: Fatal error: Call to undefined function theme_submenu()

cypher wrote:

Thanks! Where do I get a submenu modification, and how do I install it?

Ok, think I found one  on this beautiful site: http://pluck.ekyo.pl/en/5.Modules.php
I installed it and it seems to work.

Except, I can't figure out how to give the sidebar a title, like in the theme's screenshot http://www.pluck-cms.org/docs/_detail/a … ons:themes
where it says "titulo de muestro"

This is a more complicated than I expected.

Offline

#5 12-11-2009 18:54:02

a_bach
developer/module guru
From: Poland
Registered: 24-11-2008
Posts: 439
Website

Re: Fatal error: Call to undefined function theme_submenu()

cypher wrote:
cypher wrote:

Thanks! Where do I get a submenu modification, and how do I install it?

Ok, think I found one  on this beautiful site: http://pluck.ekyo.pl/en/5.Modules.php
I installed it and it seems to work.

Except, I can't figure out how to give the sidebar a title, like in the theme's screenshot http://www.pluck-cms.org/docs/_detail/a … ons:themes
where it says "titulo de muestro"

This is a more complicated than I expected.

You must edit theme.php file and before theme_submenu() you will have to add or change html tag (this will be probably h2 or h3.. or sth else smile

A_Bach

Offline

#6 12-11-2009 19:28:30

cypher
Member
Registered: 12-11-2009
Posts: 6

Re: Fatal error: Call to undefined function theme_submenu()

Thank you! big_smile

Offline

#7 28-03-2011 13:21:31

ad
Member
Registered: 28-03-2011
Posts: 3

Re: Fatal error: Call to undefined function theme_submenu()

I have the same problem. Although I don't really understand the instrucyions above.
I have installed pluck 4.6.4. I have downloaded submenu mod. I followed the instructions given in the zip (see below). But still I get this error message and I am not able to add submenu apges within pluck edit page.

Please can anyone help?


index.php

(data/inc/)
editpage.php
functions.admin.php
newpage.php
page_editmeta.php
post_get.php

(data/inc/lang/)
da.php
de.php
en.php
nl.php
pl.php

upload the new files to your server

--------------------------------------------------------------------------------------------------------------
Theme:
--------------------------------------------------------------------------------------------------------------
a two columns example theme is included (evergreen.tar.gz ported to pluck by mecano)

more themes can be fount @ http://www.pluck-cms.org/docs/addons:themes
look for a two columns theme and add theme_submenu function

theme.php --> add the following lines

--------------------------------------------------------------------------------------------------------------

<!-- in theme.php add these lines-->

<div id="sidebar">
    <?php theme_module("sidebar"); ?>
            <li>
                <h2>SubMenu</h2>
                <ul>
                <?php theme_submenu('<li><a href="#file" title="#title">#title</a></li>'); ?>
                </ul>
            </li>
    </div>
    <!-- end #sidebar-->
--------------------------------------------------------------------------------------------------------------
Theme styling:
--------------------------------------------------------------------------------------------------------------

don't  forget to style your new submenu layer in style.css
example 'sidebar':
--------------------------------------------------------------------------------------------------------------
#sidebar {
    float: right;
    width: 220px;
}

#sidebar ul {
    margin: 0;
    padding: 10px 0 0 0;
    list-style: none;
}

#sidebar li {
    margin-bottom: 20px;
}

#sidebar li li {
    margin-bottom: auto;
}

#sidebar li ul {
    padding-left: 20px;
    list-style: square inside;
}

#sidebar h2 {
    padding-bottom: 5px;
    font-size: 1em;
    color: #FFFFFF;
    padding-left: 20px;
    border-bottom: 1px solid #2C2C2C;
    }
--------------------------------------------------------------------------------------------------------------
existing websides:
--------------------------------------------------------------------------------------------------------------
When everything is done, go to Pluck admin --> login
go to:pages Here you can manage, edit and delete your pages

open the existing pages and save them again with your wanted preferences
(show page in menu and / or show page in submenu)

when done the extra line
'$submenu = "yes"' is written to kop1.php, kop2 .php,............  etc.

for fresh installations this is not needed!
--------------------------------------------------------------------------------------------------------------

Offline

#8 04-04-2011 13:13:58

Norbert
Member
Registered: 04-04-2011
Posts: 1
Website

Re: Fatal error: Call to undefined function theme_submenu()

ad wrote:

I have the same problem. Although I don't really understand the instrucyions above.
I have installed pluck 4.6.4. I have downloaded submenu mod. I followed the instructions given in the zip (see below). But still I get this error message and I am not able to add submenu apges within pluck edit page.

Please can anyone help?


Same here. Has anyone an idea?

Offline

Board footer

Powered by FluxBB