I have a hidden menu item, alias: "welcome-to-the-9-11-truth-action-project" configured to display a single K2 item, alias: "welcome-to-the-9-11-truth-action-project-newsletter" and that item's category is alias: "subscription-notifications" If I create a link "mysite.org/welcome-to-the-9-11-truth-action-project" a page displays, the name of the menu item in the breadcrumbs, and the page title I add to the top of each page outside of the K2 programming flow. but the text of the item doesn't display, all I get is a blank page. If I create a direct link to the article like: mysite.org/894-subscription-notifications/375-welcome-to-the-9-11-truth-action-project-newsletter, I get the same thing, a blank page.
I am sure, it is because I am tired and missing the obvious, but I played with this for a couple of hours and cannot figure out the problem.
I am not using the new Joomla Routing System, but I am using the advanced SEF for K2 URLs which is why I can get away with a URL without category and item numbers.
If I tried using a URL like mysite.org/index.php?option=com_k2&view=item&layout=item&id=375
I get a blank and broken page. I have seen this before when troubleshooting the the custom template for the site. Turned out to be a PHP error, but that isn't showing up in error.log right now.
If I string a URL together like https:/mysite.org/557-news-releases/765-senate-resolution-610,
the item displays normally. But this isn't a hidden menu item, News Releases is included in the navigation bar; but as far as I know that shouldn't make a difference, it just means that a menu item won't be displayed on the front end for the Hidden menu item, but I should still able able to link to it and it should display normally.
Oh yes, I am running Joomla 3.8.13 and K2 2.9.1, and I have updated all plugins and components, so everything is up to date. ACYMailing fixed their K2 plugins so that has been attended to as well.
I am sure, it is because I am tired and missing the obvious, but I played with this for a couple of hours and cannot figure out the problem.
I am not using the new Joomla Routing System, but I am using the advanced SEF for K2 URLs which is why I can get away with a URL without category and item numbers.
If I tried using a URL like mysite.org/index.php?option=com_k2&view=item&layout=item&id=375
I get a blank and broken page. I have seen this before when troubleshooting the the custom template for the site. Turned out to be a PHP error, but that isn't showing up in error.log right now.
The problem before is that I was calling getMenu() statically like $menu = getMenu(); when I should have called it dynamically like $menu = JFactory::getApplication()->getMenu();If I string a URL together like https:/mysite.org/557-news-releases/765-senate-resolution-610,
the item displays normally. But this isn't a hidden menu item, News Releases is included in the navigation bar; but as far as I know that shouldn't make a difference, it just means that a menu item won't be displayed on the front end for the Hidden menu item, but I should still able able to link to it and it should display normally.
Oh yes, I am running Joomla 3.8.13 and K2 2.9.1, and I have updated all plugins and components, so everything is up to date. ACYMailing fixed their K2 plugins so that has been attended to as well.
Edited 8 years 1 month ago by Timothy Michel · Reason: Added more details after further research

