Title: Plugin incompatible with PHP version 7.2 !!
Last modified: November 10, 2019

---

# Plugin incompatible with PHP version 7.2 !!

 *  [droid](https://wordpress.org/support/users/android1pro/)
 * (@android1pro)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-version-7-2/)
 * Hello,
 * Awesome good working plugin,so thank you for your good diligent continued effort
 * However unfortunately since updating site to php version 7.2 we keep getting 
   same error showing up in the error log,all of sudden,which has never happened
   before update of php to 7.2
 * Here is the exact the exact error text:
 * Deprecated: idn_to_utf8(): INTL_IDNA_VARIANT_2003 is deprecated in
    wp-content/
   plugins/amp/includes/class-amp-http.php on line 233
 * Please update the plugin
 * Thank you for your confirmation as soon as accurately correctly completed today.
 * Keep up the good work!

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

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-version-7-2/#post-12115716)
 * [@android1pro](https://wordpress.org/support/users/android1pro/) What version
   of the plugin are you using?
 * Also, the deprecation warning may indicate your server has an old version of 
   the ICU library which needs to be updated. See [https://github.com/ampproject/amp-wp/pull/1440](https://github.com/ampproject/amp-wp/pull/1440)
 *  Thread Starter [droid](https://wordpress.org/support/users/android1pro/)
 * (@android1pro)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-version-7-2/#post-12116244)
 * Version 1.4.0
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-version-7-2/#post-12116387)
 * Then I believe the issue is you need to update the ICU lib that the `intl` PHP
   extension is using.
 * I am running PHP 7.2 without issue, and we’re running unit tests through PHP 
   7.2 as well on Travis CI.
 *  Thread Starter [droid](https://wordpress.org/support/users/android1pro/)
 * (@android1pro)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-version-7-2/#post-12116962)
 * May be not as again it could be AMP plugin issue,
    since Google console indicate
   many amp specific errors here are some of those errors texts:
 * 1) Only amp-boilerplate and amp-custom ‘style’ tags are allowed, and only in 
   the document head.
 * 2) Tag found outside the document head which is only allowed as a direct child
   of the document head.
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-version-7-2/#post-12117278)
 * Please share the URL to the AMP page having the issue.
 *  Thread Starter [droid](https://wordpress.org/support/users/android1pro/)
 * (@android1pro)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-version-7-2/#post-12117734)
 * Unfortunately it is not practical to share over 100 URL with those same errors,
   not to mention security issues that are obvious when sharing on public forum 
   here.
    However will be more than happy to send to secure email to help you out
   because many has those errors as communicated by colleagues that do
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-version-7-2/#post-12118598)
 * Only sharing one URL is sufficient. When starting this support topic there should
   have been the URL for your site supplied. Other support topics link to the sites
   relate to. So it’s not a security issue.
 *  Thread Starter [droid](https://wordpress.org/support/users/android1pro/)
 * (@android1pro)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-version-7-2/#post-12120907)
 * Per your request,
    In Google console under the the title error “AMP Only amp-
   boilerplate and amp-custom ‘style’ tags are allowed, and only in the document
   head.” here are some examples given : [https://www.android1pro.com/pl/how-to-install-and-use-sony-flashtool-with-xperia-devices/amp/](https://www.android1pro.com/pl/how-to-install-and-use-sony-flashtool-with-xperia-devices/amp/)
 * [https://www.android1pro.com/sw/download-here-subway-surfers-moscow-hack/amp/](https://www.android1pro.com/sw/download-here-subway-surfers-moscow-hack/amp/)
 * [https://www.android1pro.com/pl/how-to-root-lg-g-pad-8-3-and-install-custom-recovery/amp/](https://www.android1pro.com/pl/how-to-root-lg-g-pad-8-3-and-install-custom-recovery/amp/)
 * [https://www.android1pro.com/sw/top-10-android-antivirus/amp/](https://www.android1pro.com/sw/top-10-android-antivirus/amp/)
 * 2) Under error titled “AMP Custom JavaScript is not allowed.”here are a few examples:
   
   [https://www.android1pro.com/pl/how-to-install-and-use-sony-flashtool-with-xperia-devices/amp/](https://www.android1pro.com/pl/how-to-install-and-use-sony-flashtool-with-xperia-devices/amp/)
   [https://www.android1pro.com/iw/how-to-install-android-4-3-on-a-samsung-galaxy-s4-mini-gt-i9190-with-cm-10-2-custom-rom/amp/](https://www.android1pro.com/iw/how-to-install-android-4-3-on-a-samsung-galaxy-s4-mini-gt-i9190-with-cm-10-2-custom-rom/amp/)
 * Can you manage to accurately correctly fix all of those ampl specific errors 
   generated by the amp plugin?
 *  Thread Starter [droid](https://wordpress.org/support/users/android1pro/)
 * (@android1pro)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-version-7-2/#post-12120912)
 * Follow up:
 * 3)In Google console under the the title error
    “AMP URL marked ‘noindex’” here
   are some examples given :
 *  [https://www.android1pro.com/zh-TW/list-common-google-play-store-errors-fix/amp/](https://www.android1pro.com/zh-TW/list-common-google-play-store-errors-fix/amp/)
 * [https://www.android1pro.com/yo/how-to-unroot-galaxy-s4/amp/](https://www.android1pro.com/yo/how-to-unroot-galaxy-s4/amp/)
 * [https://www.android1pro.com/zh-CN/how-to-install-cwm-recovery-and-root-galaxy-note-2/amp/](https://www.android1pro.com/zh-CN/how-to-install-cwm-recovery-and-root-galaxy-note-2/amp/)
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-version-7-2/#post-12123678)
 * >  1) In Google console under the the title error
   >  “AMP Only amp-boilerplate 
   > and amp-custom ‘style’ tags are allowed, and only in the document head.” …
   > 2) Under error titled “AMP Custom JavaScript is not allowed.”
   >  …
 * I just pasted all of the URLs into [https://validator.amp.dev/](https://validator.amp.dev/)
   and there were no validation errors reported for any of them. So apparently the
   issue is no longer occurring.
 * > 3)In Google console under the the title error
   >  “AMP URL marked ‘noindex’”
 * I don’t see any `noindex` on those URLs.
 *  Thread Starter [droid](https://wordpress.org/support/users/android1pro/)
 * (@android1pro)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-version-7-2/#post-12126564)
 * Thank you for the prompt good precise support!
 * 2 vital follow up:
 * 1) Are you diagnosing from this that Google Console is not accurate in its reporting
   regarding above 3 errors and therefore at fault here?
    If not then what is your
   best accurate solution in this case?
 * 2) The error log keep reporting the following error still today
    “Deprecated:
   idn_to_utf8(): INTL_IDNA_VARIANT_2003 is deprecated in /home/wp-content/plugins/
   amp/includes/class-amp-http.php on line 233”
 * Hosting assured me yesterday that the ICU lib that the intl PHP extension is 
   using, is already updated.so what is the best solution in this case?
 * Can you manage to accurately correctly fix the above 2 vital issues?
 * Again,
 * Thank you for your confirmation as soon as accurately correctly completed today.
 * Keep up the good work!
 *  Plugin Contributor [Alain Schlesser](https://wordpress.org/support/users/schlessera/)
 * (@schlessera)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-version-7-2/#post-12136209)
 * Regarding 1) you’d need to find out whether that was an error that was diagnosed
   in the past and is still shown although already resolved, or whether it is still
   an active issue.
 * Regarding 2) I just verified the code. If you’re using the latest version of 
   the AMP plugin, then it should only show the above warning if the ICU within 
   the ‘intl’ extension is not up-to-date.
 * You can verify the version of the ICU yourself in the output that you get from`
   phpinfo()`. For example, if you have access to the server’s shell, you can use
   the following to see the version:
 * `php -r "phpinfo();" | grep ICU`
 * On my system right now, this is what I get:
 *     ```
       ICU version => 64.2
       ICU Data version => 64.2
       ICU TZData version => 2019a
       ICU Unicode version => 12.1
       ```
   

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

The topic ‘Plugin incompatible with PHP version 7.2 !!’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [Alain Schlesser](https://wordpress.org/support/users/schlessera/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-version-7-2/#post-12136209)
 * Status: not resolved