Title: PHP8 Error
Last modified: December 11, 2020

---

# PHP8 Error

 *  Resolved [dominicmarcelino](https://wordpress.org/support/users/dominicmarcelino/)
 * (@dominicmarcelino)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/php8-error/)
 * On PHP 8.0.0 (Fast CGI) the installer is running into an error. Stacktrace below.
   On PHP 7.4 everything is running fine
 *     ```
       [PHP ERR][FATAL] MSG:Uncaught TypeError: decoct(): Argument #1 ($num) must be of type int, string given in [...domain...]/installer.php:607
       Stack trace:
       #0 /[...domain...]/installer.php(607): decoct('u+rwx')
       #1 [...domain...]/installer.php(583): DUPX_Bootstrap >setPermsOnItem('/var/www/vhosts...', 'u+rwx')
       #2 [...domain...]/installer.php(566): DUPX_Bootstrap->setPerms('/var/www/vhosts...', 'u+rwx', false)
       #3 [...domain...]/installer.php(497): DUPX_Bootstrap->fixInstallerPerms('https://kloster...')
       #4 [...domain...]/installer.php(1608): DUPX_Bootstrap->run()
       #5 {main}
         thrown [CODE:1|FILE:[...domain...]/installer.php|LINE:607]
       ```
   

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

 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/php8-error/#post-13778326)
 * Hey [@dominicmarcelino](https://wordpress.org/support/users/dominicmarcelino/),
 * Thanks for the update! We’ll take a look at this and get a patch out soon.
 * Cheers~
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/php8-error/#post-13788575)
 * Hey [@dominicmarcelino](https://wordpress.org/support/users/dominicmarcelino/),
 * We have a test candidate for PHP 8 ready here:
 * [https://downloads.wordpress.org/plugin/duplicator.zip](https://downloads.wordpress.org/plugin/duplicator.zip)
 * It should read 1.3.40.1
 * Let me know if this works for you~
 * Cory
 *  [patelrajiv](https://wordpress.org/support/users/patelrajiv/)
 * (@patelrajiv)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/php8-error/#post-13919327)
 * Hey [@corylamleorg](https://wordpress.org/support/users/corylamleorg/),
 * The patched worked perfect thank you for that, but I have some older website 
   with the older duplicator version backup, how will I be able to restore those
   in PHP 8.0.1 or do I need to install then in older PHP 7.4 update the duplicator
   plugin then redo all my site with the new patched version?
 * Please advise and thank you.
 * Raj
    -  This reply was modified 5 years, 4 months ago by [patelrajiv](https://wordpress.org/support/users/patelrajiv/).
      Reason: Add email notify
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/php8-error/#post-13925166)
 * Hey [@patelrajiv](https://wordpress.org/support/users/patelrajiv/),
 * For any Duplicator package before 1.3.40.1 we recommend installing it on PHP 
   versions before 8.0. If you need to deploy to PHP 8.0 we recommend using the 
   1.3.40.1 version or better.
 * Hope that helps~
 *  [binmadie](https://wordpress.org/support/users/binmadie/)
 * (@binmadie)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/php8-error/#post-13942090)
 * for the lazy one,
    open installer.php go to **private function setPermsOnItem(
   $path, $perms)** replace the entire content inside {}
 * if (($ result = self :: chmod ($ path, $ perms)) === false) {
    self :: log (“
   ERROR: Couldn’t set permissions of $ path <br/>”); } else { self :: log (“Set
   permissions of $ path <br/>”); } return $ result;
 * /////////////// looks like this ////////////////
 *  private function setPermsOnItem($path, $perms)
    { if (($result = self::chmod(
   $path, $perms)) === false) { self::log(“ERROR: Couldn’t set permissions of $path
   <br/>”); } else { self::log(“Set permissions of $path<br/>”); } return $result;}
 * //// i got it from duplicator\installer\installer.tpl ////
    -  This reply was modified 5 years, 4 months ago by [binmadie](https://wordpress.org/support/users/binmadie/).
      Reason: update code

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

The topic ‘PHP8 Error’ is closed to new replies.

 * ![](https://ps.w.org/duplicator/assets/icon-256x256.png?rev=2906985)
 * [Duplicator - Backups & Migration Plugin - Cloud Backups, Scheduled Backups, & More](https://wordpress.org/plugins/duplicator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duplicator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duplicator/)
 * [Active Topics](https://wordpress.org/support/plugin/duplicator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duplicator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duplicator/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [binmadie](https://wordpress.org/support/users/binmadie/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/php8-error/#post-13942090)
 * Status: resolved