2.6.12.1 Disgusted with installation

Technical Information on OrangeHRM

Moderator: Admin

2.6.12.1 Disgusted with installation

Postby swift » Thu Jan 05, 2012 9:12 pm

We tried upgrading from 2.5 because the facility to specify the financial period start dates had been added.

We did a clean install of 2.6.5 to find that almost all of them menu's worked fine but the PIM modules did not. Upon googling it seems that although these modules had been changed to use symfony and symfony modules were included, they were not actually installed or set up in the installation (this might be wrong but the closest answer I could find).

Eventually we abandoned 2.6.5 and decided to load 2.6.12.1 because from the notes it seems that almost everything is now converted to use the symfony framework, so surely it must be now installed and setup during installation.

Again a clean install was completed with all Green ticks and OK's. However as soon as Next was pressed and the front page was attempted to be loaded, we got the error - Fatal error: Wrong parameters for Exception([string $exception [, long $code ]]) in /home/*****/public_html/***/hr/symfony/plugins/orangehrmCorePlugin/lib/dao/ConfigDao.php on line 74

I find it amazing that people can release software, the installation completes OK and the 1st page does not even load without an error. Further more, it seems support is none existent. I know a paid version is available with support but we need to get a bit of confidence in the product before putting 160 users on it and spending a load of money.

Ah well! I will wait and see if there are any suggestions as to what else to try. I have changed permissions as suggested using the chmod -R 777 */ command but it is still the same.

Dave Swift
swift
 
Posts: 2
Joined: Thu Jan 05, 2012 6:23 pm

Re: 2.6.12.1 Disgusted with installation

Postby comvigo » Fri Jan 20, 2012 3:52 pm

Thanks for Posting this i am also having this Problem.
Please Anybody Reply the Solution.... If having
comvigo
 
Posts: 6
Joined: Thu Nov 24, 2011 1:00 pm
Location: USA

Re: 2.6.12.1 Disgusted with installation

Postby papajohn56 » Sat Jan 28, 2012 6:21 pm

Same error here. Really need a fix.
papajohn56
 
Posts: 10
Joined: Sat Jan 28, 2012 6:16 pm

Re: 2.6.12.1 Disgusted with installation

Postby sujithtomy » Mon Jan 30, 2012 9:35 pm

Me too have the same problem.
Any one knows... Kindly help
sujithtomy
 
Posts: 1
Joined: Mon Jan 30, 2012 9:32 pm

Re: 2.6.12.1 Disgusted with installation

Postby Karan4hrm » Wed Feb 01, 2012 11:29 am

suffering from same problem pls help i need a fix URGENTLY
Karan4hrm
 
Posts: 26
Joined: Tue Jan 31, 2012 4:34 pm

Re: 2.6.12.1 Disgusted with installation

Postby Gayanath » Thu Feb 02, 2012 1:22 pm

This particular issue should be because your PHP version is lower than 5.3.0 (Installer checks only for 5.2.4). Following fix will make it work in versions above 5.2.4 (This issue will be fixed in OrangeHRM 2.6.12.2).

This fix basically removes the third argument for exceptions if PHP version is lower than 5.2.4

(1) Open symfony/apps/orangehrm/lib/model/exception/DaoException.php

(2) It will have following code

Code: Select all
class DaoException extends Exception
{
}


(3) Replace above code block with following.

Code: Select all
class DaoException extends Exception
{
   
    public function __construct($message, $code, $previous) {
       
        if (version_compare(PHP_VERSION, '5.3.0') < 0) {
            parent::__construct($message, $code);
        } else {
            parent::__construct($message, $code, $previous);
        }
       
    }
   
}


(4) Do a similar change for class located at symfony/plugins/orangehrmCorePlugin/lib/exception/CoreServiceException.php if needed.

(5) Above will fix this particular issue. But since an exception is thrown, it means there is an error during execution of the code.
if the exception details are not shown on screen, you will see a message like "An Internal Error Occurred... ". If you see such
a message open log file located at symfony/log/orangehrm.log and read the last error.

(6) It will be helpful if one of you post the error here.
Gayanath
 
Posts: 111
Joined: Fri Aug 01, 2008 11:05 am

Re: 2.6.12.1 Disgusted with installation

Postby Karan4hrm » Thu Feb 02, 2012 3:05 pm

