Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YetiForce CRM #122

Open
mykljohn opened this issue Sep 6, 2015 · 13 comments
Open

YetiForce CRM #122

mykljohn opened this issue Sep 6, 2015 · 13 comments

Comments

@mykljohn
Copy link

mykljohn commented Sep 6, 2015

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

@witer30
Copy link

witer30 commented Oct 8, 2015

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

@mykljohn
Copy link
Author

mykljohn commented Oct 8, 2015

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?

@sardoj
Copy link
Owner

sardoj commented Oct 9, 2015 via email

@mykljohn
Copy link
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. :)

@witer30
Copy link

witer30 commented Oct 12, 2015

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
Copy link

witer30 commented Oct 13, 2015

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.

@mykljohn
Copy link
Author

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

@mykljohn
Copy link
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]

@mykljohn
Copy link
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=>... ?>

@playmono
Copy link
Collaborator

I would recommend to use build up YT module.

@marko89kv
Copy link

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

@mykljohn
Copy link
Author

No it does not work. YF has different variable arrays

@vipulkarotra
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants