ZenphotoCMS Forum
printCustomMenu not appearing on next pages under news - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: printCustomMenu not appearing on next pages under news (/thread-7357.html)



printCustomMenu not appearing on next pages under news - jackdaw - 2010-07-24

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

``

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?




printCustomMenu not appearing on next pages under news - acrylian - 2010-07-24

Perhaps. So as always any error in the server log and if which?




printCustomMenu not appearing on next pages under news - jackdaw - 2010-07-24

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




printCustomMenu not appearing on next pages under news - acrylian - 2010-07-24

Of course..:-) Please try if this also happens with the Zenpage theme.




printCustomMenu not appearing on next pages under news - jackdaw - 2010-07-24

Yes it does. The html output stops at the same point.




printCustomMenu not appearing on next pages under news - sbillard - 2010-07-24

please try the nightly build as this area has been changed and probably fixes your problem.




printCustomMenu not appearing on next pages under news - jackdaw - 2010-07-24

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.




printCustomMenu not appearing on next pages under news - kagutsuchi - 2010-07-24

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.




printCustomMenu not appearing on next pages under news - jackdaw - 2010-07-25

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 .




printCustomMenu not appearing on next pages under news - acrylian - 2010-07-25

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




printCustomMenu not appearing on next pages under news - jackdaw - 2010-07-25

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




printCustomMenu not appearing on next pages under news - acrylian - 2010-07-26

As always please try the Zenpage theme as well.




printCustomMenu not appearing on next pages under news - jackdaw - 2010-07-26

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




printCustomMenu not appearing on next pages under news - acrylian - 2010-07-26

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.




printCustomMenu not appearing on next pages under news - jackdaw - 2010-07-27

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.




printCustomMenu not appearing on next pages under news - acrylian - 2010-07-27

TinyMCE is still there. Try disabling and enabling the plugin.




printCustomMenu not appearing on next pages under news - jackdaw - 2010-07-27

Ahum... Thank you. In the future I will always try that first.