i did those changes still i m gettig error at "http://womencarrally.com/Intranet"

Error : "An internal error occurred. Please contact your system administrator."

on lig file last log :

Thu 02 Feb 2012 04:39:52 AM EST,758 [17743] ERROR filter.ExceptionCatcherFilter - Uncaught Exception: exception 'CoreServiceException' with message 'PDO Connection Error: SQLSTATE[28000] [1045] Access denied for user 'hrm'@'64.92.120.37' (using password: YES)' in /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/plugins/orangehrmCorePlugin/lib/service/ConfigService.php:79
Stack trace:
#0 /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/plugins/orangehrmCorePlugin/lib/service/ConfigService.php(190): ConfigService->_getConfigValue('admin.localizat...')
#1 /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/apps/orangehrm/lib/filter/OrangeI18NFilter.php(47): ConfigService->getAdminLocalizationDefaultLanguage()
#2 /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/lib/vendor/symfony/lib/filter/sfFilterChain.class.php(53): OrangeI18NFilter->execute(Object(sfFilterChain))
#3 /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/apps/orangehrm/lib/filter/ExceptionCatcherFilter.php(26): sfFilterChain->execute()
#4 /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/lib/vendor/symfony/lib/filter/sfFilterChain.class.php(53): ExceptionCatcherFilter->execute(Object(sfFilterChain))
#5 /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/lib/vendor/symfony/lib/filter/sfRenderingFilter.class.php(33): sfFilterChain->execute()
#6 /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/lib/vendor/symfony/lib/filter/sfFilterChain.class.php(53): sfRenderingFilter->execute(Object(sfFilterChain))
#7 /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/lib/vendor/symfony/lib/controller/sfController.class.php(238): sfFilterChain->execute()
#8 /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/lib/vendor/symfony/lib/controller/sfFrontWebController.class.php(48): sfController->forward('auth', 'login')
#9 /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/lib/vendor/symfony/lib/util/sfContext.class.php(170): sfFrontWebController->dispatch()
#10 /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/web/index.php(20): sfContext->dispatch()
#11 {main}
Karan4hrm
 
Posts: 26
Joined: Tue Jan 31, 2012 4:34 pm

Re: 2.6.12.1 Disgusted with installation

Postby Gayanath » Fri Feb 03, 2012 1:10 pm

This seems to be a database connection issue and it can probably be because of not using MySQL default port. Try following change.

(1) Open the file located at symfony/config/databases.yml. You will see a code segment like below.

Code: Select all
all:
  doctrine:
    class: sfDoctrineDatabase
    param:
      dsn: 'mysql:host=64.92.120.37;dbname=your_db_name'
      username: your_db_password
      password: your_db_password
      port: 4343
      attributes: { export: tables }


(2) Copy the value mentioned for port and add it after host in dsn parameter like below. The part newly added is port=4343;

Code: Select all
all:
  doctrine:
    class: sfDoctrineDatabase
    param:
      dsn: 'mysql:host=64.92.120.37;port=4343;dbname=your_db_name'
      username: your_db_password
      password: your_db_password
      port: 4343
      attributes: { export: tables }


(3) In your databases.yml, port and other DB values will be different. Don't post the actual values here.

(4) Let me know whether this works.
Gayanath
 
Posts: 111
Joined: Fri Aug 01, 2008 11:05 am

Re: 2.6.12.1 Disgusted with installation

Postby Karan4hrm » Fri Feb 03, 2012 2:15 pm

i did chagnes in database.yml files also, and set port to 4343 but unfortunately no effect

still i m getting error : "An internal error occurred. Please contact your system administrator."

i m using MySql as my database

last log recorded :

Fri 03 Feb 2012 03:58:18 AM EST,980 [28336] ERROR filter.ExceptionCatcherFilter - Uncaught Exception: exception 'CoreServiceException' with message 'PDO Connection Error: SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'reading initial communication packet', system error: 111' in /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/plugins/orangehrmCorePlugin/lib/service/ConfigService.php:79
Last edited by Karan4hrm on Fri Feb 03, 2012 2:28 pm, edited 1 time in total.
Karan4hrm
 
Posts: 26
Joined: Tue Jan 31, 2012 4:34 pm

Re: 2.6.12.1 Disgusted with installation

Postby Gayanath » Fri Feb 03, 2012 2:27 pm

