WordPress.org

Ready to get started?Download WordPress

Forums

Web Forms for Vtiger wordpress Lead capture and Contacts Sync
[resolved] [Plugin: WordPress vTiger CRM Lead Capture Plugin] INVALID_USER_CREDENTIALS (4 posts)

  1. ifontaine
    Member
    Posted 1 year ago #

    Hi,

    I got this warning when trying to add entry in to vtiger:

    Failed to add entry in to vtiger CRM.
    Error Code: INVALID_USER_CREDENTIALS
    Error Message: Invalid username or password

    This is my settings:

    Database Host : localhost:3306 (which is db_server:db_port as shown in my config.inc.php)
    Database User : username of the database as shown in my config.inc.php
    Database Password : database password as shown in my config.inc.php
    Database Name : database name as shown in my config.inc.php

    http://wordpress.org/extend/plugins/wp-tiger/

  2. smackcoders
    Member
    Plugin Author

    Posted 1 year ago #

    You are getting this error due to vtiger Webforms.config.php. not with our plugin settings. Ok let me explain.

    You need to get the correct access key from vtiger My preferences and replace it in "yourvtiger/modules/Webforms/Webforms.config.php".

    For further details please check smackcoders.com blog.

    Best regards

    Smackcoders

  3. fillrobs
    Member
    Posted 1 year ago #

    I spent an hour or 2 battling with this - turns out that the Javascript needs a tweak - edit the smack-vtlc-scripts.js file (line 37)

    change

    if(response == "Success")

    to

    if(jQuery.trim(response) == "Success")

    works then - I also created a WP plugin to prove it works

    <?php
    /*
    Plugin Name: Test VTiger Connection
    Description: Test VTiger Conn
    Version: 1.0
    Author: probins
    Author URI: http://www.futurestorage.co.uk/
    */

    add_action( 'admin_menu', 'test_vtiger_connection' );

    function test_vtiger_connection() {
    add_options_page( 'test vtiger connection', 'vtiger connection', 'manage_options', 'my-unique-identifier2', 'vtiger_connection' );
    }

    function vtiger_connection(){
    //global $wpdb;
    echo "<h1> Testing Vtiger Connection </h1>";
    //require_once(getcwd().'/../../../wp-load.php');

    define('MY_HOST', '<Your IP>');
    define('MY_USER', '<Your Username>');
    define('MY_PASSWORD', '<Your Password>');
    define('MY_DBNAME', '<Your DB Name>');

    require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-load.php' );

    $mydb = new wpdb(MY_USER,MY_PASSWORD,MY_DBNAME,MY_HOST);

    $mydb->show_errors();
    $rows = $mydb->get_results("select * from vtiger_users"); // This vtiger's user table used only for test purpose

    if(isset($rows))
    echo "Success";
    else
    echo "Failed";

    }

  4. smackcoders
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the update. We will look into the issue and update the code in future release. Once again thanks for your valuable update.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic