Problem with menu manager

Thanks again for helping me... I'm a newbie, so I chose zenphoto to build a nice website, and I try to use "menu manager" to make a custom menu easier :

I use zenpage theme, latest version of zenphoto and zenpage.My problem is the same with print_album_menu plugin activated or not.

I have a problem with making menu : as you can see on my website, by clicking on the menu (I just put one page named "pianiste"), you get this message :

"the request MySQL ( SELECT COUNT(*) FROM `zp_comments` WHERE `type`='pages' AND `inmoderation`=0 AND `private`=0 AND `ownerid`= ) failed. Erreur : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 "

Evrything is fine if I deactivate menu_manager, but I'm not quite qualified to get the menu I want, which would be in this order :

-Some particular pages
-the gallery
-Some other pages
-Contact form

Is there a problem with this plugin ?
Thanks to the team
rhoulian

Comments

  • I forgot to give the url of the site : http://www.lepianiste.net
    ;-)
    Thank you !
  • acrylian Administrator, Developer
    The Zenpage theme tries to create a menu set automatically if the menu manager is enabled on the first start up.

    Try to delete the menu set and create a new one. The album_menu is not needed although said menu above tries to use it internally.
  • Thanks, but this doesn't work...

    I deleted the original custom menu called "zenpage" and created a new one called "menu".

    Then I replace the code in the page sidebar.php, which is beginning like that :

    <?php

    // force UTF-8 Ø

    if(function_exists('printCustomMenu') && getOption('zenpage_custommenu')) {
    ?>
    <div class="menu">
    <?php printCustomMenu('menu','list','',"menu-active","submenu","menu-active",2); ?>
    </div>
    <?php
    } else {
    if(function_exists("printAllNewsCategories")) { ?>
    <div class="menu">
    <h3><?php echo gettext("Actualités"); ?></h3>
    <?php
    printAllNewsCategories(gettext("All news"),TRUE,"","menu-active",true,"submenu","menu-active");
    ?>
    </div>
    <?php } ?>

    <?php if(function_exists("printAlbumMenu")) { ?>
    <div class="menu">
    <h3><?php echo gettext("Galerie Multimedia"); ?></h3>
    <?php
    if(!($_zp_zenpage->news_on_index = getOption("zenpage_zp_index_news")) OR !getOption("zenpage_homepage")) {
    $allalbums = gettext("Gallery index");
    } else {
    $allalbums = "";
    }
    printAlbumMenu("list",NULL,"","menu-active","submenu","menu-active",$allalbums,false,false);
    ?>
    </div>
    <?php } ?>

    <?php if(function_exists("printPageMenu")) { ?>
    <div class="menu">
    <h3><?php echo gettext("Présentation"); ?></h3>
    <?php
    printPageMenu("list","","menu-active","submenu","menu-active"); ?>
    </div>
    <?php }
    } // custom menu check end ?>

    Is there a step I missed ?
    thanks a lot
  • Hi,
    I figured out something, just tell me if I can do better :

    When I add a link in my menu, I chose "zenpage page", and I select the desired one. This doesn't work

    If I do the same thing but using "custom link" (entering the complete adress of the page http://www....... etc), this is working !

    I'll do this for the moment, but if there's something easier just tell me please ;-)
    Bye
  • acrylian Administrator, Developer
    Are you sure the page added is published and the link is as well? Any errors in the server log?
    I am not able to reproduce this with the 1.4.2 beta and the plain Zenpage theme.
  • fretzl Administrator, Developer
    Did you check "Use custom menu" in the Zenpage theme options ?
  • Yes, everything is published.
    The problem is, when I use the first method (chosing custom menu and adding a published zen page), by clicking from the website I'm redirected on that adress : www.mydomain.com/index.php?p=pages&titlelink=name-of-the-page

    Si I just create a custom link, and I put the following adress :
    www.mydomain.com/index.php?p=pages&title=name-of-the-page

    (I delete the letters "link")
    And everything is fine...
  • acrylian Administrator, Developer
    Ah, ok, that's a bug/typo then we probably never noticed as we use modrewrite (which probably most people do nowadays). We will look at that.

    Will be fixed in tonight's nightly of 1.4.2 beta.
Sign In or Register to comment.