Title: cannot upgrade PHP version
Last modified: October 13, 2018

---

# cannot upgrade PHP version

 *  Resolved [ionadmin](https://wordpress.org/support/users/ionadmin/)
 * (@ionadmin)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/cannot-upgrade-php-version/)
 * I get an error message when trying to update my PHP version:
 * FILE: /home/daisypet/staging/4/wp-content/plugins/advanced-gutenberg/incl/advanced-
   gutenberg-main.php
    ————————————————————————————————————————- 224 | ERROR | ‘
   clone’ is a reserved keyword introduced in PHP version 5.0 and cannot be invoked
   as a function (T_CLONE) ————————————————————————————————————————-
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcannot-upgrade-php-version%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [JoomUnited](https://wordpress.org/support/users/joomunited/)
 * (@joomunited)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/cannot-upgrade-php-version/#post-10780572)
 * Hi,
 * This error can be ignored, this function works for both php 5 and 7 versions.
   
   Indeed the clone function should be changed to a clone keyword to be strictly
   compatible to php 7 version. Just for information, what tool do you use to get
   this error?
 * In any cases this part of the code is removed in the next release.
    You should
   not have this error anymore.
 * Best regards

Viewing 1 replies (of 1 total)

The topic ‘cannot upgrade PHP version’ is closed to new replies.

 * ![](https://ps.w.org/advanced-gutenberg/assets/icon-256x256.png?rev=3393761)
 * [PublishPress Blocks - Block Controls, Block Visibility, Block Permissions](https://wordpress.org/plugins/advanced-gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-gutenberg/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [JoomUnited](https://wordpress.org/support/users/joomunited/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/cannot-upgrade-php-version/#post-10780572)
 * Status: resolved