Results 1 to 4 of 4

Thread: Error is coming on SugarBean

  1. #1
    chetanvalueone is offline Senior Member
    Join Date
    Dec 2008
    Posts
    27

    Default Error is coming on SugarBean

    Hi All,

    I am getting this error again and again please help me out. this error is coming on Assigned To pop-up window.

    Warning: Invalid argument supplied for foreach() in C:\wamp\www\karepartners_v2\data\SugarBean.php on line 613

    Thanks,
    Chetan

  2. #2
    genius786's Avatar
    genius786 is offline Sugar Community Member
    Join Date
    Nov 2008
    Location
    Karachi, Pakistan
    Posts
    131

    Smile Re: Error is coming on SugarBean

    Hi,

    What do you want to do .... Please tell me and where you perform changing. I think after it i m able to give you some tips and suggestion


    Best regards,
    SARFARAZ AHMED KHAN
    Karachi, Pakistan
    skype: genius_crystal
    genius_crystal@hotmail.com
    92-314-2595624

  3. #3
    chetanvalueone is offline Senior Member
    Join Date
    Dec 2008
    Posts
    27

    Default Re: Error is coming on SugarBean

    i have changes in modules/Users/metadata/popupdefs.php

    origional query was:
    $popupMeta = array(
    'moduleMain' => 'User',
    'varName' => 'USER',
    'orderBy' => 'user_name',
    'whereClauses' => array(
    'first_name' => 'users.first_name',
    'last_name' => 'users.last_name',
    'user_name' => 'users.user_name',
    'is_group' => 'users.is_group'
    ),
    'whereStatement'=> " users.status = 'Active'",
    'searchInputs' => array(
    'first_name',
    'last_name',
    'user_name',
    'is_group'
    ),
    );

    my modified query is:

    $popupMeta = array(
    'moduleMain' => 'User',
    'varName' => 'USER',
    'orderBy' => 'user_name',
    'whereClauses' => array(
    'first_name' => 'users.first_name',
    'last_name' => 'users.last_name',
    'user_name' => 'users.user_name',
    'is_group' => 'users.is_group',
    'account_name' => 'users.account_name',
    ),
    'whereStatement'=> " users.status = 'Active' and users.id in ($userlist) ",
    'searchInputs' => array(
    'first_name',
    'last_name',
    'user_name',
    'is_group',
    'account_name'
    ),
    );

    actually i have added "and users.id in ($userlist)" into where statement,

    now i am getting this error

  4. #4
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: Error is coming on SugarBean

    obviously, we're going to need the $userlist declaration.

    And your SQL is not very neat if I may say so.
    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SugarBean.php error
    By kinshibuya in forum Help
    Replies: 1
    Last Post: 2008-09-22, 07:57 PM
  2. SugarBean.php loop error
    By bobby.bland in forum Help
    Replies: 2
    Last Post: 2008-08-18, 01:12 PM
  3. Fatal Error with SugarBean
    By cpozen in forum Help
    Replies: 1
    Last Post: 2007-07-09, 02:24 AM
  4. sugarbean fatal error
    By guz843 in forum Help
    Replies: 2
    Last Post: 2006-01-09, 11:43 PM

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
  •