Title: Getting a PHP Error from Plug In
Last modified: June 17, 2020

---

# Getting a PHP Error from Plug In

 *  [azariosays](https://wordpress.org/support/users/azariosays/)
 * (@azariosays)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/getting-a-php-error-from-plug-in/)
 * Hi, I received an error that WP2Social Auto Publish is using old PHP, more specifically,
   PHP 7.1. Do you have an update planned to fix this?
 * Here’s the errors for your records:
 * 57 | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since
   PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
    57 | 
   ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since
   PHP 7.2; Use random_bytes() or OpenSSL instead 57 | ERROR | The constant “MCRYPT_DEV_URANDOM”
   is deprecated since PHP 7.1 and removed since PHP 7.2
 * Thanks for your time!

Viewing 1 replies (of 1 total)

 *  [anjalixyzscripts](https://wordpress.org/support/users/anjali94/)
 * (@anjali94)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/getting-a-php-error-from-plug-in/#post-13001756)
 * WP2Social Auto Publish works fine on PHP 7.2 and 7.3. What you found are not 
   errors, but compatibility codes for PHP 7.1 and older versions of PHP in the 
   Facebook API files.
    A static analysis tool only tells you what code *exists*,
   not what branches will be taken on a particular version. The plugin is already
   fully compatible with all current PHP version. Thank You.

Viewing 1 replies (of 1 total)

The topic ‘Getting a PHP Error from Plug In’ is closed to new replies.

 * ![](https://ps.w.org/facebook-auto-publish/assets/icon-128x128.png?rev=2124304)
 * [WP2Social Auto Publish](https://wordpress.org/plugins/facebook-auto-publish/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/facebook-auto-publish/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/facebook-auto-publish/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook-auto-publish/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook-auto-publish/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook-auto-publish/reviews/)

## Tags

 * [update](https://wordpress.org/support/topic-tag/update/)

 * 1 reply
 * 2 participants
 * Last reply from: [anjalixyzscripts](https://wordpress.org/support/users/anjali94/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/getting-a-php-error-from-plug-in/#post-13001756)
 * Status: not resolved