 |
| << | February 2010 | >> |
| Su |
Mo |
Tu |
We |
Th |
Fr |
Sa |
| |
1 |
2 |
3 |
4 |
5 |
6 |
| 7 |
8 |
9 |
10 |
11 |
12 |
13 |
| 14 |
15 |
16 |
17 |
18 |
19 |
20 |
| 21 |
22 |
23 |
24 |
25 |
26 |
27 |
| 28 |
|
|
|
|
|
 |
 |
|
|
libregeek Post subject: Catchable fatal error: Object of class Users could not be co
|
Fri Jun 01, 2007 1:55 pm Posts: 96 Location: Kerala, India
|
| |
|
Hi,
I am using PHP-5.1.6 with vtiger-5.0.0 in CentOS-4.5. Today I upgraded PHP5 and then upgraded vtiger to 5.0.3. The installation collapsed throwing the following errors:
| Code: | | Catchable fatal error: Object of class Users could not be converted to string in /home/www/html/vrm/include/utils/CommonUtils.php on line 36 |
I saw somwehere in the forum that PHP-5.2 is not supported by vtiger.
http://forums.vtiger.com/viewtopic.php?t=14736
It is weird that an enterprise grade application works only on a vulnerable software(php-5.1). The PHP community has released several security patches for php5 and now the current version is php-5.2.3. I think priority should always given to security fixes rather than feature upgrades. Is there any workaround to get rid of this error?
regards
Manilal
|
|
|
|
|
 |
pespie Post subject: Re: Catchable fatal error: Object of class Users could not..
|
Sun Jun 03, 2007 10:38 am Posts: 6
|
| |
|
Hi All,
Yes, this problem is quite easy to correct.
First, put the file ErrorHandler.php in your installation's root :
| Code: | <?php
function compatibilityErrorHandler($errno, $errstr, $errfile, $errline)
{
switch ($errno) {
case E_RECOVERABLE_ERROR:
break;
default:
echo "Unknown error type: [$errno] $errstr\n";
break;
}
}
// set to the user defined error handler
$old_error_handler = set_error_handler("compatibilityErrorHandler", E_RECOVERABLE_ERROR);
?>
|
Next, add the line :
| Code: | | require_once('ErrorHandler.php'); |
before the line :
| Code: | | include('vtigerversion.php'); |
in your config.inc.php file (which is in your installation's root).
Next, try your system. It should work now !
PS: all this is explained somewhere else on this site. I didn't write it myself !
Bye
|
|
|
|
libregeek Post subject: Re: Catchable fatal error: Object of class Users could not b
|
Mon Jun 04, 2007 6:55 am Posts: 96 Location: Kerala, India
|
| |
|
Thanks for the solution. I am now able to login to the system.
I followed the *Upgrading Procedure* in the vtiger-5.0.30-release-notes(http://www.vtiger.com/products/crm/vtigercrm-503-Release-Notes.pdf)
and I can't find a migration screen similar to one in the relase file. There is no option to migrate a database from 5.0.1 to 5.0.3/ Did I gone wrong somewhere ?
regards
Manilal
|
|
|
|
Asha Post subject: Re: Catchable fatal error: Object of class Users could not b Senior Member
|
Sat Nov 17, 2007 11:10 am Posts: 496
|
| |
|
Hi Manilal,
Following are the steps you need to follow to migrate from 5.0.1 to 5.0.3 :
Step 1 : Download the patch available to migrate to 5.0.3 and unzip it in the vtiger CRM home directory.
Step 2 : Login as admin user
Step 3 : Click on the Settings tab
Step 4 : Go to Migration Wizard.
Step 5: Use the option 'Upgrade my vtiger 5.x version to Current Version (5.0.3)'
Step 6 : Go to Smarty/templates_c and remove all the cached files which ends with ".tpl.php". If not you may not get the ui changes properly.
Step 7 : Go to your browser options and clear the cache.
Please let me know if this doesn't help you. _________________ Regards,
Asha
vtiger team
Blog: http://www.vtiger.com/blogs/author/asha/
|
|
|
|
prafulla Post subject: Re: Catchable fatal error: Object of class Users could not b
|
Fri Feb 01, 2008 7:01 pm Posts: 22
|
| |
|
Hello Support Desk
I have php5 with Vtoger version 5.0.3 (downloaded few days back) - and same error.
you may check it at www.ri4u.co.in/crm/
user id admin and password admin _________________ regards / Prafulla
|
|
|
|
prasad.a Post subject: Re: Catchable fatal error: Object of class Users could not b Senior Member
|
Sat Feb 02, 2008 8:29 am Posts: 1587
|
|
|
|
|
prafulla Post subject: Re: Catchable fatal error: Object of class Users could not b
|
Sat Feb 02, 2008 8:36 am Posts: 22
|
| |
|
Hello Prasad
No..in my control panel (webhost) - it is showing php5. and they permit us to chnage it to php4.
Sometime back - I did ask my host to provide me PHP5.2 so that I can run another portal service (which works only with php5.2), but they declined. Perhaps - they have changed it without telling us.
Can i delete all and run the fresh installation - with all possible patch included. If yes - please provide me URL; else i will work through the patch - you have suggested me.
Many thanks for helping me out. In fact - SugarCRM works perfectly on my server, but i liked your additional features (except missing tasks / project management - which SugarCRM provides)..Can we integrate forum into it for internbal discussion? _________________ regards / Prafulla
|
|
|
|
| |