0 like 0 dislike
380 views
I am using VTIGER 5.1.0. installed on my Apache server.
 
 
Warning: get_class() expects parameter 1 to be object, string given in /var/www/html/vtigercrm/include/utils/ListViewUtils.php on line 43
 
Warning: get_class() expects parameter 1 to be object, string given in /var/www/html/vtigercrm/include/utils/ListViewUtils.php on line 541 
asked Oct 17, 2014 in Education & Reference by Krish (880 points) | 380 views
    

2 Answers

0 like 0 dislike

Please check your PHP version as vtigercrm 5.1.0 is not compatible with php 5.3.x, use php 5.2.x instead
OR
Dislplay_error is set to Off in php.ini

answered Oct 17, 2014 by Sam (1,420 points)
0 like 0 dislike

vtiger CRM 5.1.0 on PHP 5.3.0
Experiment & Observations
To avoid your screen being filled up with PHP Notice and Deprecated messages the errorreporting
was set to E
ALL & ~ENOTICE & ~EDEPRECATED
Although the installation succeeded the user login resulted to failure!
After spending good amount of time investigating the issue, we got to the bottom of the issue.
We carried out a unit test using the script (TestCryptAPI.php).
TestCryptAPI.php
<?php header('Content-type: text/plain'); echo "PHP crypt API Testing\n\n"; echo "Observe the values (EXPECTING and ACTUAL) it should match\n"; echo "but on PHP 5.3.0 MD5 encryption was not working as expected!\n"; // Testing MD5 encryption echo "\n============== MD5 ==============================\n"; echo 'INPUT : admin, Salt: $1$ad' . "\n"; echo 'EXPECTING: $1$ad$hsl2KFybNRnbXBa.b.WWv.' . "\n"; echo 'ACTUAL : ' . crypt('admin', '$1$ad') . "\n"; echo "\n============== BLOWFISH =========================\n"; // Testing BLOWFISH encryption echo 'INPUT : admin, Salt: $2$ad' . "\n"; echo 'EXPECTING: $23PstrXfk7Nw' . "\n"; echo 'ACTUAL : ' . crypt('admin', '$2$ad') . "\n"; ?>
The script output revealed results which was helpful to track the cause of login failure.
PHP crypt API Testing
Observe the values (EXPECTING and ACTUAL) it should match
but on PHP 5.3.0 MD5 encryption was not working as expected!
============== MD5 ==============================
INPUT : admin, Salt: $1$ad
EXPECTING: $1$ad$hsl2KFybNRnbXBa.b.WWv.
ACTUAL : $1$ad$G7NRXM/C4WfW4keUMfsCg1
============== BLOWFISH =========================
INPUT : admin, Salt: $2$ad
EXPECTING: $23PstrXfk7Nw
ACTUAL : $23PstrXfk7Nw
The PHP crypt API was not working as expected when MD5 salt (crypttype) was used.Following changes was required to get the installation succeed on PHP 5.3.0
● Set the error
reporting in php configuration to
EALL & ~ENOTICE & ~EDEPRECATED
● Change the default password crypt type to BLOWFISH
○ Few minor changes were added to modules/Users/Users.php to take care of crypt
type
insert when creating users.
● To eliminate the warning of date
Warning: date() [function.date]: It is not safe to rely on the system's timezone
settings. You are required to use the date.timezone setting or the
datedefaulttimezoneset() function.
○ $default
timezone was set in config.template.php to 'Europe/London';
(which gets copied to config.inc.php post installation). This represents GMT ... for supported
timezones: http://php.net/manual/en/timezones.php
http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/6424
● getclass API needs to used on objects (isobject), this was fixed to eliminate warning
Warning: getclass() expects parameter 1 to be object, string given in
vtigercrm\include\utils\ListViewUtils.php on line 43
Warning: get
class() expects parameter 1 to be object, string given in
vtigercrm\include\utils\SearchUtils.php on line 33
● Added missing Constructor functions to Image/Graph library.
● Fixed Webservice ExtendSession Operation
○ PHPSESSID goes missing in $REQUEST, need to lookup in $COOKIE
● strcmp explicit parameter testing adding in VTQL_Parser.php

answered Oct 17, 2014 by Sam (1,420 points)

Related questions

0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Oct 26, 2017 in Education & Reference by Sam (1,420 points) | 15 views
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

Mathe Forum Schule und Studenten
1,161 questions
1,297 answers
271 comments
1,558 users