Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: trigger_error("Smarty error: $error_msg", $error_type);

  1. #1
    runisland is offline Junior Member
    Join Date
    Jan 2006
    Posts
    4

    Exclamation trigger_error("Smarty error: $error_msg", $error_type);

    Hello

    i have designed custom leads page under Sugar 4.2 and i recently upgrade to Sugar 4.5
    Was terrible, and took us a long time to make it workable version using our data and contents. But here is the problem.
    i get this :

    Warning: Smarty error: sugar_translate: missing 'label' parameter in /home/sites/myserver/mywebsite.com/web/crm/include/Smarty/Smarty.class.php on line 1095

    when i am on the Leads Search (i tried to manage my custom fileds) but seems not okay.

    I had a look at the line 1095 : trigger_error("Smarty error: $error_msg", $error_type);

    I would like undisplay this error message.

    Please help me to resolve this probleme if possible

    Regards

    Marcus

  2. #2
    Kallisti is offline Sugar Community Member
    Join Date
    Feb 2006
    Posts
    11

    Default Re: trigger_error("Smarty error: $error_msg", $error_type);

    I am having the same problem. I updated from 4.2 to 4.5 and having problems. I clicked "Upgrade Custom Labels" in the Repair section of Admin and it set all my custom data to NULL. Additionally, I am receiving the same error when I try to display the custom field in the Leads page. Instead of the column title i get:
    Warning: Smarty error: sugar_translate: missing 'label' parameter in /home/sites/myserver/mywebsite.com/web/crm/include/Smarty/Smarty.class.php on line 1095

    I am trying to track the problem but it is just leading me to cache files. I am wondering if I need to add the label in my custom field to a language pack? The reason I ask this is because of the file /sugarcrm/include/Smarty/plugins/function.sugar_translate.php:

    PHP Code:
    /**

     * Smarty {sugar_translate} function plugin

     *

     * Type:     function<br>

     * Name:     sugar_translate<br>

     * Purpose:  translates a label into the users current language

     * 

     * @author Majed Itani {majed at sugarcrm.com

     * @param array

     * @param Smarty

     */

    function smarty_function_sugar_translate($params, &$smarty)

    {

        if (!isset(
    $params['label'])){

            
    $smarty->trigger_error("sugar_translate: missing 'label' parameter");

            return 
    '';

        } 
    Anyone have suggestions?
    Sugar Community Edition
    Version 5.2.0f (Build 5688)

  3. #3
    sugarrules is offline Member
    Join Date
    Feb 2007
    Posts
    6

    Default Re: trigger_error("Smarty error: $error_msg", $error_type);

    i have got hte same problem, can anybody help me?

  4. #4
    majed's Avatar
    majed is offline Sugar Team Member
    Join Date
    Sep 2004
    Posts
    198

    Default Re: trigger_error("Smarty error: $error_msg", $error_type);

    In your listviewdefs do you have a Label value for each of the fields. I am trying to diagnose where this issue is coming from. If you can give me more details on what pages this is happening (the action and the module in the url) that would greatly help in diagnosing this issue.

    Thanks,
    Majed
    Majed Itani
    Software Engineer
    SugarCRM Inc.

  5. #5
    sugarrules is offline Member
    Join Date
    Feb 2007
    Posts
    6

    Default Re: trigger_error("Smarty error: $error_msg", $error_type);

    after upgrading to 4.5.1 the error occured at one user defined label in the listview of the contact-modul

  6. #6
    Ericmuc is offline Sugar Community Member
    Join Date
    Apr 2005
    Location
    Munich, Germany
    Posts
    160

    Default Re: trigger_error("Smarty error: $error_msg", $error_type);

    Hi,

    I have the same error: "Warning: Smarty error: sugar_translate: missing 'label'" after editing the list view of projects. I cannot get back to the version before ...

    Who can help?

    Best wishes
    Eric

  7. #7
    Ericmuc is offline Sugar Community Member
    Join Date
    Apr 2005
    Location
    Munich, Germany
    Posts
    160

    Default Re: trigger_error("Smarty error: $error_msg", $error_type);

    Quote Originally Posted by Ericmuc
    Hi,

    I have the same error: "Warning: Smarty error: sugar_translate: missing 'label'" after editing the list view of projects. I cannot get back to the version before ...

    Who can help?

    Best wishes
    Eric
    After installation of the new patch (Version 4.5.1a (Build 1209)) the error remains ...

    Who can help ???
    Eric

  8. #8
    Ericmuc is offline Sugar Community Member
    Join Date
    Apr 2005
    Location
    Munich, Germany
    Posts
    160

    Default Re: trigger_error("Smarty error: $error_msg", $error_type);

    Quote Originally Posted by majed
    In your listviewdefs do you have a Label value for each of the fields. I am trying to diagnose where this issue is coming from. If you can give me more details on what pages this is happening (the action and the module in the url) that would greatly help in diagnosing this issue.

    Thanks,
    Majed
    Any news now? The error is in my projects and everytime I have problems to work with them ...
    Thanks a lot,
    Eric

  9. #9
    Ericmuc is offline Sugar Community Member
    Join Date
    Apr 2005
    Location
    Munich, Germany
    Posts
    160

    Default Re: trigger_error("Smarty error: $error_msg", $error_type);

    Quote Originally Posted by majed
    In your listviewdefs do you have a Label value for each of the fields. I am trying to diagnose where this issue is coming from. If you can give me more details on what pages this is happening (the action and the module in the url) that would greatly help in diagnosing this issue.

    Thanks,
    Majed
    HI,

    Here are now since several weeks the details you want for further diagnosis, so my question is now, whether you have news for us. It would be good, if I could solve this error which is my daily partner now!

    Thank you very much, best wishes
    Eric

  10. #10
    Ericmuc is offline Sugar Community Member
    Join Date
    Apr 2005
    Location
    Munich, Germany
    Posts
    160

    Default Re: trigger_error("Smarty error: $error_msg", $error_type);

    Quote Originally Posted by majed
    In your listviewdefs do you have a Label value for each of the fields. I am trying to diagnose where this issue is coming from. If you can give me more details on what pages this is happening (the action and the module in the url) that would greatly help in diagnosing this issue.

    Thanks,
    Majed
    Even after update with Version 4.5.1b (Build 1246) the error remains !

    Please help!
    Eric

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

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
  •