Issues with "undefined" in new installation

1 month 5 days ago #1905
Topic Author
Håkan Johansson's Avatar
Posts: 13
Issues with "undefined" in new installation

Just installed JMP Tree in my local development environment. I have 3 issues:


1. Using my old Protostar vertical menu setup in the right pos 7 it made sense to have articles connected to a menu with sub menus. I however want to have a horisontal menu at the top of the page (pos 1). With that I cannot have menues with sub-menus connecting to articles. Instead I want to define them as "Menu heading" and move their articles to a "intro-sub-menu". In some cases it works fine, in most cases not. I have not been able to find out why beside that it only seem to happen with menu type "Menu heading" and "Separator". I get are 3-4 boxes, seemingly between pos 3 and the article, with "Notice: Undefined index: option in C:\wamp\www\[path]\components\com_content\views\article\view.html.php on line xxx".

It happens when I set menu type as "Menu heading" or "Separator" on main menu level (1) as well as on the next level (2). I have up to three levels.

It happens independently if I use "Submenu expands by "Hover" or "Click" (I want "Hover")

The solution to the problem is not to use menu type "URL" and # since that creates a trailing # in the present URL if the user clicks the menu.


2. One of the menu headings on level 2 I changed to "Menu heading" has turned bold (which I don't want).


3. Choosing menu Layout "Accordion" gives me two issues:
3a. Is vertical even since I have Menu class suffix set to "jmb-tree-nav-horizontal"
3b. It gives me one error box "Notice: Undefined variable: open_menu in C:\wamp\www\mb219dev\modules\mod_jmb_tree_pro\tmpl\accordion.php on line 183" in the middle of the menu. I also get the errors mentioned in issue 1 above.


More error info upon request from you. Site not available on public server, I hope we can skip that step but let me know if absolutely necessary.

I run Joomla 3.9.1 on a Windows 10 machine with Wamp (Apache 2.4.25, PHP 7.1.0, mySQL 5.7.17). Have restarted Chrome, WAMP and Windows and cleaned caches in different combinations but nothing changes.

Best regards

Håkan

1 month 4 days ago #1906
Eugene's Avatar
Posts: 450
Issues with "undefined" in new installation

Hello Håkan,

1. I am not sure I understood you correctly, sorry. Protostar is the template, you can display any module in its positions. There is a special position to display menu via core mod_menu module. It is possible to customize the menu via module suffix which means the use of special CSS rules.
You do not need a visible menu to connect articles with navigation structure. I mean you can create a menu item with custom alias and do not display this menu anywhere, but SEF links will be generated according to this structure.

Since JMB Tree Pro has own CSS styles (can be disabled optionally), you can display the menu in any template position.
So, according to your message, it is not clear how the structure is organized and what module is used.

Notice: Undefined index: option in C:\wamp\www\[path]\components\com_content\views\article\view.html.php on line xxx".

According to this path, we see the notice is related to com_content (Joomla articles component), not to any module.
I guess there are some changes in Joomla 3.9 API in comparison to 3.8.x. If it is so, we can report this issue to Joomla developers. But I'd like to have a look at this issue on a website first or give more information about your site structure.

By the way, notice is not the error, it can be hidden via Global configuration, but, of course, it is better to fix the code.

2. This is CSS customization. You can change rules and change the design. Please read this tutorial:
JMB Tree Pro for developers
The bold style for heading is here: /[YOURSITE]/media/mod_jmb_tree_pro/megamenu/css/default.php

.jmb-tree-megamenu.jmb-tree-style-default nav > ul ul li .jmb-tree-item-heading.jmb-tree-link {
  font-weight: bold;
}

You can change it to:
font-weight: normal;

3. jmb-tree-nav-horizontal class should be used for Default layout only (see documentation). There is no style for horizontal accordion.

3.b.
Notice: Undefined variable: open_menu in C:\wamp\www\mb219dev\modules\mod_jmb_tree_pro\tmpl\accordion.php on line 183

It is interesting. I could not reproduce it on a local site, but I suppose it occurs due to a specific menu structure. Could you provide access to the live site to see this issue, please?


Like our extensions and support?
Add your voice to the JED listing with a 100 score review:: bit.ly/2ciJBqC
Thanks!
Last edit: 1 month 4 days ago by Eugene.

1 month 4 days ago #1907
Topic Author
Håkan Johansson's Avatar
Posts: 13
Issues with "undefined" in new installation

Morning and thanks for a quick response!

I propagated the development environment to a test server. I'll send you the URL separately.

Interestingly enough I don't get error #1 there so there is something different between the environments. First time this happens since I try to have a simple installation as possible, 2-3 well known extensions and no custamizations. Don't know if possible to give you access there. Later today I will send you the specific error messages and other files you may need (let me know which) and hopefully we can take it from there!

1 month 4 days ago #1908
Topic Author
Håkan Johansson's Avatar
Posts: 13
Issues with "undefined" in new installation

So, back again for trying to sort out what is causing the issues above in my development environment. The installation on the the test server that I've sent you is an exact copy of the development environment. Hence I assume its related to WAMP in some way.. But I have no idea since I'm not a webb developer in any way....

Example from menu as Dropdown in top position (Protostar's 1)

Notice: Undefined index: option in C:\wamp\www\[path]\components\com_content\views\article\view.html.php on line 245
Call Stack
# Time Memory Function Location
1 0.0006 363088 {main}( ) ...\index.php:0
2 0.1561 4019632 Joomla\CMS\Application\CMSApplication->execute( ) ...\index.php:49
3 0.1561 4019632 Joomla\CMS\Application\SiteApplication->doExecute( ) ...\CMSApplication.php:196
4 0.4835 11388624 Joomla\CMS\Application\SiteApplication->dispatch( ) ...\SiteApplication.php:233
5 0.4858 11402016 Joomla\CMS\Component\ComponentHelper::renderComponent( ) ...\SiteApplication.php:194
6 0.4882 11413952 Joomla\CMS\Component\ComponentHelper::executeComponent( ) ...\ComponentHelper.php:377
7 0.4889 11443272 require_once( 'C:\wamp\www\[path]\components\com_content\content.php' ) ...\ComponentHelper.php:402
8 0.4947 11581848 Joomla\CMS\MVC\Controller\BaseController->execute( ) ...\content.php:43
9 0.4947 11581848 ContentController->display( ) ...\BaseController.php:710
10 0.5883 12471288 Joomla\CMS\MVC\Controller\BaseController->display( ) ...\controller.php:118
11 0.5957 12628376 ContentViewArticle->display( ) ...\BaseController.php:672
12 0.7161 15024440 ContentViewArticle->_prepareDocument( ) ...\view.html.php:208

( ! ) Notice: Undefined index: option in C:\wamp\www\[path]\components\com_content\views\article\view.html.php on line 253
Call Stack
# Time Memory Function Location
1 0.0006 363088 {main}( ) ...\index.php:0
2 0.1561 4019632 Joomla\CMS\Application\CMSApplication->execute( ) ...\index.php:49
3 0.1561 4019632 Joomla\CMS\Application\SiteApplication->doExecute( ) ...\CMSApplication.php:196
4 0.4835 11388624 Joomla\CMS\Application\SiteApplication->dispatch( ) ...\SiteApplication.php:233
5 0.4858 11402016 Joomla\CMS\Component\ComponentHelper::renderComponent( ) ...\SiteApplication.php:194
6 0.4882 11413952 Joomla\CMS\Component\ComponentHelper::executeComponent( ) ...\ComponentHelper.php:377
7 0.4889 11443272 require_once( 'C:\wamp\www\[path]\components\com_content\content.php' ) ...\ComponentHelper.php:402
8 0.4947 11581848 Joomla\CMS\MVC\Controller\BaseController->execute( ) ...\content.php:43
9 0.4947 11581848 ContentController->display( ) ...\BaseController.php:710
10 0.5883 12471288 Joomla\CMS\MVC\Controller\BaseController->display( ) ...\controller.php:118
11 0.5957 12628376 ContentViewArticle->display( ) ...\BaseController.php:672
12 0.7161 15024440 ContentViewArticle->_prepareDocument( ) ...\view.html.php:208

( ! ) Notice: Undefined index: option in C:\wamp\www\mb219dev\components\com_content\views\article\view.html.php on line 253
Call Stack
# Time Memory Function Location
1 0.0006 363088 {main}( ) ...\index.php:0
2 0.1561 4019632 Joomla\CMS\Application\CMSApplication->execute( ) ...\index.php:49
3 0.1561 4019632 Joomla\CMS\Application\SiteApplication->doExecute( ) ...\CMSApplication.php:196
4 0.4835 11388624 Joomla\CMS\Application\SiteApplication->dispatch( ) ...\SiteApplication.php:233
5 0.4858 11402016 Joomla\CMS\Component\ComponentHelper::renderComponent( ) ...\SiteApplication.php:194
6 0.4882 11413952 Joomla\CMS\Component\ComponentHelper::executeComponent( ) ...\ComponentHelper.php:377
7 0.4889 11443272 require_once( 'C:\wamp\www\[path]\components\com_content\content.php' ) ...\ComponentHelper.php:402
8 0.4947 11581848 Joomla\CMS\MVC\Controller\BaseController->execute( ) ...\content.php:43
9 0.4947 11581848 ContentController->display( ) ...\BaseController.php:710
10 0.5883 12471288 Joomla\CMS\MVC\Controller\BaseController->display( ) ...\controller.php:118
11 0.5957 12628376 ContentViewArticle->display( ) ...\BaseController.php:672
12 0.7161 15024440 ContentViewArticle->_prepareDocument( ) ...\view.html.php:208




Example from menu as Accordion but in left position, 8, and with "jmb-tree-nav-horizontal" removed from Menu class suffix.

Undefined variable: open_menu in C:\wamp\www\[path]\modules\mod_jmb_tree_pro\tmpl\accordion.php on line 183
Call Stack
# Time Memory Function Location
1 0.0004 362424 {main}( ) ...\index.php:0
2 0.1181 4018832 Joomla\CMS\Application\CMSApplication->execute( ) ...\index.php:49
3 0.6503 15860608 Joomla\CMS\Application\SiteApplication->render( ) ...\CMSApplication.php:202
4 0.6509 15860592 Joomla\CMS\Application\CMSApplication->render( ) ...\SiteApplication.php:778
5 0.6628 15992520 Joomla\CMS\Document\HtmlDocument->render( ) ...\CMSApplication.php:1044
6 0.6628 15992520 Joomla\CMS\Document\HtmlDocument->_renderTemplate( ) ...\HtmlDocument.php:557
7 0.7503 16284536 Joomla\CMS\Document\HtmlDocument->getBuffer( ) ...\HtmlDocument.php:783
8 0.7503 16284624 Joomla\CMS\Document\Renderer\Html\ModulesRenderer->render( ) ...\HtmlDocument.php:491
9 0.7504 16284984 Joomla\CMS\Document\Renderer\Html\ModuleRenderer->render( ) ...\ModulesRenderer.php:47
10 0.7506 16343304 Joomla\CMS\Helper\ModuleHelper::renderModule( ) ...\ModuleRenderer.php:98
11 0.7529 16453272 include( 'C:\wamp\www\[path]\modules\mod_jmb_tree_pro\mod_jmb_tree_pro.php' ) ...\ModuleHelper.php:200
12 0.9406 17023544 require( 'C:\wamp\www\[path]\modules\mod_jmb_tree_pro\tmpl\accordion.php' ) ...\mod_jmb_tree_pro.php:146

Last edit: 1 month 4 days ago by Håkan Johansson.

1 month 4 days ago #1909
Eugene's Avatar
Posts: 450
Issues with "undefined" in new installation

Hi Håkan,

I suppose there are different PHP versions installed on your local server and on hosting and that's why there is the notice.

I commented all the questions and got credentials from you, but what kind of help is needed from us at the moment?
I do not see the accordion menu with notice.


Like our extensions and support?
Add your voice to the JED listing with a 100 score review:: bit.ly/2ciJBqC
Thanks!

1 month 4 days ago #1910
Eugene's Avatar
Posts: 450
Issues with "undefined" in new installation

Hello,

What version of Joomla and PHP is in use?

Notice: Undefined index: option in C:\wamp\www\[path]\components\com_content\views\article\view.html.php on line 245


This is com_content notice. Com_content is a core Joomla component displaying articles. You can report Joomla team via Joomla Issue Tracker

Example from menu as Accordion but in left position, 8, and with "jmb-tree-nav-horizontal" removed from Menu class suffix.

I do not see the accordion menu on your site. Please provide a URL with a live example.
And as I commented above, jmb-tree-nav-horizontal can be used for default layout, not for accordion.

Btw, the notice is not the issue. You can disable them:
www.joomlashack.com/blog/joomla/warnings/
php.net/manual/en/errorfunc.constants.php


Like our extensions and support?
Add your voice to the JED listing with a 100 score review:: bit.ly/2ciJBqC
Thanks!

1 month 2 days ago #1911
Topic Author
Håkan Johansson's Avatar
Posts: 13
Issues with "undefined" in new installation

Good day,
Sorry for my silence. Due to a mishap with a backup I've spent some time on getting an updated test version of my site up and running in a hosted test environment. I will later copy this to my local development environment in order to see what happens there. If I still have errors there I'lll take it from there.

This thread can hence be seen as closed. Since it's rather confusing, maybe you should delete it from the forum :-)

1 month 2 days ago #1914
Eugene's Avatar
Posts: 450
Issues with "undefined" in new installation

Hi Håkan,

Anyway, could you be so kind to provide PHP and Joomla version of your local environment? We tested JMB Tree on PHP 7.0 and 7.2 and there is no notice, so it is curious to reproduce it...

Thanks.


Like our extensions and support?
Add your voice to the JED listing with a 100 score review:: bit.ly/2ciJBqC
Thanks!

1 month 2 days ago #1915
Topic Author
Håkan Johansson's Avatar
Posts: 13
Issues with "undefined" in new installation

Joomla is 3.9.1 and PHP 7.1.0.

It can be noted that before I went for JMB Tree Pro I tried to test JMB Tree Free but got similar error messages already in the setup page of JMB (sent an e-mail to Norrnext 17/12). Since I couldn't get support on the free version, I bought the full version, tried to install it one time but got a "time out" on the installation page in Joomla. Second try went well and could configure JMB Tree etc but then stumbled into the problem with the site as mentioned above.

My guess is that there's something going on in my development environment. When I have a fully updated and working, hosted site I will install it in my local environment and see what happens. I will let you know.

You can get our help: Monday - Friday / 09:00 to 17:00 (GMT+2). but not limited. Our staff will be pleased to provide Premium support to every paid subscriber asap, but sometimes you should be ready to wait for our reply for up to 3 days. In case of free extensions we do the best to develop and maintain them either, but their support is not necessary.

Product Latest Update