Title: php7 errors with this plugin
Last modified: October 18, 2016

---

# php7 errors with this plugin

 *  Resolved [mustermann](https://wordpress.org/support/users/mustermann/)
 * (@mustermann)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php7-errors-with-this-plugin/)
 * Hi, I have checked your plugin with PHP Compatibility Checker plugin. the plugin
   found some errors to run with php7:
 * FILE: …/plugins/connections/vendor/php_class_upload/class.upload.php
    ———————————————————————————————————-
   FOUND 1 ERROR AFFECTING 1 LINE ———————————————————————————————————- 2588 | ERROR
   | Use of deprecated PHP4 style class constructor is not supported since PHP 7———————————————————————————————————-
 * FILE: …/plugins/connections/includes/system-info/inc.system-info.php
    ———————————————————————————————————-
   FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ———————————————————————————————————-
   35 | WARNING | INI directive ‘safe_mode’ is deprecated from PHP 5.3 and forbidden
   from PHP 5.4. ———————————————————————————————————-
 * FILE: …/plugins/connections/includes/class.metabox-api.php
    —————————————————————————————————————————-
   FOUND 5 ERRORS AFFECTING 5 LINES —————————————————————————————————————————- 1618
   | ERROR | ‘string’ is a reserved keyword introduced in PHP version 7.0 and cannot
   be invoked as a function (T_STRING) 1623 | ERROR | ‘string’ is a reserved keyword
   introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING) 
   1633 | ERROR | ‘string’ is a reserved keyword introduced in PHP version 7.0 and
   cannot be invoked as a function (T_STRING) 1638 | ERROR | ‘string’ is a reserved
   keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
   1643 | ERROR | ‘string’ is a reserved keyword introduced in PHP version 7.0 and
   cannot be invoked as a function (T_STRING) —————————————————————————————————————————-
 * FILE: …/plugins/connections/includes/class.sanitize.php
    ———————————————————————————————————————————-
   FOUND 1 ERROR AFFECTING 1 LINE ———————————————————————————————————————————- 78
   | ERROR | Function name, class name, namespace name or constant name can not 
   be reserved keyword ‘string’ (since version 7.0) ———————————————————————————————————————————-
 * FILE: …/plugins/connections/includes/class.utility.php
    —————————————————————————————————————————————-
   FOUND 2 ERRORS AFFECTING 1 LINE —————————————————————————————————————————————-
   551 | ERROR | Extension ‘ereg’ is deprecated since PHP 5.3 and removed since 
   PHP 7.0 – use pcre instead. 551 | ERROR | The use of function eregi is discouraged
   from PHP version 5.3 and forbidden from PHP version 7.0; use preg_match instead—————————————————————————————————————————————-

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Steven](https://wordpress.org/support/users/shazahm1hotmailcom/)
 * (@shazahm1hotmailcom)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php7-errors-with-this-plugin/#post-8329126)
 * **@ mustermann**
 * Thanks for the report. Connections is 100% compatible with PHP 7. It is developed
   and tested on version 7.0.12. Static analysis is not everything… 🙂
 * `…/plugins/connections/vendor/php_class_upload/class.upload.php`
    No longer used,
   included only to maintain backwards compatibility for commercial add-ons which
   still use it because users have not upgraded the add-ons. This library is only
   updated if needed for security issues.
 * `…/plugins/connections/includes/system-info/inc.system-info.php`
    This is only
   diagnostic info for troubleshooting users still on old version of PHP. Will not
   affect users on newer versions:
 * `…/plugins/connections/includes/class.metabox-api.php`
    `…/plugins/connections/
   includes/class.sanitize.php` False positive, “string” is allowed as a function
   name in PHP 7, it is only disallowed as a class name.
 * `…/plugins/connections/includes/class.utility.php`
    Deprecated function which
   is no longer used. Included for backward compatibility only.
 * If you do find any issues while running on PHP7 with Connections, let me know
   and I’ll resolve it right away!
 * Again, thanks for taking the time to let me know.
    -  This reply was modified 9 years, 7 months ago by [Steven](https://wordpress.org/support/users/shazahm1hotmailcom/).
 *  Thread Starter [mustermann](https://wordpress.org/support/users/mustermann/)
 * (@mustermann)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php7-errors-with-this-plugin/#post-8329873)
 * Hi,
 * is in the plugin “PHP Compatibility Checker plugin” a bug? If it is, please inform
   the author.
 * Thank you for help.
 *  Plugin Author [Steven](https://wordpress.org/support/users/shazahm1hotmailcom/)
 * (@shazahm1hotmailcom)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php7-errors-with-this-plugin/#post-8329980)
 * **@ mustermann**
 * **re: is in the plugin “PHP Compatibility Checker plugin” a bug?**
 * Sorry, but I do not understand. Can you give more detail or explain further?
 * As I mentioned Connections is 100% PHP 7 compatible. If you run into any actual
   issues with running Connections with PHP 7 let me know and I’ll address. As I
   mentioned, all development is on PHP 7.0.12 and there are no issues that I am
   aware of. The notices generated by the other “PHP Compatibility Checker plugin
   are explained in my previous reply and are not issues.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘php7 errors with this plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/connections_2b7e99.svg)
 * [Connections Business Directory](https://wordpress.org/plugins/connections/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/connections/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/connections/)
 * [Active Topics](https://wordpress.org/support/plugin/connections/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/connections/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/connections/reviews/)

## Tags

 * [errors](https://wordpress.org/support/topic-tag/errors/)
 * [PHP7](https://wordpress.org/support/topic-tag/php7/)
 * [warnings](https://wordpress.org/support/topic-tag/warnings/)

 * 3 replies
 * 2 participants
 * Last reply from: [Steven](https://wordpress.org/support/users/shazahm1hotmailcom/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/php7-errors-with-this-plugin/#post-8329980)
 * Status: resolved