Archive for the ‘vTiger’ Category

suPHP – fixing busted parts of the site + vtiger forms

November 20th, 2008

Had to fix some parts of the site today:
* mod security – body limit was gagging up phpmyadmin – vtiget with 300+ tables hitting the limit in modsecurity_crs_10_config.conf: SecResponseBodyLimit 524288 – changed to larger…

Also fixed some suphp stuff, and fixed the db names for the vtiger forms – things ought to be better now – pages are working.. Thanks for commenting – an sorry to everyone that visited a broken page.. :(

Vtiger form demo here: http://mochabomb.com/Demo/cms/index.php?option=com_vtwebform&module=Lead

Anything else broken, please comment below – thanks!

  • del.icio.us
  • Digg
  • Slashdot
  • Technorati
  • MisterWong
  • Reddit

Reset VTiger password

September 10th, 2007

The fastest way to update your password if you forget is to edit the MYSQL database file. I tried a number of other things and then this finally worked. Thanks to another posting!

1. Open phpMyAdmin
2. Select the correct database
3. Edit “vtiger_users” table
4. Edit the field user_password=’adpexzg3FUZAk’
5. Edit the filed user_hash=’21232f297a57a5a743894a0e4a801fc3′
6. Edit the filed confirm_password=’adoY/6Mlw8kqg’
7. login with admin/admin

This is taken from here at the VTiger forum

  • del.icio.us
  • Digg
  • Slashdot
  • Technorati
  • MisterWong
  • Reddit

VTiger – sort by custom columns

March 19th, 2007

Today I added a custom column to our vtiger install we use at Direct Finance – a custom data field: Loan Purpose. I added this custom field to Accounts, Leads and Contacts and Potentials – then mapped them to eachother (so data was kept as lead was converted).

Now in looking at leads, accounts, or contacts, I want to sort by that new field – but it’s not sortable by default – neither are the created and modified times – would be useful to sort by date modified or created…

1. Using phpmyadmin ( or something like it ) find the field name in the table of interest – for vtiger_accounts it was a new custom field called cf_461 – make sure to use the database field name, not the field label.

2. Edit Accounts.php, Contacts.php, and Leads.php (note the file name is the module name ending in “s” ) this is the line to modify:
var $sortby_fields = Array('accountname','city','website','phone','smownerid');
to something like:
var $sortby_fields = Array('cf_461','createdtime','accountname','city','website','phone','smownerid');

Now you can sort by your new custom field – or any field in that module when a custom view is created.

  • del.icio.us
  • Digg
  • Slashdot
  • Technorati
  • MisterWong
  • Reddit

Installing vtiger on Dreamhost and Ace-host.net

March 17th, 2007

Dreamhost: Had to try a couple times – here is what worked:

  1. my .htaccess file:

    # use custom php.ini, but not fcgi
    Options +ExecCGI
    AddHandler php5-cgi .php
    Action php5-cgi /cgi-bin/php5.cgi
    
  2. If the install failed with “table creation failed”, then wipe out all tables in db, remove vtiger dir and start over with fresh copy of vtiger dir code. I have a codebase directory where I keep copies of code for deployment.

Ace-host.net: Ace-host.net is running PHP 5.2.x – starting with PHP 5.2, an object cannot be converted to a string anymore – the result though is many scripts that used to work are now broken.

  1. Import the database from a fresh install that was mysqldump’d – import and then config the config.inc.php file

  2. Follow the advice here at the vtiger forum – here are the contents of the entry:

    To fix the DateTime I did this which worked:

    1. In /modules/Calendar/Date.php

      • change class DateTime to class com_vtiger_DateTime

      • Then search and replace new DateTime with new com_vtiger_DateTime, about a dozen places in Date.php
    2. In /modules/Calendar/Appointment.php –same search and replace, two occurrences.
    3. In /include/utils/RecurringType.php — search and replace several times
  3. set up .htaccess to your liking
  • del.icio.us
  • Digg
  • Slashdot
  • Technorati
  • MisterWong
  • Reddit

Vtiger – add invoice ID to custom view field list

March 15th, 2007

Needed to create custom views that included the Invoice ID – seems to make sense.

The user “rexkenley” fixed it and posted here (Thanks!!!)

Just ensure that the field label is blank when inserting this into the vtiger_field table

INSERT INTO `vtiger_field` ( `tabid` , `fieldid` , `columnname` , `tablename` , `generatedtype` , `uitype` ,
`fieldname` , `fieldlabel` , `readonly` , `presence` , `selected` , `maximumlength` , `sequence` , `block` ,
 `displaytype` , `typeofdata` , `quickcreate` , `quickcreatesequence` , `info_type` )
VALUES ('23', NULL , 'invoiceid', 'vtiger_invoice', '1', '80', '', 'Invoice ID', '1', '0', '0', '100', '1', '69', '1', 'I~O',
 '1', NULL , 'BAS' 
  • del.icio.us
  • Digg
  • Slashdot
  • Technorati
  • MisterWong
  • Reddit

Mochabomb is Digg proof thanks to caching by WP Super Cache