printCustomMenu not appearing on next pages under news

I'm using this code in my sidebar to show a custom menu:

`<?php printCustomMenu('hoofdmenu','list','hoofdmenu','hoofdmenuactive','','',0,false,'','') ?>`

It works perfecty on the main news page, but when viewing the next page with older entries, the code somehow breaks the page. When viewing the source of the page, the html output stops just before this function should be executed. Perhaps a bug?

Comments

  • acrylian Administrator, Developer
    Perhaps. So as always any error in the server log and if which?
  • You mean this?

    `[Sat Jul 24 19:31:28 2010] [error] [client 84.24.72.107] PHP Fatal error: Call to a member function getTitle() on a non-object in /var/www/vhosts/degroeneman.nl/httpdocs/zp-core/zp-extensions/menu_manager.php on line 298, referer: http://www.degroeneman.nl/news`
  • acrylian Administrator, Developer
    Of course..:-) Please try if this also happens with the Zenpage theme.
  • Yes it does. The html output stops at the same point.
  • please try the nightly build as this area has been changed and probably fixes your problem.
  • Is it necessary to do a complete replacement of all the ZP files? Because I just replaced the menu manager files with the latest nightly and this didn't solve this problem.
  • Yes, you should replace all Zenphoto files. It's best not to mix-and-match files from across versions. Doing so can cause all sorts of errors.
  • Thank you. Indeed replacing all the files fixed the problem with the menu :). At first I never do that when testing, because it's a 'lot' of work to replace all the files and run setup again. Not really ofcourse, but an automatic backup somewhere in the future would be very nice ;).
  • acrylian Administrator, Developer
    Well, we always told that and even on the installation page. We don't test newer plugins with older releases.

    As said by sbillard on the other thread the automatic database backup is now on the list for 1.3.2, but backuping your files is really our task. Since you should not change zp-core files anyway, there is not that much to backup anyway..
  • Something else now. After upgrading to the latest nightly, replacing all the files, except for the theme files ofcourse, my custom index page won't load. It's still in my themes folder and I've chosen it on the themes option page. Changing the custom index page to something else temporarily doesn't work either, it keeps switching back to home.php after I hit the save button (home.php is the name of my custom index page).
  • acrylian Administrator, Developer
    As always please try the Zenpage theme as well.
  • In the Zenpage theme the custom index page always switches back to 'archive'. In can't choose 'gallery' for example.

    EDIT: I converted the home.php to a simple index.html. That always works ;)
  • acrylian Administrator, Developer
    The Zenpage theme actually by uses gallery.php by default or an (unpublished) Zenpage page. I don't think the gallery index page ever worked with that theme.

    If this worked for you before please open a ticket with an exact description so sbillard sees it later.
  • OK, I will. By the way, with that nightly I don't have the tinymce editor no more with zenpage. I tried switching to another option under tinymce instead of the default zp script, but still no editor.
  • acrylian Administrator, Developer
    TinyMCE is still there. Try disabling and enabling the plugin.
  • Ahum... Thank you. In the future I will always try that first. :)
Sign In or Register to comment.