-
AuthorPosts
-
cgc0202 Friend
cgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
April 6, 2009 at 3:48 pm #139981Hello,
I just did a QuickStart install of Joomla 1.5.10-JA Opal v1.0 It went well as far as the installation. After I deleted the installation directory, and accessed the Admin:
I got this error message:
Warning: Invalid argument supplied for foreach() in /home/.../public_html/..../administrator/modules/mod_menu/helper.php on line 138
Warning: Invalid argument supplied for foreach() in //home/.../public_html/..../administrator/modules/mod_menu/helper.php on line 160
Any idea what the invalid argument might be? Thanks.
Cornelio
N.B. First time in a long time I had an error with the QuickStart installation.
jsliao Friendjsliao
- Join date:
- April 2008
- Posts:
- 817
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 25
- Thanked:
- 236 times in 210 posts
April 6, 2009 at 4:00 pm #300271this error occurs when foreach is executed on an array is empty
from the error msg, the codes in question are both
foreach ($comps as $row)
therefore it seems that the $comps array is empty. looking for the declaration of $comps:
126 $query = 'SELECT *' .
127 ' FROM #__components' .
128 ' WHERE '.$db->NameQuote( 'option' ).' <> "com_frontpage"' .
129 ' AND '.$db->NameQuote( 'option' ).' <> "com_media"' .
130 ' AND enabled = 1' .
131 ' ORDER BY ordering, name';
132 $db->setQuery($query);it seems that your components database is empty or buggy? might be a faulty installation. pls check.
cgc0202 Friendcgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
April 6, 2009 at 4:31 pm #300279<em>@jsliao 123003 wrote:</em><blockquote>this error occurs when foreach is executed on an array is empty
from the error msg, the codes in question are both
foreach ($comps as $row)
therefore it seems that the $comps array is empty. looking for the declaration of $comps:
126 $query = 'SELECT *' .
127 ' FROM #__components' .
128 ' WHERE '.$db->NameQuote( 'option' ).' <> "com_frontpage"' .
129 ' AND '.$db->NameQuote( 'option' ).' <> "com_media"' .
130 ' AND enabled = 1' .
131 ' ORDER BY ordering, name';
132 $db->setQuery($query);it seems that your components database is empty or buggy? might be a faulty installation. pls check.</blockquote>
Thanks jsliao;
I don’t know exactly what I should be looking for. The jos_component has 32 files. When I browsed it, I got the SQL dump below.
Here’s the actual site.
Cornelio
-- phpMyAdmin SQL Dump
-- version 2.11.9.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 06, 2009 at 11:23 AM
-- Server version: 5.0.67å
-- PHP Version: 5.2.6SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- Database: `joomlart_jopal15x000`
---- --------------------------------------------------------
--
-- Table structure for table `jos_components`
--CREATE TABLE IF NOT EXISTS `jos_components` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(50) NOT NULL default '',
`link` varchar(255) NOT NULL default '',
`menuid` int(11) unsigned NOT NULL default '0',
`parent` int(11) unsigned NOT NULL default '0',
`admin_menu_link` varchar(255) NOT NULL default '',
`admin_menu_alt` varchar(255) NOT NULL default '',
`option` varchar(50) NOT NULL default '',
`ordering` int(11) NOT NULL default '0',
`admin_menu_img` varchar(255) NOT NULL default '',
`iscore` tinyint(4) NOT NULL default '0',
`params` text NOT NULL,
`enabled` tinyint(4) NOT NULL default '1',
PRIMARY KEY (`id`),
KEY `parent_option` (`parent`,`option`(32))
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=34 ;--
-- Dumping data for table `jos_components`
--INSERT INTO `jos_components` (`id`, `name`, `link`, `menuid`, `parent`, `admin_menu_link`, `admin_menu_alt`, `option`, `ordering`, `admin_menu_img`, `iscore`, `params`, `enabled`) VALUES
(1, 'Banners', '', 0, 0, '', 'Banner Management', 'com_banners', 0, 'js/ThemeOffice/component.png', 0, 'track_impressions=0ntrack_clicks=0ntag_prefix=nn', 1),
(2, 'Banners', '', 0, 1, 'option=com_banners', 'Active Banners', 'com_banners', 1, 'js/ThemeOffice/edit.png', 0, '', 1),
(3, 'Clients', '', 0, 1, 'option=com_banners&c=client', 'Manage Clients', 'com_banners', 2, 'js/ThemeOffice/categories.png', 0, '', 1),
(4, 'Web Links', 'option=com_weblinks', 0, 0, '', 'Manage Weblinks', 'com_weblinks', 0, 'js/ThemeOffice/component.png', 0, 'show_comp_description=1ncomp_description=nshow_link_hits=1nshow_link_description=1nshow_other_cats=1nshow_headings=1nshow_page_title=1nlink_target=0nlink_icons=nn', 1),
(5, 'Links', '', 0, 4, 'option=com_weblinks', 'View existing weblinks', 'com_weblinks', 1, 'js/ThemeOffice/edit.png', 0, '', 1),
(6, 'Categories', '', 0, 4, 'option=com_categories§ion=com_weblinks', 'Manage weblink categories', '', 2, 'js/ThemeOffice/categories.png', 0, '', 1),
(7, 'Contacts', 'option=com_contact', 0, 0, '', 'Edit contact details', 'com_contact', 0, 'js/ThemeOffice/component.png', 1, 'contact_icons=0nicon_address=nicon_email=nicon_telephone=nicon_fax=nicon_misc=nshow_headings=1nshow_position=1nshow_email=0nshow_telephone=1nshow_mobile=1nshow_fax=1nbannedEmail=nbannedSubject=nbannedText=nsession=1ncustomReply=0nn', 1),
(8, 'Contacts', '', 0, 7, 'option=com_contact', 'Edit contact details', 'com_contact', 0, 'js/ThemeOffice/edit.png', 1, '', 1),
(9, 'Categories', '', 0, 7, 'option=com_categories§ion=com_contact_details', 'Manage contact categories', '', 2, 'js/ThemeOffice/categories.png', 1, 'contact_icons=0nicon_address=nicon_email=nicon_telephone=nicon_fax=nicon_misc=nshow_headings=1nshow_position=1nshow_email=0nshow_telephone=1nshow_mobile=1nshow_fax=1nbannedEmail=nbannedSubject=nbannedText=nsession=1ncustomReply=0nn', 1),
(10, 'Polls', 'option=com_poll', 0, 0, 'option=com_poll', 'Manage Polls', 'com_poll', 0, 'js/ThemeOffice/component.png', 0, '', 1),
(11, 'News Feeds', 'option=com_newsfeeds', 0, 0, '', 'News Feeds Management', 'com_newsfeeds', 0, 'js/ThemeOffice/component.png', 0, '', 1),
(12, 'Feeds', '', 0, 11, 'option=com_newsfeeds', 'Manage News Feeds', 'com_newsfeeds', 1, 'js/ThemeOffice/edit.png', 0, 'show_headings=1nshow_name=1nshow_articles=1nshow_link=1nshow_cat_description=1nshow_cat_items=1nshow_feed_image=1nshow_feed_description=1nshow_item_description=1nfeed_word_count=0nn', 1),
(13, 'Categories', '', 0, 11, 'option=com_categories§ion=com_newsfeeds', 'Manage Categories', '', 2, 'js/ThemeOffice/categories.png', 0, '', 1),
(14, 'User', 'option=com_user', 0, 0, '', '', 'com_user', 0, '', 1, '', 1),
(15, 'Search', 'option=com_search', 0, 0, 'option=com_search', 'Search Statistics', 'com_search', 0, 'js/ThemeOffice/component.png', 1, 'enabled=0nn', 1),
(16, 'Categories', '', 0, 1, 'option=com_categories§ion=com_banner', 'Categories', '', 3, '', 1, '', 1),
(17, 'Wrapper', 'option=com_wrapper', 0, 0, '', 'Wrapper', 'com_wrapper', 0, '', 1, '', 1),
(18, 'Mail To', '', 0, 0, '', '', 'com_mailto', 0, '', 1, '', 1),
(19, 'Media Manager', '', 0, 0, 'option=com_media', 'Media Manager', 'com_media', 0, '', 1, 'upload_extensions=bmp,csv,doc,epg,gif,ico,jpg,odg,odp,ods,odt,pdf,png,ppt,swf,txt,xcf,xls,BMP,CSV,DOC,EPG,GIF,ICO,JPG,ODG,ODP,ODS,ODT,PDF,PNG,PPT,SWF,TXT,XCF,XLSnupload_maxsize=10000000nfile_path=imagesnimage_path=images/storiesnrestrict_uploads=1ncheck_mime=1nimage_extensions=bmp,gif,jpg,pngnignore_extensions=nupload_mime=image/jpeg,image/gif,image/png,image/bmp,application/x-shockwave-flash,application/msword,application/excel,application/pdf,application/powerpoint,text/plain,application/x-zipnupload_mime_illegal=text/htmlnenable_flash=0nn', 1),
(20, 'Articles', 'option=com_content', 0, 0, '', '', 'com_content', 0, '', 1, 'show_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=1nfeed_summary=0nfilter_groups=29|18|19|20|21|30|23|24nfilter_type=BLnfilter_tags=nfilter_attritbutes=nn', 1),
(21, 'Configuration Manager', '', 0, 0, '', 'Configuration', 'com_config', 0, '', 1, '', 1),
(22, 'Installation Manager', '', 0, 0, '', 'Installer', 'com_installer', 0, '', 1, '', 1),
(23, 'Language Manager', '', 0, 0, '', 'Languages', 'com_languages', 0, '', 1, '', 1),
(24, 'Mass mail', '', 0, 0, '', 'Mass Mail', 'com_massmail', 0, '', 1, 'mailSubjectPrefix=nmailBodySuffix=nn', 1),
(25, 'Menu Editor', '', 0, 0, '', 'Menu Editor', 'com_menus', 0, '', 1, '', 1),
(27, 'Messaging', '', 0, 0, '', 'Messages', 'com_messages', 0, '', 1, '', 1),
(28, 'Modules Manager', '', 0, 0, '', 'Modules', 'com_modules', 0, '', 1, '', 1),
(29, 'Plugin Manager', '', 0, 0, '', 'Plugins', 'com_plugins', 0, '', 1, '', 1),
(30, 'Template Manager', '', 0, 0, '', 'Templates', 'com_templates', 0, '', 1, '', 1),
(31, 'User Manager', '', 0, 0, '', 'Users', 'com_users', 0, '', 1, 'allowUserRegistration=1nnew_usertype=Registerednuseractivation=1nfrontend_userparams=1nn', 1),
(32, 'Cache Manager', '', 0, 0, '', 'Cache', 'com_cache', 0, '', 1, '', 1),
(33, 'Control Panel', '', 0, 0, '', 'Control Panel', 'com_cpanel', 0, '', 1, '', 1);
jsliao Friendjsliao
- Join date:
- April 2008
- Posts:
- 817
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 25
- Thanked:
- 236 times in 210 posts
cgc0202 Friendcgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
April 7, 2009 at 2:24 am #300352<em>@jsliao 123101 wrote:</em><blockquote>are you able to use admin page at all? pls pm login details.</blockquote>
Hi jsliao,
I can access the admin. I will create a separate username for you. What access level do you need? Is Administrator enough or do you need a Superadminnistrator access?
Cornelio
jsliao Friendjsliao
- Join date:
- April 2008
- Posts:
- 817
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 25
- Thanked:
- 236 times in 210 posts
April 7, 2009 at 2:30 am #300353it would be best if you could give super admin.
cgc0202 Friendcgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
April 7, 2009 at 2:50 am #300359<em>@jsliao 123111 wrote:</em><blockquote>it would be best if you could give super admin.</blockquote>
Hi jsliao,
Just sent it.
Cornelio
jsliao Friendjsliao
- Join date:
- April 2008
- Posts:
- 817
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 25
- Thanked:
- 236 times in 210 posts
April 7, 2009 at 4:23 am #300364Disabling “Joomla! Security Newsfeed” in Module Manager->Administrator solved it
cgc0202 Friendcgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
April 7, 2009 at 5:22 am #300371Thanks jsliao,
So, there was nothing missing in the database?
Can you please explain what you mean by this:
<em>@jsliao 123125 wrote:</em><blockquote>Disabling “Joomla! Security Newsfeed” in Module Manager->Administrator solved it</blockquote>
Where is “Joomla! Security Newsfeed” and how did you disable it.
What exactly did you do?
Include route path please so I can do it on my own, in case I observe it again..
Cornelio
jsliao Friendjsliao
- Join date:
- April 2008
- Posts:
- 817
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 25
- Thanked:
- 236 times in 210 posts
cgc0202 Friendcgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
April 7, 2009 at 11:25 am #300416<em>@jsliao 123150 wrote:</em><blockquote>Click Modules Manager
Click Administrator
Look for “Joomla! Security Newsfeed” in the list of modules and disable it.</blockquote>Thanks jsliao,
I finally got the actual sequence:
administrator => extensions => Modules Manager => (find l eft top) Administrator => Joomla! Security Newsfeed ==> unpublish the module
Just curious though. How come I never saw that error in all my previous installations. I looked at one of my Teline II installations-
administrator => extensions => Modules Manager => (find l eft top) Administrator => no Joomla! Security Newsfeed
This reminds me of what one of our housemates did one night. I guess he was cooking and sometimes he does something else in his room, must have forgotten he was cooking. Food was burnt and triggered the fire alarm. I must be very tired that night. When I woke up past midnight, it was so cold downstairs and the windows in the kitcchen was open (it was still winter). Then, I saw the yanked fire alarm unit.
Was the “Joomla! Security Newsfeed” more like the fire alarm — so that unpublishing it just silenced it. Was the cause of the fire actually put out?
Finally, to go back to the analogy. Does this happen in other Joomla installations but the warning message did not show :
because there was not fire alarm (i.e., no Joomla! Security Newsfeed) to tell us?
Cornelio
jsliao Friendjsliao
- Join date:
- April 2008
- Posts:
- 817
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 25
- Thanked:
- 236 times in 210 posts
April 8, 2009 at 1:59 am #300483This is no fire alarm. It’s just a newsfeed module that updates you on any security issues of Joomla. I bet 9/10 people using Joomla do not read this newsfeed.
The module has been known to cause various problem (cause unknown to me) so I figured to just try disabling it since the error only occurs at the main Joomla admin page and the newsfeed module was one of the things existing only on that page.
1 user says Thank You to jsliao for this useful post
cgc0202 Friendcgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
April 10, 2009 at 9:58 pm #300865<em>@jsliao 123292 wrote:</em><blockquote>This is no fire alarm. It’s just a newsfeed module that updates you on any security issues of Joomla. I bet 9/10 people using Joomla do not read this newsfeed.
The module has been known to cause various problem (cause unknown to me) so I figured to just try disabling it since the error only occurs at the main Joomla admin page and the newsfeed module was one of the things existing only on that page.</blockquote>
Thanks jsliao,
Simple details like this, and a bit of explanation are more significant to those of us with no scripting background.
Cornelio
ShannonN FriendShannonN
- Join date:
- July 2006
- Posts:
- 1947
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 16
- Thanked:
- 172 times in 49 posts
April 11, 2009 at 3:11 am #300883jsliao;123292This is no fire alarm. It’s just a newsfeed module that updates you on any security issues of Joomla. I bet 9/10 people using Joomla do not read this newsfeed.
The module has been known to cause various problem (cause unknown to me) so I figured to just try disabling it since the error only occurs at the main Joomla admin page and the newsfeed module was one of the things existing only on that page.
It also causes a stall on the site admin loading properly on localhost due to the fact it’s trying to contact joomla for updated news ( I am not on a 24/7 internet connection) having wireless I turn it on and off to suit my meager dl limits
-
AuthorPosts
This topic contains 14 replies, has 3 voices, and was last updated by ShannonN 15 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum