Title: PHP7 Compatibility
Last modified: October 17, 2016

---

# PHP7 Compatibility

 *  [prowo24](https://wordpress.org/support/users/prowo24/)
 * (@prowo24)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php7-compatibility-43/)
 * Hello,
 * the plugin “PHP7 Compatibility checker” displays the following issue:
 *     ```
       FILE: /is/htdocs/wp11082020_GHQ53PBT44/www/portal/wp-content/plugins/file-away/lib/cls/class.fileaway_csv.php
       -------------------------------------------------------------------------------------------------------------
       FOUND 1 ERROR AFFECTING 1 LINE
       -------------------------------------------------------------------------------------------------------------
        135 | ERROR | Use of deprecated PHP4 style class constructor is not supported since PHP 7
       -------------------------------------------------------------------------------------------------------------
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php7-compatibility-43/#post-8319466)
 * Simple modification.
 * Open up that file: `wp-content/plugins/file-away/lib/cls/class.fileaway_csv.php`
 * Go to line 135 and change this:
 * `function fileaway_csv ($input = null, $offset = null, $limit = null, $conditions
   = null) {`
 * to this:
 * `function __construct ($input = null, $offset = null, $limit = null, $conditions
   = null) {`
 * The only change in that line is from `fileaway_csv` to `__construct`. Note the
   two underscores before construct.

Viewing 1 replies (of 1 total)

The topic ‘PHP7 Compatibility’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/file-away_e3e2e1.svg)
 * [File Away](https://wordpress.org/plugins/file-away/)
 * [Support Threads](https://wordpress.org/support/plugin/file-away/)
 * [Active Topics](https://wordpress.org/support/plugin/file-away/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/file-away/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/file-away/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [thomstark](https://wordpress.org/support/users/thomstark/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/php7-compatibility-43/#post-8319466)
 * Status: not resolved