I gave 4343 as an example. You need to enter the port value that you entered when you install the system.
Gayanath
 
Posts: 111
Joined: Fri Aug 01, 2008 11:05 am

Re: 2.6.12.1 Disgusted with installation

Postby Karan4hrm » Fri Feb 03, 2012 2:32 pm

i set port: 3306

last log :

Fri 03 Feb 2012 03:58:18 AM EST,980 [28336] ERROR filter.ExceptionCatcherFilter - Uncaught Exception: exception 'CoreServiceException' with message 'PDO Connection Error: SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'reading initial communication packet', system error: 111' in /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/plugins/orangehrmCorePlugin/lib/service/ConfigService.php:79
Stack trace:
#0 /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/plugins/orangehrmCorePlugin/lib/service/ConfigService.php(190): ConfigService->_getConfigValue('admin.localizat...')
#1 /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/apps/orangehrm/lib/filter/OrangeI18NFilter.php(47): ConfigService->getAdminLocalizationDefaultLanguage()
#2 /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/lib/vendor/symfony/lib/filter/sfFilterChain.class.php(53): OrangeI18NFilter->execute(Object(sfFilterChain))
#3 /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/apps/orangehrm/lib/filter/ExceptionCatcherFilter.php(26): sfFilterChain->execute()
#4 /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/lib/vendor/symfony/lib/filter/sfFilterChain.class.php(53): ExceptionCatcherFilter->execute(Object(sfFilterChain))
#5 /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/lib/vendor/symfony/lib/filter/sfRenderingFilter.class.php(33): sfFilterChain->execute()
#6 /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/lib/vendor/symfony/lib/filter/sfFilterChain.class.php(53): sfRenderingFilter->execute(Object(sfFilterChain))
#7 /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/lib/vendor/symfony/lib/controller/sfController.class.php(238): sfFilterChain->execute()
#8 /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/lib/vendor/symfony/lib/controller/sfFrontWebController.class.php(48): sfController->forward('auth', 'login')
#9 /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/lib/vendor/symfony/lib/util/sfContext.class.php(170): sfFrontWebController->dispatch()
#10 /mnt/glusterfs/apache/hosting-dir/146732/user_dir/womencarrally.com/Intranet/symfony/web/index.php(20): sfContext->dispatch()
#11 {main}
Karan4hrm
 
Posts: 26
Joined: Tue Jan 31, 2012 4:34 pm

Re: 2.6.12.1 Disgusted with installation

Postby papajohn56 » Fri Feb 03, 2012 2:46 pm

Sorry, but none of the suggestions worked. I updated the Exception files, I added the port (with my correct port) and I still get an error. I run PHP 5.3.8
papajohn56
 
Posts: 10
Joined: Sat Jan 28, 2012 6:16 pm

Re: 2.6.12.1 Disgusted with installation

Postby papajohn56 » Tue Feb 07, 2012 1:37 pm

Bueller? Bueller?
papajohn56
 
Posts: 10
Joined: Sat Jan 28, 2012 6:16 pm

Re: 2.6.12.1 Disgusted with installation

Postby vasu » Fri Feb 10, 2012 2:14 pm

m getting this error after applying fix pls help me Fatal error: Class 'CoreServiceException' not found in /####/#####/public_html/work/symfony/plugins/orangehrmCorePlugin/lib/service/ConfigService.php on line 95
vasu
 
Posts: 3
Joined: Wed Sep 14, 2011 12:29 pm

Re: 2.6.12.1 Disgusted with installation

Postby Gayanath » Sun Feb 12, 2012 12:13 pm

@vasu

Check your download of 2.6.12.1. It should contain the file symfony/plugins/orangehrmCorePlugin/lib/service/ConfigService.php. Then check whether your installation contains it.

@papajohn56

If you have shell access to your OrangeHRM installation, please go to symfony directory inside OrangeHRM root and run following command and see whether it resolves the issue.

php symfony cc

@All

Can you please try an earlier version like 2.6.12 or 2.6.11.3 and see whether the issue exists in those releases as well? It will be helpful to diagnose the problem. You can download earlier versions from following location.

http://sourceforge.net/projects/orangehrm/files/stable/
Gayanath
 
Posts: 111
Joined: Fri Aug 01, 2008 11:05 am

Next

Return to OrangeHRM

Who is online

Users browsing this forum: No registered users and 1 guest

cron