Page 1 of 1

PM 2.5.1 Class not found

Posted: Thu Jun 23, 2016 2:04 am
by unionbankph
Dear Experts,

We have PM 2.5.1 installed on Linux CentOS box. We had to update Users.php (workflow\engine\classes\model) (added some scripts in particular) to meet some requirements. This customization worked on Windows but when we did it in Linux platform we've experienced errors. Whenever we go to the next page or search for a dynaform/trigger, the system shows a blank screen (please refer to the attached screenshot). Checking the error log, it says class BaseUsers not found.

What might have caused this and how do we solve it?

Appreciate your response the soonest. Thank you!

Re: PM 2.5.1 Class not found

Posted: Thu Jun 23, 2016 9:46 pm
by amosbatto
Can you attach your modified Users.php file? You probably aren't importing the UsersPeer.php file correctly or not instantiating the UsersPeer class correctly.

Re: PM 2.5.1 Class not found

Posted: Fri Jun 24, 2016 2:02 am
by unionbankph
We had additional scripts added in update function. Please see modified Users.php.

Thank you, amosbatto!

Re: PM 2.5.1 Class not found

Posted: Sat Jun 25, 2016 9:28 am
by amosbatto
I'm not seeing your attached Users.php file. Please upload it. There is an option under the "Attachments" tab (in the full editor) to attach files to a forum message.

Re: PM 2.5.1 Class not found

Posted: Tue Jun 28, 2016 1:17 am
by unionbankph
Please see file, amosbatto. Thank you!

Re: PM 2.5.1 Class not found

Posted: Tue Jun 28, 2016 5:44 pm
by amosbatto
I don't see anything in your code which should screw anything up. Do you have the ldap module for PHP installed on your Linux server?
Also, I suggest using executeQuery() instead of mysql_query().

What happens if you try creating a separate test PHP script file on your Linux server which connects to LDAP? Does it execute without any problems?

Re: PM 2.5.1 Class not found

Posted: Tue Jun 28, 2016 5:48 pm
by amosbatto
Also try uncommenting this line:
Code: Select all
require_once 'classes/model/om/BaseUsers.php';
//require_once 'classes/model/IsoCountry.php';
//require_once 'classes/model/IsoSubdivision.php';
//require_once 'classes/model/IsoLocation.php';

Re: PM 2.5.1 Class not found

Posted: Wed Jun 29, 2016 1:19 am
by unionbankph
Tried that out already but still same error encountered. Have tried using absolute path for BaseUsers, still no success.