0

I updated my server from PHP 5.5 to PHP 7. Now Orange HRM is not Working. Production is on hr.oyasys.com . Error happen only after login (http://hr.oyasys.com/index.php/dashboard)

 stack trace
at ()
in SF_ROOT_DIR/lib/vendor/symfony/lib/controller/sfController.class.php line 182 ...
    if ($this->getActionStack()->getSize() >= $this->maxForwards)

    {

      // let's kill this party before it turns into cpu cycle hell

      throw new sfForwardException('Too many forwards have been detected for this request.');

    }
Abhilash Joseph
  • 1,196
  • 1
  • 14
  • 28
  • What have you tried to resolve this problem? Is this even related to programming, or are you only using that software? – Nico Haase Apr 21 '21 at 15:57

4 Answers4

1

I don't think OrangeHRM has accounted for updates to PHP 7. mysql_* functions were also removed and I ran into an error or install.

https://wiki.php.net/rfc/remove_deprecated_functionality_in_php7

Adam Dunmars
  • 361
  • 1
  • 11
  • I'm unable to understand how this is verified answered for this problem, I faced the same problem, Orange HRM definitely has a compatibility issue with PHP versions. it works fine with 5.6 but not with 7+. – Muddasir23 Aug 08 '19 at 10:38
0

OrangeHRM uses the legacy mysql_connect extension which was deprecated in PHP 5.5 and was completely removed from PHP 7.

If you need to run OrangeHRM, you will have to downgrade your PHP version to 5.x or move OrangeHRM to a different compatible server.

captainblack
  • 4,107
  • 5
  • 50
  • 60
0

I solved in this way to install orangehrm 3.3.0 on ubuntu 16.04

Added PPA repository

sudo add-apt-repository ppa:ondrej/php

Installed php5.6

sudo apt-get update sudo apt-get install php5.6

Installed some modules

sudo apt-get install php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml

Enabled php 5.6 module in apache2

Installation works fine

0

Downgrading is not really solving the issue, it's just working around the issue. There are a lot of people that cannot simply downgrade due to restrictions with other software running, and in some cases, IT policy.

It sucks, but we're not getting any love or a real solution until OrangeHRM does the changes necessary to support being run under PHP 7.

user00265
  • 133
  • 3
  • 11