Ticket #716 (closed Bugs: fixed)

Opened 7 years ago

Last modified 6 years ago

Removing all modules generates warnings

Reported by: vgster Assigned to: RobThomas
Priority: minor Milestone: 2.1
Component: Web interface Version: SVN-HEAD
Keywords: Cc:
Confirmation: Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

I was tryign to replicate some of the problems reported and uninstalled and removed all the modules.

Upon removing the last module the warning

Warning: Invalid argument supplied for foreach() in /srv/www/htdocs/admin/page.modules.php on line 230

Warning: Invalid argument supplied for foreach() in /srv/www/htdocs/admin/page.modules.php on line 157

is shown.

Clicking on Setup gives the following warnings

Warning: array_keys() [function.array-keys]: The first argument should be an array in /srv/www/htdocs/admin/functions.inc.php on line 289

Warning: Invalid argument supplied for foreach() in /srv/www/htdocs/admin/functions.inc.php on line 289

Going back into Tools gives the same warnings as above.

Clicking on Online Modules gives

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /srv/www/htdocs/admin/page.modules.php on line 122

22 times.

Once you have downloaded a module you still get the warning

Warning: array_keys() [function.array-keys]: The first argument should be an array in /srv/www/htdocs/admin/functions.inc.php on line 289

Warning: Invalid argument supplied for foreach() in /srv/www/htdocs/admin/functions.inc.php on line 289

but this goes should you reload the page or click on something else.

Change History

04/28/06 03:09:23 changed by RobThomas

  • owner set to RobThomas.

Fixed _most_ of these in #1741 - still need to look at:

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /srv/www/htdocs/admin/page.modules.php on line 122

05/05/06 13:29:54 changed by RyanCourtnage

  • milestone set to 2.1.

This may not be an issue since removing the Core module is now impossible? see: #717

05/08/06 05:15:56 changed by vgster

Yes you are correct. As long as 1 module exists then the warning doesnt show.

05/11/06 11:34:50 changed by RyanCourtnage

  • status changed from new to closed.
  • resolution set to fixed.

i'll close this off, since "core" can no longer be deleted

01/08/07 14:46:42 changed by

  • milestone deleted.

Milestone 2.1 deleted

01/08/07 16:33:02 changed by vgster

  • milestone set to 2.1.