SugarCRM installation error: Strict Standards


Been trying to install SugarCRM, and the following errors were obtained.


Strict Standards: Declaration of SugarEmailAddress::save() should be compatible with SugarBean::save($check_notify = false) in /home/gulshan/public_html/sugarcrm/include/SugarEmailAddress/SugarEmailAddress.php on line 1110

Strict Standards: Declaration of Person::create_export_query() should be compatible with SugarBean::create_export_query($order_by, $where) in /home/gulshan/public_html/sugarcrm/include/SugarObjects/templates/person/Person.php on line 41

Strict Standards: Declaration of User::retrieve() should be compatible with Person::retrieve($id = -1, $encode = true, $deleted = true) in /home/gulshan/public_html/sugarcrm/modules/Users/User.php on line 41

Strict Standards: Declaration of User::create_export_query() should be compatible with Person::create_export_query(&$order_by, &$where, $relate_link_join = ”) in /home/gulshan/public_html/sugarcrm/modules/Users/User.php on line 41

Strict Standards: Declaration of User::create_new_list_query() should be compatible with SugarBean::create_new_list_query($order_by, $where, $filter = Array, $params = Array, $show_deleted = 0, $join_type = ”, $return_array = false, $parentbean = NULL, $singleSelect = false, $ifListForExport = false) in /home/gulshan/public_html/sugarcrm/modules/Users/User.php on line 41

Strict Standards: Declaration of User::list_view_parse_additional_sections() should be compatible with SugarBean::list_view_parse_additional_sections(&$list_form) in /home/gulshan/public_html/sugarcrm/modules/Users/User.php on line 41

Strict Standards: Declaration of Currency::retrieve() should be compatible with SugarBean::retrieve($id = -1, $encode = true, $deleted = true) in /home/gulshan/public_html/sugarcrm/modules/Currencies/Currency.php on line 236

Strict Standards: Non-static method UploadStream::register() should not be called statically in /home/gulshan/public_html/sugarcrm/include/entryPoint.php on line 181

Strict Standards: Non-static method SugarConfig::getInstance() should not be called statically, assuming $this from incompatible context in /home/gulshan/public_html/sugarcrm/include/SugarLogger/LoggerManager.php on line 73

Strict Standards: Non-static method SugarConfig::getInstance() should not be called statically, assuming $this from incompatible context in /home/gulshan/public_html/sugarcrm/include/SugarLogger/SugarLogger.php on line 118

Couldn’t fix it, so just as a work-around, EDIT index.php and the following after <?php

error_reporting(0);

 

EDIT: Also check this out for CSS issue; https://community.sugarcrm.com/sugarcrm/topics/new_installation_of_ce_not_working

Read More

PHProjekt6 – Integration with LDAP


Since there’s not so much documentation online, I had to struggle a bit to get LDAP working.. but here’s the code 🙂 Hopefully it’ll help some other people.

Of course, there are better ways to get this running, but that’s my quick fix.

File: application/Default/Controllers/LoginController.php

Change the line $success = Phprojekt_Auth::login($username, $password, $keepLogged); to this

try {

function tryLdap($username,$pass) {
//Try the ldap thing
if (strlen(‘cisolve.local’) != 0) {
$username = $username . ‘@’ . ‘mydomain.local’;
}
$ldapconn = ldap_connect(‘ldap://’ . ‘xxx.xxx.xxx.xxx’);   // 2
if (!$ldapconn) {
die(‘Cannot connect to server’);
return false;
}
$ldap_secure_connection = ‘no’;          // 3
if ($ldap_secure_connection == ‘tls’) {
if (!ldap_start_tls($ldapconn)) {
ldap_close($ldapconn);
die(‘Cannot connect securely to server’);
return false;
}
}
$ldapbind = ldap_bind($ldapconn, $username, $pass);
ldap_close($ldapconn);
if ($ldapbind) {
return true;
} else {
return false;
}
}
$ldapSuccess = tryLdap($username,$password);
if($ldapSuccess==true) {
$success = Phprojekt_Auth::login($username, $keepLogged);
} else {
$success=false;
throw new Phprojekt_Auth_Exception(‘Invalid user or password’, 1);
}

File: library/Phprojekt/Auth.php

Change line

public static function login($username, $password, $keepLogged = false)

to

public static function login($username, $keepLogged = false)

In the same file,

comment-out the following:

// The password does not match with password provided
/* if (!Phprojekt_Auth::_compareStringWithPassword($password, $setting->getSetting(“password”, $userId))) {
throw new Phprojekt_Auth_Exception(‘Invalid user or password’, 2);
} */

That should do the trick. Do not forget to change the values from the LoginController.php to reflect your domain settings.

Read More

vTiger : Error: Tables partially created. Table creation failed. FIXED


When installing vTiger, I was blocked from installing the product the following error message..
Error: Tables partially created. Table creation failed.

One way to bypass that, is to change the lines below in the file /install/CreateTables.inc.php

die(“Error: Tables partially created. Table creation failed.\n”);

to

echo “Error: Tables partially created. Table creation failed.\n”;

The error should still be there but it will not prevent the installation from finishing. 🙂 It works!

I don’t know if vTiger will work at 100%.. but the least it works.!

Read More