Home Our Experiences
Troubleshooting


Installing VTiger CRM on Localhost PDF Print E-mail
Written by Administrator   
Tuesday, 29 June 2010 00:42

I was able to finally install the vTigerCRM on my localhost, after 2 days of issues and after installing and removing vTigerCRM about 10 times. If you read thru this article you will probably notice that the issue was not with vTigeCRM but it is probably my setup, as I was able to install properly with a minor change on my Godaddy delux hosting account.

My Issue

I could install the vTiger product with warnings about date_default_timezone_set() which was not set in my php session, and completed rest of the installation using vTiger installation screens. But then I had 2 issues

  1. Could not logon to vTiger instance using the "admin" user (the default password for admin user is "admin", it says so in the install screen)
  2. 2. Once I got around the admin login issue, the Graph on the dashboard would not show up, but I had errors (see below)

The article below outlines the issues I faced and what I had to do to fix these. Hope you find this useful and this helps you resolve similar issues on your end.

My Troubleshooting & Solution

I had to do the following

  1. Unzip vtigercrm-5.0.4.tar.gz into the Apache HTDOCS directory or your localhost web directory
    - I used vtigertest as the root directory for the extracted files
  2. Open /vtigertest/config.php
  3. Add the following line to config.php (before the line include("config.inc.php");
    date_default_timezone_set('America/Chicago'); // You can use what ever timezone you want to set it to. If this is already set in your PHP installation you are good to go, or else you will get a screen full or warnings asking you to set this parameter.
    include('config.inc.php');
  4. 4. Go thru the Install menu of VTiger and put in the relevant details
    • One Issue I had was, I left the passwords for Admin and Standarduser the same in the installation screen, and I also typed in the word "admin" for password for admin user. but after the installation was successful I was not able to logon as Admin, as it kept saying "Invalid User id or Password"
    • To fix this issue, I just changed the Admin password to another string other than "admin", you can try "password" or any other string, the Default values did not work for me.
  5. Once you type in the details in the installation screen, and put in the database connection details. It will take you to another screen where it will say
    • Created config.inc.php and now ready to create database. (depending on what option you chose for database (creating default data) it will take upto 4 mins
  6. Once installer completes, it takes you to the logon screen.
  7. Type in your Admin user id and password.
  8. For me the first dashboard screen did not show the graph, instead I got the following errors


    Fatal error: Call to undefined method Image_Graph_Element::Image_Graph_Element() in C:\xampplite\htdocs\nb6x-php\staging\crm\vtigercrm\Image\Graph.php on line 136

    Fix this by Adding the following function in Images/Graph/Element.php
    function Image_Graph_Element()
    {
    }


    Fatal error: Call to undefined method Image_Graph_Marker::Image_Graph_Marker() in C:\xampplite\htdocs\nb6x-php\staging\crm\vtigercrm\Image\Graph\Marker\Value.php on line 74

    Fix this by Adding the following function in Images/Graph/Marker.php
    function Image_Graph_Marker()
    {
    }


    Fatal error: Call to undefined method Image_Graph_Grid::Image_Graph_Grid() in C:\xampplite\htdocs\nb6x-php\staging\crm\vtigercrm\Image\Graph\Grid\Lines.php on line 58

    Fix this by Adding the following function in Images/Graph/Grid.php
    function Image_Graph_Grid()
    {
    }


    Fatal error: Call to undefined method Image_Graph_Fill::Image_Graph_Fill() in C:\xampplite\htdocs\nb6x-php\staging\crm\vtigercrm\Image\Graph\Fill\Gradient.php on line 101

    Fix this by Adding the following function in Images/Graph/Fill.php
    function Image_Graph_Fill()
    {
    }

Once all these functions are added to the respective files, then the Dashboard Graph will show correctly and you are ready to user you VTigerCRM software.


I am guessing all these issues are due to my PHP setup, I installed vTigerCRM on my godaddy hosting account and I just had to fix the config.php
date_default_timezone_set('America/Chicago'); and everything else worked just fine. I did not have to modify any of the classes above with the blank constructor function, so I am pretty sure this is a php setting that I am missing.

If you have the same issue please use the steps above, or if you know of a different solution please post it here.

Hope this article helps you resolving your issue with installing vTigerCRM.

Last Updated on Tuesday, 29 June 2010 01:00