简体   繁体   English

Orange HRM 不适用于 PHP 7

[英]Orange HRM is not Working for PHP 7

I updated my server from PHP 5.5 to PHP 7. Now Orange HRM is not Working.我将我的服务器从 PHP 5.5 更新到 PHP 7。现在 Orange HRM 不工作了。 Production is on hr.oyasys.com .生产在hr.oyasys.com 上 Error happen only after login ( http://hr.oyasys.com/index.php/dashboard )错误仅在登录后发生( 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.');

    }

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.我认为 OrangeHRM 没有考虑到 PHP 7 的更新。mysql_* 函数也被删除了,我遇到了错误或安装。

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

OrangeHRM uses the legacy mysql_connect extension which was deprecated in PHP 5.5 and was completely removed from PHP 7. OrangeHRM 使用旧版mysql_connect扩展,该扩展在 PHP 5.5 中已弃用,并已从 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.如果您需要运行 OrangeHRM,则必须将 PHP 版本降级到 5.x 或将 OrangeHRM 移动到其他兼容服务器。

I solved in this way to install orangehrm 3.3.0 on ubuntu 16.04我以这种方式解决了在ubuntu 16.04上安装orangehrm 3.3.0

Added PPA repository添加了 PPA 存储库

sudo add-apt-repository ppa:ondrej/php须藤添加-apt-repository ppa:ondrej/php

Installed php5.6安装php5.6

sudo apt-get update sudo apt-get install php5.6须藤 apt-get 更新须藤 apt-get 安装 php5.6

Installed some modules安装了一些模块

sudo apt-get install php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml须藤 apt-get 安装 php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml

Enabled php 5.6 module in apache2在 apache2 中启用 php 5.6 模块

Installation works fine安装工作正常

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 政策,很多人不能简单地降级。

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.这很糟糕,但在 OrangeHRM 进行必要的更改以支持在 PHP 7 下运行之前,我们不会得到任何爱或真正的解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM