Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
install Global Variables error
#1
Hi,

i'm testing the global Variables module

i'm using the cbupdater module to install it :

i got the error :

FAILED TO SETUP SearchGlobalVar WEBSERVICE

Rgds
Reply
#2
That is odd. I have done various installs of this module already, in fact I did one this morning with no issues.
I had a look at the code to see where the message you indicate is and it seems that you had a problem inserting a record in the vtiger_ws_operation table, which is strange.

I don't quite know what to say nor why you got that error.

To get Global Variable module correctly installed on your system you have to execute this code:

Code:
<?php
// Turn on debugging level
$Vtiger_Utils_Log = true;

include_once('vtlib/Vtiger/Module.php');

$modname = 'GlobalVariable';
$module = Vtiger_Module::getInstance($modname);

if($module) {
   $module->initWebservice();
}
?>

that wil finish the installation where it broke, but it won't install the webservice. You can create a changeset to get that installed. Look at the files in build/wsChanges/ and create yourself one based on the specification in line 458 of modules/GlobalVariable/GlobalVariable.php
Joe
TSolucio
Reply
#3
Hi,

oups, my error, i did not include thr file in utils.php

require_once 'modules/GlobalVariable/GlobalVariable.php';

if think the sync with github did not work

it's ok now

rgds
Reply
#4
by the way, what does this module suppose to do?

Rgds
Reply
#5
This module isn't finished yet. It is totally operative but now we need to implement system changes to make it useful.

I will document it as soon as we get to adapting the system to it, but the ides is that many of the variables in the system will now be extracted from this module instead of from configuration file (config.inc.php).

So for example, you will be able to change the number of list view records in this module instead of manually editing the config.inc.php $list_max_entries_per_page variable or changing it through Settings > Configuration editor.

The power and real reason for doing this is that now, not only will you be able to change this variable (which you already could) but that the global variable module is smart enough to permit us to define that variable by user and module, so you can have accounts showing 100 records per page for one user and contacts showing 20 records per page for another user,...

Another example that you can try right now as that has been the first implementation of the module: products/services on inventory modules: you can now define if you want to see product or service first in a quote or invoice, but you can do that per module and per user.

I will keep informing...
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)