Skip to content

YetiForce CRM #122

Description

@mykljohn

Hey, great job with this designer. We're looking at migrating to YT, does it work with YetiForce?

When trying to install it, it fails with this message
Failed
Module does not contain default language (en_us).

Activity

  1. witer30 commented on Oct 8, 2015

    @witer30

    as i am correct in yetiforce there is possibility to build up module...

  2. mykljohn commented on Oct 8, 2015

    @mykljohn
    Author

    Sorry, I'm not sure what your comment is saying. I can create a module in YF, but I would like to use this ModuleDesigner. Do you know how to install it in YetiForce?

  3. sardoj commented on Oct 9, 2015

    @sardoj
    Owner
  4. mykljohn commented on Oct 11, 2015

    @mykljohn
    Author

    Hi Jonathan, I tried to install it in YetiForce, but got the above error Module does not contain default language (en_us). Can you help me with the install? I'll gladly test away. :)

  5. witer30 commented on Oct 12, 2015

    @witer30

    Maybe you should copy modul language file into folder Languages of YetiForce
    Dnia 11 października 2015 23:45 mykljohn napisał(a):
    Hi Jonathan, I tried to install it in YetiForce, but got the above error Module does not contain default language (en_us). Can you help me with the install? I'll gladly test away. :)—
    Reply to this email directly or view it on GitHub.

  6. witer30 commented on Oct 13, 2015

    @witer30

    and, is it works?
    Dnia 11 października 2015 23:45 mykljohn napisał(a):
    Hi Jonathan, I tried to install it in YetiForce, but got the above error Module does not contain default language (en_us). Can you help me with the install? I'll gladly test away. :)—
    Reply to this email directly or view it on GitHub.

  7. mykljohn commented on Oct 13, 2015

    @mykljohn
    Author

    No tenia chance para tratar. Voy a hacerlo hoy noche. cheers

  8. mykljohn commented on Oct 15, 2015

    @mykljohn
    Author

    I completed the install, I had to re-zip the files. I copied the patch. but when I open ModuleDesigner, it shows nothing. here's the error log:

    Database ERROR: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'globo_yeti.vtiger_parenttab' doesn't exist
    Query: SELECT * FROM vtiger_parenttab ORDER BY parenttab_label ASC
    #0 PearDatabase->checkError() called at [/yeti/include/database/PearDatabase.php:354]
    #1 PearDatabase->pquery() called at [/yeti/modules/Settings/ModuleDesigner/views/Index.php:41]
    #2 Settings_ModuleDesigner_Index_View->process() called at [/yeti/include/main/WebUI.php:220]
    #3 Vtiger_WebUI->process() called at [/yeti/index.php:25]

  9. mykljohn commented on Oct 19, 2015

    @mykljohn
    Author

    It appears that in YetiForce, they have the parenttab data in php code config/parent_tabdata.php

    'My Home Page',2=>'Marketing',3=>'Sales',4=>'Support',5=>'Analytics',6=>'Inventory',7=>'Tools',8=>'Settings'); $parent_child_tab_rel_array=array(1=>... ?>
  10. playmono commented on Jan 29, 2016

    @playmono
    Collaborator

    I would recommend to use build up YT module.

  11. marko89kv commented on Feb 19, 2016

    @marko89kv

    @mykljohn Have you managed to get Module Designer working? I'm facing the same issue.

  12. mykljohn commented on Feb 23, 2016

    @mykljohn
    Author

    No it does not work. YF has different variable arrays

  13. vipulkarotra commented on Apr 15, 2016

    @vipulkarotra

    For me it worked !!!

    Steps I Did:

    1. Unzip and rezip the VTDesigner direct selecting the internal folders and xml file.
    2. Comment following lines in PackageImport located at vtlib/vtiger/PackageImport.php

    To Avoid Error: Module does not contain default language (en_us).
    Comment below code:
    // Verify module language file.
    // if (!empty($language_modulename) && $language_modulename == $modulename) {
    // $languagefile_found = true;
    // } elseif (!$updatefile_found && !$languagefile_found) {
    // $_errorText = vtranslate('LBL_ERROR_NO_DEFAULT_LANGUAGE', 'Settings:ModuleManager');
    // $_errorText = str_replace('DEFAULTLANGUAGE', vglobal('default_language'), $_errorText);
    // $this->_errorText = $_errorText;
    // }

    and place :
    $languagefile_found = true;


    To Avoid Error: Bundle Version: Fatal Error: Could not call function getversion().
    Comment below code:
    //if (!empty($this->_modulexml) &&
    // !empty($this->_modulexml->dependencies) &&
    // !empty($this->_modulexml->dependencies->vtiger_version)) {
    // $moduleVersion = (string) $this->_modulexml->dependencies->vtiger_version;

        //  if (version_compare($moduleVersion, $YetiForce_current_version, '>=') === true) {
        //          $moduleVersionFound = true;
        //      } else {
        //          $_errorText = vtranslate('LBL_ERROR_VERSION', 'Settings:ModuleManager');
        //          $_errorText = str_replace('__MODULEVERSION__', $moduleVersion, $_errorText);
            //      $_errorText = str_replace('__CRMVERSION__', $YetiForce_current_version, $_errorText);
            //      $this->_errorText = $_errorText;
            //  }
    
        //}
    

    and place :
    $moduleVersionFound = true;


    1. Attach zip file and click Import

    2. Once Install, it will through error while using Designer:
      To Avoid Error: Database ERROR: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'globo_yeti.vtiger_parenttab' doesn't exist

    Change the code in Index.php located at modules/Settings/ModuleDesigner/views/Index.php


    Old Code:
    //Get parent tabs
    $query = "SELECT * FROM vtiger_parenttab ORDER BY parenttab_label ASC";

    New Code:
    //Get parent tabs
    $query = "SELECT * FROM vtiger_tab ORDER BY parent ASC";


    1. Change the style for Tab in VTDesigner:
      layouts \ vlayout \ modules \ Settings \ ModuleDesigner \ assets \ styles.css

    .md-tab{
    /* height: 15px; */ // Comment height.
    }


    The End....

    And It start working....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions