VTModuleDesigner icon indicating copy to clipboard operation
VTModuleDesigner copied to clipboard

YetiForce CRM

Open mykljohn opened this issue 10 years ago • 13 comments

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).

mykljohn avatar Sep 06 '15 07:09 mykljohn

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

witer30 avatar Oct 08 '15 11:10 witer30

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?

mykljohn avatar Oct 08 '15 16:10 mykljohn

Hello,

I don't know if it works in Yetiforce. Please can you test it and send feedback?

Thank you so much!

sardoj avatar Oct 09 '15 12:10 sardoj

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. :)

mykljohn avatar Oct 11 '15 21:10 mykljohn

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.

witer30 avatar Oct 12 '15 18:10 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.

witer30 avatar Oct 13 '15 20:10 witer30

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

mykljohn avatar Oct 13 '15 21:10 mykljohn

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]

mykljohn avatar Oct 15 '15 05:10 mykljohn

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=>... ?>

mykljohn avatar Oct 19 '15 04:10 mykljohn

I would recommend to use build up YT module.

playmono avatar Jan 29 '16 10:01 playmono

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

marko89kv avatar Feb 19 '16 13:02 marko89kv

No it does not work. YF has different variable arrays

mykljohn avatar Feb 23 '16 19:02 mykljohn

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....

vipulkarotra avatar Apr 15 '16 06:04 vipulkarotra