-
AuthorPosts
-
June 4, 2008 at 2:02 pm #129294
Warning: Missing argument 1 for JMenu::getInstance(), called in /var/www/ingram.fi/templates/ja_mageia/ja_menus/Base.class.php on line 132 and defined in /var/www/ingram.fi/libraries/joomla/application/menu.php on line 84
Fatal error: Call to a member function getItem() on a non-object in /var/www/ingram.fi/templates/ja_mageia/ja_menus/Base.class.php on line 133
This error was caught on a brand new Joomla 1.5.3 environment.
ja_mageia_template_v1.2_1.5.3 is in place.Thanks,
Nuno.Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
June 5, 2008 at 11:34 am #252135As i specified in my first post, we had already installed the version you suggest.
Same thing.
Please take a look here: http://209.20.70.186/ingram.fi/Thanks-
kalinski Friendkalinski
- Join date:
- February 2008
- Posts:
- 30
- Downloads:
- 18
- Uploads:
- 0
- Thanks:
- 4
- Thanked:
- 5 times in 3 posts
June 6, 2008 at 6:21 pm #252378Hello luoto,
please goto Menu-> Main menu and make sure the unique name of the Main menu is mainmenu. If the name differs from the default name this error occurs! ([url=http://www.joomlart.com/forums/topic/errors-with-german-version-of-joomla-1-5-1/
The Problem is, that the template take it for granted that the Main menu is called mainmenu, which is not always the case in non-english Joomla! versions. So the fault goes 50% to the template, 50% to Joomla! for not making sure the main menu names are the same in all language versions.
kind regards!
June 6, 2008 at 8:41 pm #252392<em>@kalinski 57560 wrote:</em><blockquote>Hello luoto,
please goto Menu-> Main menu and make sure the unique name of the Main menu is mainmenu. If the name differs from the default name this error occurs! ([url=http://www.joomlart.com/forums/topic/errors-with-german-version-of-joomla-1-5-1/
The Problem is, that the template take it for granted that the Main menu is called mainmenu, which is not always the case in non-english Joomla! versions. So the fault goes 50% to the template, 50% to Joomla! for not making sure the main menu names are the same in all language versions.
kind regards!</blockquote>
Thanks for the tip, but it doesn’t address the error in this case.
The Joomla version we have installed is in english and the Unique Name of Main Menu hs always been mainmenu.
I am starting to wonder if the template is Joomfish compatible… It would be awkward if it is not.
I think it’s time for JA to step in and provide a solution.
June 7, 2008 at 2:29 pm #252449If i comment out lines 130-138 on /ja_mageia/ja_menus/Base.class.php
// Menu Link is a special type that is a link to another item
//if ($item->type == 'menulink')
//{
//$menu = &JMenu::getInstance();
//if (!$tmp = clone($menu->getItem($item->query['Itemid']))) {
//return false;
//}
//} else {
//$tmp = $item;
//}the template is parsed.
However, the top menu does NOT render at all.kalinski Friendkalinski
- Join date:
- February 2008
- Posts:
- 30
- Downloads:
- 18
- Uploads:
- 0
- Thanks:
- 4
- Thanked:
- 5 times in 3 posts
June 8, 2008 at 9:34 pm #252584Hello luoto
<blockquote>However, the top menu does NOT render at all.</blockquote>
What do you expect, if you comment out the line that is responsible for creating the menu?! ( //$menu = &JMenu::getInstance(); )
Anyway, i’m pretty sure it has to do with the name you assigned to the menu. Did you use any special chars or something like this? could you attach a sql dump of the menu table?If it would be a general error in the template, then many more would have the same problem, but it seem that this is not the case.
kind regards 🙂
June 9, 2008 at 11:06 am #252682Yes, and if i had 2 wheels i’d probably be a bike 🙂
The lines were commented out so that the template could be parsed.
As stated in my earlier message, no Unique name has been changed whatsoever.Here’s the dump
-- phpMyAdmin SQL Dump
-- version 2.11.3deb1ubuntu1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jun 09, 2008 at 11:04 AM
-- Server version: 5.0.51
-- PHP Version: 5.2.4-2ubuntu5.1SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- Database: `ingramfi`
---- --------------------------------------------------------
--
-- Table structure for table `jos_menu`
--CREATE TABLE IF NOT EXISTS `jos_menu` (
`id` int(11) NOT NULL auto_increment,
`menutype` varchar(75) default NULL,
`name` varchar(255) default NULL,
`alias` varchar(255) NOT NULL default '',
`link` text,
`type` varchar(50) NOT NULL default '',
`published` tinyint(1) NOT NULL default '0',
`parent` int(11) unsigned NOT NULL default '0',
`componentid` int(11) unsigned NOT NULL default '0',
`sublevel` int(11) default '0',
`ordering` int(11) default '0',
`checked_out` int(11) unsigned NOT NULL default '0',
`checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00',
`pollid` int(11) NOT NULL default '0',
`browserNav` tinyint(4) default '0',
`access` tinyint(3) unsigned NOT NULL default '0',
`utaccess` tinyint(3) unsigned NOT NULL default '0',
`params` text NOT NULL,
`lft` int(11) unsigned NOT NULL default '0',
`rgt` int(11) unsigned NOT NULL default '0',
`home` int(1) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `componentid` (`componentid`,`menutype`,`published`,`access`),
KEY `menutype` (`menutype`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=60 ;--
-- Dumping data for table `jos_menu`
--INSERT INTO `jos_menu` (`id`, `menutype`, `name`, `alias`, `link`, `type`, `published`, `parent`, `componentid`, `sublevel`, `ordering`, `checked_out`, `checked_out_time`, `pollid`, `browserNav`, `access`, `utaccess`, `params`, `lft`, `rgt`, `home`) VALUES
(1, 'mainmenu', 'Home', 'home', 'index.php?option=com_content&view=frontpage', 'component', 1, 0, 20, 0, 10, 63, '2008-05-22 09:24:21', 0, 0, 0, 3, 'show_page_title=1npage_title=Welcome to the Frontpagenshow_description=0nshow_description_image=0nnum_leading_articles=1nnum_intro_articles=4nnum_columns=2nnum_links=4nshow_title=1npageclass_sfx=nmenu_image=-1nsecure=0norderby_pri=norderby_sec=frontnshow_pagination=2nshow_pagination_results=1nshow_noauth=0nlink_titles=0nshow_intro=1nshow_section=0nlink_section=0nshow_category=0nlink_category=0nshow_author=1nshow_create_date=1nshow_modify_date=1nshow_item_navigation=0nshow_readmore=1nshow_vote=0nshow_icons=1nshow_pdf_icon=1nshow_print_icon=1nshow_email_icon=1nshow_hits=1nn', 0, 0, 1),
(2, 'mainmenu', 'Joomla! License', 'joomla-license', 'index.php?option=com_content&view=article&id=5', 'component', -2, 0, 20, 0, 3, 0, '0000-00-00 00:00:00', 0, 0, 0, 0, 'pageclass_sfx=nmenu_image=-1nsecure=0nshow_noauth=0nlink_titles=0nshow_intro=1nshow_section=0nlink_section=0nshow_category=0nlink_category=0nshow_author=1nshow_create_date=1nshow_modify_date=1nshow_item_navigation=0nshow_readmore=1nshow_vote=0nshow_icons=1nshow_pdf_icon=1nshow_print_icon=1nshow_email_icon=1nshow_hits=1nn', 0, 0, 0),
(41, 'mainmenu', 'FAQ', 'faq', 'index.php?option=com_content&view=section&id=3', 'component', -2, 0, 20, 0, 4, 0, '0000-00-00 00:00:00', 0, 0, 0, 0, 'show_page_title=1nshow_description=0nshow_description_image=0nshow_categories=1nshow_empty_categories=0nshow_cat_num_articles=1nshow_category_description=1npageclass_sfx=nmenu_image=-1nsecure=0norderby=nshow_noauth=0nshow_title=1nlink_titles=0nshow_intro=1nshow_section=0nlink_section=0nshow_category=0nlink_category=0nshow_author=1nshow_create_date=1nshow_modify_date=1nshow_item_navigation=0nshow_readmore=1nshow_vote=0nshow_icons=1nshow_pdf_icon=1nshow_print_icon=1nshow_email_icon=1nshow_hits=1', 0, 0, 0),
(18, 'topmenu', 'News', 'news', 'index.php?option=com_newsfeeds&view=newsfeed&id=1&feedid=1', 'component', 0, 0, 11, 0, 3, 63, '2008-05-22 09:33:35', 0, 0, 0, 3, 'show_page_title=1npage_title=Newsnpageclass_sfx=nmenu_image=-1nsecure=0nshow_headings=1nshow_name=1nshow_articles=1nshow_link=1nshow_other_cats=1nshow_cat_description=1nshow_cat_items=1nshow_feed_image=1nshow_feed_description=1nshow_item_description=1nfeed_word_count=0nn', 0, 0, 0),
(20, 'usermenu', 'Your Details', 'your-details', 'index.php?option=com_user&view=user&task=edit', 'component', 1, 0, 14, 0, 1, 0, '0000-00-00 00:00:00', 0, 0, 1, 3, '', 0, 0, 0),
(24, 'usermenu', 'Logout', 'logout', 'index.php?option=com_user&view=login', 'component', 1, 0, 14, 0, 4, 0, '0000-00-00 00:00:00', 0, 0, 1, 3, '', 0, 0, 0),
(27, 'mainmenu', 'Joomla! Overview', 'joomla-overview', 'index.php?option=com_content&view=article&id=19', 'component', -2, 0, 20, 0, 5, 0, '0000-00-00 00:00:00', 0, 0, 0, 0, 'pageclass_sfx=nmenu_image=-1nsecure=0nshow_noauth=0nlink_titles=0nshow_intro=1nshow_section=0nlink_section=0nshow_category=0nlink_category=0nshow_author=1nshow_create_date=1nshow_modify_date=1nshow_item_navigation=0nshow_readmore=1nshow_vote=0nshow_icons=1nshow_pdf_icon=1nshow_print_icon=1nshow_email_icon=1nshow_hits=1nn', 0, 0, 0),
(28, 'topmenu', 'Top Menu Options', 'about-joomla', 'index.php?option=com_content&view=article&id=25', 'component', 1, 0, 20, 0, 1, 0, '0000-00-00 00:00:00', 0, 0, 0, 0, 'show_noauth=0nshow_title=nlink_titles=0nshow_intro=1nshow_section=0nlink_section=0nshow_category=0nlink_category=0nshow_author=1nshow_create_date=1nshow_modify_date=1nshow_item_navigation=0nshow_readmore=1nshow_vote=0nshow_icons=1nshow_pdf_icon=1nshow_print_icon=1nshow_email_icon=1nshow_hits=1nfeed_summary=npage_title=nshow_page_title=1npageclass_sfx=nmenu_image=-1nsecure=0nn', 0, 0, 0),
(29, 'topmenu', 'Features', 'features', 'index.php?option=com_content&view=article&id=22', 'component', 0, 0, 20, 0, 2, 0, '0000-00-00 00:00:00', 0, 0, 0, 0, 'pageclass_sfx=nmenu_image=-1nsecure=0nshow_noauth=0nlink_titles=0nshow_intro=1nshow_section=0nlink_section=0nshow_category=0nlink_category=0nshow_author=1nshow_create_date=1nshow_modify_date=1nshow_item_navigation=0nshow_readmore=1nshow_vote=0nshow_icons=1nshow_pdf_icon=1nshow_print_icon=1nshow_email_icon=1nshow_hits=1nn', 0, 0, 0),
(30, 'topmenu', 'The Community', 'the-community', 'index.php?option=com_content&view=article&id=27', 'component', 0, 0, 20, 0, 4, 0, '0000-00-00 00:00:00', 0, 0, 0, 0, 'pageclass_sfx=nmenu_image=-1nsecure=0nshow_noauth=0nlink_titles=0nshow_intro=1nshow_section=0nlink_section=0nshow_category=0nlink_category=0nshow_author=1nshow_create_date=1nshow_modify_date=1nshow_item_navigation=0nshow_readmore=1nshow_vote=0nshow_icons=1nshow_pdf_icon=1nshow_print_icon=1nshow_email_icon=1nshow_hits=1nn', 0, 0, 0),
(34, 'mainmenu', 'What''s New in 1.5?', 'what-is-new-in-1-5', 'index.php?option=com_content&view=article&id=22', 'component', -2, 0, 20, 1, 6, 0, '0000-00-00 00:00:00', 0, 0, 0, 0, 'pageclass_sfx=nmenu_image=-1nsecure=0nshow_noauth=0nshow_title=1nlink_titles=0nshow_intro=1nshow_section=0nlink_section=0nshow_category=0nlink_category=0nshow_author=1nshow_create_date=1nshow_modify_date=1nshow_item_navigation=0nshow_readmore=1nshow_vote=0nshow_icons=1nshow_pdf_icon=1nshow_print_icon=1nshow_email_icon=1nshow_hits=1nn', 0, 0, 0),
(37, 'mainmenu', 'More about Joomla!', 'more-about-joomla', 'index.php?option=com_content&view=section&id=4', 'component', -2, 0, 20, 0, 2, 0, '0000-00-00 00:00:00', 0, 0, 0, 0, 'show_page_title=1nshow_description=0nshow_description_image=0nshow_categories=1nshow_empty_categories=0nshow_cat_num_articles=1nshow_category_description=1npageclass_sfx=nmenu_image=-1nsecure=0norderby=nshow_noauth=0nshow_title=1nlink_titles=0nshow_intro=1nshow_section=0nlink_section=0nshow_category=0nlink_category=0nshow_author=1nshow_create_date=1nshow_modify_date=1nshow_item_navigation=0nshow_readmore=1nshow_vote=0nshow_icons=1nshow_pdf_icon=1nshow_print_icon=1nshow_email_icon=1nshow_hits=1', 0, 0, 0),
(58, 'mainmenu', 'Ingram Products', 'ingram-news-menulink', 'index.php?Itemid=57', 'menulink', 1, 0, 0, 0, 12, 0, '0000-00-00 00:00:00', 0, 0, 0, 0, 'menu_item=57nn', 0, 0, 0),
(48, 'mainmenu', 'Web Links', 'web-links', 'index.php?option=com_weblinks&view=categories', 'component', -2, 0, 4, 0, 8, 0, '0000-00-00 00:00:00', 0, 0, 0, 0, 'page_title=Weblinksnimage=-1nimage_align=rightnpageclass_sfx=nmenu_image=-1nsecure=0nshow_comp_description=1ncomp_description=nshow_link_hits=1nshow_link_description=1nshow_other_cats=1nshow_headings=1nshow_page_title=1nlink_target=0nlink_icons=nn', 0, 0, 0),
(49, 'mainmenu', 'News Feeds', 'news-feeds', 'index.php?option=com_newsfeeds&view=categories', 'component', -2, 0, 11, 0, 9, 0, '0000-00-00 00:00:00', 0, 0, 0, 0, 'show_page_title=1npage_title=Newsfeedsnshow_comp_description=1ncomp_description=nimage=-1nimage_align=rightnpageclass_sfx=nmenu_image=-1nsecure=0nshow_headings=1nshow_name=1nshow_articles=1nshow_link=1nshow_other_cats=1nshow_cat_description=1nshow_cat_items=1nshow_feed_image=1nshow_feed_description=1nshow_item_description=1nfeed_word_count=0nn', 0, 0, 0),
(50, 'mainmenu', 'The News', 'the-news', 'index.php?option=com_content&view=category&layout=blog&id=1', 'component', -2, 0, 20, 0, 7, 0, '0000-00-00 00:00:00', 0, 0, 0, 0, 'show_page_title=1npage_title=The Newsnshow_description=0nshow_description_image=0nnum_leading_articles=1nnum_intro_articles=4nnum_columns=2nnum_links=4nshow_title=1npageclass_sfx=nmenu_image=-1nsecure=0norderby_pri=norderby_sec=nshow_pagination=2nshow_pagination_results=1nshow_noauth=0nlink_titles=0nshow_intro=1nshow_section=0nlink_section=0nshow_category=0nlink_category=0nshow_author=1nshow_create_date=1nshow_modify_date=1nshow_item_navigation=0nshow_readmore=1nshow_vote=0nshow_icons=1nshow_pdf_icon=1nshow_print_icon=1nshow_email_icon=1nshow_hits=1nn', 0, 0, 0),
(51, 'usermenu', 'Submit an Article', 'submit-an-article', 'index.php?option=com_content&view=article&layout=form', 'component', 1, 0, 20, 0, 2, 0, '0000-00-00 00:00:00', 0, 0, 2, 0, '', 0, 0, 0),
(52, 'usermenu', 'Submit a Web Link', 'submit-a-web-link', 'index.php?option=com_weblinks&view=weblink&layout=form', 'component', 1, 0, 4, 0, 3, 0, '0000-00-00 00:00:00', 0, 0, 2, 0, '', 0, 0, 0),
(54, 'mainmenu', 'Contact title', 'contact-title', 'index.php?option=com_contact&view=contact&id=2', 'component', -2, 0, 7, 0, 1, 0, '0000-00-00 00:00:00', 0, 0, 0, 0, 'show_contact_list=0nshow_category_crumb=0ncontact_icons=nicon_address=nicon_email=nicon_telephone=nicon_mobile=nicon_fax=nicon_misc=nshow_headings=nshow_position=nshow_email=nshow_telephone=nshow_mobile=nshow_fax=nallow_vcard=nbanned_email=nbanned_subject=nbanned_text=nvalidate_session=ncustom_reply=npage_title=nshow_page_title=1npageclass_sfx=nmenu_image=-1nsecure=0nn', 0, 0, 0),
(55, 'mainmenu', 'Contact Ingram', 'contact-test-link', 'index.php?option=com_content&view=article&id=44', 'component', 1, 0, 20, 0, 13, 63, '2008-05-24 14:07:48', 0, 0, 0, 0, 'show_noauth=nshow_title=nlink_titles=nshow_intro=nshow_section=nlink_section=nshow_category=nlink_category=nshow_author=nshow_create_date=nshow_modify_date=nshow_item_navigation=nshow_readmore=nshow_vote=nshow_icons=nshow_pdf_icon=nshow_print_icon=nshow_email_icon=nshow_hits=nfeed_summary=npage_title=nshow_page_title=1npageclass_sfx=nmenu_image=-1nsecure=0nn', 0, 0, 0),
(56, 'mainmenu', 'About Ingram', 'about-ingram', 'index.php?option=com_content&view=article&id=46', 'component', 1, 0, 20, 0, 11, 0, '0000-00-00 00:00:00', 0, 0, 0, 0, 'show_noauth=nshow_title=nlink_titles=nshow_intro=nshow_section=nlink_section=nshow_category=nlink_category=nshow_author=nshow_create_date=nshow_modify_date=nshow_item_navigation=nshow_readmore=nshow_vote=nshow_icons=nshow_pdf_icon=nshow_print_icon=nshow_email_icon=nshow_hits=nfeed_summary=npage_title=nshow_page_title=1npageclass_sfx=nmenu_image=-1nsecure=0nn', 0, 0, 0),
(57, 'Ingram News', 'Ingram News', 'ingram-news', 'index.php?option=com_content&view=section&id=5', 'component', 1, 0, 20, 0, 1, 63, '2008-05-24 14:28:10', 0, 0, 0, 0, 'show_description=0nshow_description_image=0nshow_categories=1nshow_empty_categories=0nshow_cat_num_articles=1nshow_category_description=1norderby=norderby_sec=nshow_feed_link=1nshow_noauth=nshow_title=nlink_titles=nshow_intro=nshow_section=nlink_section=nshow_category=nlink_category=nshow_author=nshow_create_date=nshow_modify_date=nshow_item_navigation=nshow_readmore=nshow_vote=nshow_icons=nshow_pdf_icon=nshow_print_icon=nshow_email_icon=nshow_hits=nfeed_summary=npage_title=nshow_page_title=1npageclass_sfx=nmenu_image=-1nsecure=0nn', 0, 0, 0),
(59, 'Ingram News', 'Business Cons', 'business-cons', 'index.php?option=com_content&view=article&id=50', 'component', 1, 0, 20, 0, 2, 0, '0000-00-00 00:00:00', 0, 0, 0, 0, 'show_noauth=nshow_title=nlink_titles=nshow_intro=nshow_section=nlink_section=nshow_category=nlink_category=nshow_author=nshow_create_date=nshow_modify_date=nshow_item_navigation=nshow_readmore=nshow_vote=nshow_icons=nshow_pdf_icon=nshow_print_icon=nshow_email_icon=nshow_hits=nfeed_summary=npage_title=nshow_page_title=1npageclass_sfx=nmenu_image=-1nsecure=0nn', 0, 0, 0);
Thanks for all the help JA should be providing 😉
-
AuthorPosts
This topic contains 8 replies, has 3 voices, and was last updated by luoto 16 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum