Title: Fatal error when activating (/app/Admin/Modal.php)
Last modified: January 19, 2021

---

# Fatal error when activating (/app/Admin/Modal.php)

 *  Resolved [Andrews32](https://wordpress.org/support/users/andrews32/)
 * (@andrews32)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-app-admin-modal-php/)
 * Parse error: syntax error, unexpected ‘?’ in /home/u/user/site.com/public_html/
   wp-content/plugins/webp-converter-for-media/app/Admin/Modal.php on line 20
 * Plugin version: 2.2.0.
    WP version: 4.9.8.

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

 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-app-admin-modal-php/#post-13927010)
 * Hi [@andrews32](https://wordpress.org/support/users/andrews32/),
 * Thanks for your message.
 * What version of PHP are you using?
 *  Thread Starter [Andrews32](https://wordpress.org/support/users/andrews32/)
 * (@andrews32)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-app-admin-modal-php/#post-13927063)
 * Oh, so quickly! I`m very pleased.
 * Just udated WP to latest.
 * PHP was 5.6 until this minute (changed to 7.1, and the “Plugins” dashboard section
   became overloaded by PHP errors…
 * First I have to fix all the other plugins bugs “at least adding “@”).
 * But, your plugin shows some bus too (I cannot activate it right now – no “Activate”
   link, xoxo, just error messages):
 * Warning: count(): Parameter must be an array or an object that implements Countable
   in /wp-admin/includes/class-wp-list-table.php on line 546
 * Warning: Invalid argument supplied for foreach() in /wp-admin/includes/class-
   wp-list-table.php on line 562
 *  Thread Starter [Andrews32](https://wordpress.org/support/users/andrews32/)
 * (@andrews32)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-app-admin-modal-php/#post-13927131)
 * 1st fatal error solved (“workaround” method. “crutch” in my language):
 * public function showDeactivationModal(){
    //if(basename(($_SERVER[‘SCRIPT_FILENAME’]??”),‘.
   php’) !== ‘plugins’){return;}
 * $basename = basename( ($_SERVER[‘SCRIPT_FILENAME’]), ‘.php’ );
    if($basename !
   == ‘plugins’){return;} …
 * But the next bug appeared:
    Parse error: syntax error, unexpected ‘?’ in /wp-
   content/plugins/webp-converter-for-media/app/Loader/Passthru.php on line 73
 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-app-admin-modal-php/#post-13927139)
 * Please install PHP version 7.0 or higher. The plugin does not support PHP 5.6.
 *  Thread Starter [Andrews32](https://wordpress.org/support/users/andrews32/)
 * (@andrews32)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-app-admin-modal-php/#post-13927161)
 * Thank you!
 * To install PHP 7+, I have to fix too many other installed plugins bugs…
 * I`d better find another Webp convert plugin.
 * Closed ticket.
 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-app-admin-modal-php/#post-13927170)
 * Just update them. Plugins should have been supporting PHP 7.0 for a long time.
 *  [Metin](https://wordpress.org/support/users/granices/)
 * (@granices)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-app-admin-modal-php/#post-14210770)
 * gave me the same error. php 7
 *  [kylos90](https://wordpress.org/support/users/kylos90/)
 * (@kylos90)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-app-admin-modal-php/#post-14236409)
 * I have the same error.
    WP version: 5.7 Plugin version: 2.4.0 PHP version: 7.4.15

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

The topic ‘Fatal error when activating (/app/Admin/Modal.php)’ is closed to new 
replies.

 * ![](https://ps.w.org/webp-converter-for-media/assets/icon-256x256.png?rev=2636288)
 * [Converter for Media - Optimize images | Convert WebP & AVIF](https://wordpress.org/plugins/webp-converter-for-media/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/webp-converter-for-media/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/webp-converter-for-media/)
 * [Active Topics](https://wordpress.org/support/plugin/webp-converter-for-media/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/webp-converter-for-media/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/webp-converter-for-media/reviews/)

 * 8 replies
 * 4 participants
 * Last reply from: [kylos90](https://wordpress.org/support/users/kylos90/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-app-admin-modal-php/#post-14236409)
 * Status: resolved