vtiger.com - Home of vtiger CRM
Home Products Downloads Support Buy Support Partners Company  Community Forums Blogs   Extensions  
Call Us : +1 408-733-3229
 
Log in

Register | Forgot password ?
<<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

 Search this forum

SourceForge.net Logo


Catchable fatal error: Object of class Users could not be co Bug Tracker | Installation | Webmail
Post new topic   Reply to topic  Forum Home -> Help - 5.0.3 Previous topic :: Next topic

Post  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 
  Reply with quote
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

    View user's profile Send private message

Post  pespie   Post subject: Re: Catchable fatal error: Object of class Users could not..
     
Sun Jun 03, 2007 10:38 am 
Posts: 6 
 
  Reply with quote
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

    View user's profile Send private message

Post  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 
  Reply with quote
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

    View user's profile Send private message

Post  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 
 
  Reply with quote
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/

    View user's profile Send private message

Post  prafulla   Post subject: Re: Catchable fatal error: Object of class Users could not b
     
Fri Feb 01, 2008 7:01 pm 
Posts: 22 
 
  Reply with quote
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

    View user's profile Send private message

Post  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 
 
  Reply with quote
Hi Prafulla,

Looks like you are using PHP 5.2 and vtiger 5.0.3 without patch for PHP 5.2

<i>[Please take a backup before making changes to exisitng vtiger installation.]</i>

Kinldy apply the following patch:
http://prdownloads.sourceforge.net/vtigercrm/vtigerCRM-5.0.3-PHP5.2-Patch1.tar.gz?download

Regards,
Prasad
vtiger Team

    View user's profile Send private message

Post  prafulla   Post subject: Re: Catchable fatal error: Object of class Users could not b
     
Sat Feb 02, 2008 8:36 am 
Posts: 22 
 
  Reply with quote
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

    View user's profile Send private message

Post  prasad.a   Post subject: Re: Catchable fatal error: Object of class Users could not b
     Senior Member
Sat Feb 02, 2008 12:04 pm 
Posts: 1587 
 
  Reply with quote
Hi Prafulla,

You can apply the patch for your vtiger 5.0.3 as suggested earlier:
http://prdownloads.sourceforge.net/vtigercrm/vtigerCRM-5.0.3-PHP5.2-Patch1.tar.gz?download

If you want to start fresh, you can start with 5.0.4RC which works both on PHP 5.1 and 5.2. We will be releasing the stable version soon.
http://sourceforge.net/project/showfiles.php?group_id=117522&package_id=258327

Regards,
Prasad
vtiger Team

    View user's profile Send private message

Post  prafulla   Post subject: Re: Catchable fatal error: Object of class Users could not b
     
Sat Feb 02, 2008 12:07 pm 
Posts: 22 
 
  Reply with quote
Hello Prasad

many thanks. I will prefer fresh installation for 5.0.4.

One small question - once final/stable version is released - will existing 5.0.4 be able to migrate to stable version!!

_________________
regards / Prafulla

    View user's profile Send private message

Post  prasad.a   Post subject: Re: Catchable fatal error: Object of class Users could not b
     Senior Member
Sat Feb 02, 2008 12:11 pm 
Posts: 1587 
 
  Reply with quote
Hi Prafulla,

We don't recommend vtiger 5.0.4RC for production use, however we are planning to provide migration to stable version.

Keep us posted on any issue at http://trac.vtiger.com

Regards,
Prasad
vtiger Team

    View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    vtiger Forum Index -> Help - 5.0.3 All times are GMT
Leave a Testimonial
Page 1 of 1

Jump to: