Results 1 to 2 of 2

Thread: Wrong datatype saving emails

  1. #1
    emmettPower is offline Member
    Join Date
    Sep 2007
    Posts
    8

    Default Wrong datatype saving emails

    Hi,

    I am using a template to send short emails. Sending seems to work but when it gets the save part of the process I get the following message:

    ->
    Warning: in_array() [function.in-array]: Wrong datatype for second argument in opt/lampp/htdocs/SugarOS/modules/Emails/Save.php on line 154 Query Failed:INSERT into emails.....::MySQL error 1153: Got a packet bigger than 'max_allowed_packet' bytes".
    <-

    The email has a 1.4mb pdf attachment.

    Any idea what's the problem?

    Thanks

    Emmett

  2. #2
    emmettPower is offline Member
    Join Date
    Sep 2007
    Posts
    8

    Default Re: Wrong datatype saving emails

    I should have mentioned that line 154 is:

    if(!in_array($_REQUEST['object_id'],$exContactIds)){ <-------------------

    $rel = strtolower($_REQUEST['object_type']);

    $focus->load_relationship($rel);

    $focus->$rel->add($_REQUEST['object_id']);

    $GLOBALS['log']->debug("CESELY LOADED".$_REQUEST['object_type']);

    }

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Statsgraph 1.0 for SugarCRM 4.5
    By tfrebault in forum Downloads
    Replies: 63
    Last Post: 2009-10-06, 03:15 AM
  2. Module with no SubPanels
    By dop3 in forum Developer Help
    Replies: 3
    Last Post: 2008-06-29, 06:24 PM
  3. Replies: 6
    Last Post: 2006-10-02, 09:49 PM
  4. Auto Saving drafts for compsed emails
    By fvarenne2 in forum Feature Requests
    Replies: 0
    Last Post: 2006-03-29, 11:49 PM
  5. Wrong Time in Invitation Emails
    By ratclaws in forum Help
    Replies: 3
    Last Post: 2005-09-24, 09:21 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
  •