Domain Sync and MCrypt for PHP

Started by BRJP, March 21, 2016, 03:50:06 PM

BRJP

Dear All,

Since the migration, our Domain Sync with OpenSRS has been failing.  Upon running the debug from Tasks, we get the below error:

Non-static method PEAR::getStaticProperty() should not be called statically, assuming $this from incompatible context in /var/www/vhosts/dragonsden.com/clients.dragonsden.com/myportal/includes/libs/opensrs/PEAR.php on line 835 mcrypt module is not compiled into PHP

Any ideas how to repair this on LINIX Centos 7? 

Thanks
Brad
Kind regards,
Bradley Porter
--------------------
Find out more about SaneChoice Services at: https://www.sanechoice.cloud/

hbillclient

*Just make a snapshot of the working system before making changes so as to easily restore if things go wrong.

Install mcrypt like this:

yum -y install epel-release(if you already haven't installed the EPEL package)

yum -y install php-mcrypt
OR
yum -y install php-mcrypt.x86_64(for 64bit system)

For PEAR, you can try upgrading to the latest version which does fix such static warnings. Although, I am not sure if upgrading might cause issues with other scripts/modules using older version of PEAR, you can try at your own discretion.

pear clear-cache
pear upgrade pear-1.10.1


Check this link as well:

http://wiki.hostbillapp.com/index.php?title=OpenSRS:Synchronizing_Imported_Domains


Thanks.

BRJP

Excellent - thank you.  Got it working with PLESK so now all good.
Kind regards,
Bradley Porter
--------------------
Find out more about SaneChoice Services at: https://www.sanechoice.cloud/