sapplica / sentrifugo

Sentrifugo is a FREE and powerful Human Resource Management System (HRMS) that can be easily configured to meet your organizational needs.
http://www.sentrifugo.com/
GNU General Public License v3.0
484 stars 426 forks source link

500 HTTP Error Line 52 /sentrifugo/Zend/Rest #339

Closed loublotter closed 4 years ago

loublotter commented 4 years ago

Followed this advice to produce logs: https://github.com/sapplica/sentrifugo/issues/148#issuecomment-313444351

I have inserted the following lines in sentrifugo/application/configs/application.ini under [production] section:

phpSettings.error_reporting = E_ALL php Settings.log_errors = 1 php Settings.error_log = APPLICATION_PATH "/../logs/application.log

Then received this error (using php7.2): [16-Apr-2020 04:37:36 UTC] PHP Fatal error: Declaration of Zend_Rest_Route::assemble($data = Array, $reset = false, $encode = true) must be compatible with$ Zend_Controller_Router_Route_Module::assemble($data = Array, $reset = false, $encode = true, $partial = false) in /var/www/html/sentrifugo/Zend/Rest$ on line 52

loublotter commented 4 years ago

I actually just fixed this by going into /var/www/html/sentrifugo/Zend/Rest.php and editing line 52 adding $partial = false to the end of this string 'public function assemble($data = array(), $reset = false, $encode = true)'

'public function assemble($data = array(), $reset = false, $encode = true, $partial = false)'