Results 1 to 2 of 2

Thread: Module test results in many "Invalid argument supplied for foreach()" warnings

  1. #1
    StewRat is offline Member
    Join Date
    Aug 2008
    Posts
    14

    Default Module test results in many "Invalid argument supplied for foreach()" warnings

    I had a dry run at creating a very simple module.

    After deploying it, I started to get many warnings scattered around. They appear in most of the standard modules (eg accounts) once at the top of the subpanel listings, then above and below the leads subpanel.

    Warning: Invalid argument supplied for foreach() in /home/virtual/site10/fst/var/www/html/data/SugarBean.php on line 599

    The home page shows nothing but the warning, and the leads module shows a lot of these errors (and other line numbers) and is really messed up with no leads showing.

    I should say my custom module had nothing to do with leads.

    I deleted the module, but the warnings remain.

    I have gone through I think all the admin repair options to no effect - in fact the same warning appears within some of the repair reports, usually around anything to do with leads.

    Looking at the database in phpMyAdmin, there seems to be nothing obviously corrupted in leads or leads_audit tables, but I see all the tables from my (deleted) module are still there, plus the relationship (with accounts) is still in the relationships table.

    Desperately need to get this fixed, but dont want to start flailinga round and make things worse. Any suggestions?

    Thanks in advance.

  2. #2
    StewRat is offline Member
    Join Date
    Aug 2008
    Posts
    14

    Default Re: Module test results in many "Invalid argument supplied for foreach()" warnings

    Found a bit more detail in the log file that seems to suggest that the leads page is causing errors like:

    Fri 20 Nov 2009 04:18:36 PM CST,800 [32601] FATAL SugarCRM - createRelationshipMeta: Metadata for table leads does not exist

    Doing relationship repair in admin doesnt help.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 2010-06-03, 07:15 PM
  2. Error on Accounts Tab Invalid argument supplied for foreach()
    By universal1 in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2009-02-02, 06:08 PM
  3. Invalid argument supplied for foreach
    By molnaram in forum Help
    Replies: 1
    Last Post: 2008-01-09, 07:00 AM
  4. Replies: 1
    Last Post: 2007-09-05, 01:09 AM
  5. Replies: 0
    Last Post: 2005-11-14, 04:51 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •