"Page ID may not be null." When using Theme Builder
We are using Confluence 3.5.1 with Theme Builder 4.2.3. The Scroll PDF menu item is integrated as follows: "{compound-menuitem:scrollpdf|caption=Scroll PDF Exporter}".
The problem: When trying to export a page, the error message "Internal Server Error (500) Page ID may not be null." is displayed.
I tried to solve the problem as described here "http://support.k15t.com/entries/20791143-Probleme-mit-theme-builder-" but this didn't help...
Any suggestions?
Thanks in advance
Arne
-
Here's an unconventional workaround that fixed the problem:
I added a labels menu entry to the menu " {menuitem}{builder-labels}{menuitem}". After adding this, the exporter works fine...and I don't know why ;-)There is still the question if there's another solution or what the compound-menu should look like.
Best regards
Arne
-
Hi Arne,
our exporters need to know the ID of the page you are currently viewing. In default Confluence themes this is stored in the Javascript variable 'AJS.params.pageId'.
So your theme must ensure that this one as well as 'AJS.params.spaceKey' are set correctly. Since I'm not familiar with Theme Builder I can't provide further instructions on how to do this, though.
Hope that explains the problem.
Cheers,
Jens -
Hi Jens,
thanks for your answer. I thought there is a solution as the one stated here: http://www.k15t.com/display/SUPPORT/Adding+Scroll+links+to+Theme+Builder+menus+manually
as I thought this is a known problem.We will check both JavaScript variables.
Thanks a lot and best regards
Arne
Please sign in to leave a comment.
Comments
3 comments