Title: error after PHP upgrade
Last modified: November 15, 2019

---

# error after PHP upgrade

 *  [zuiver](https://wordpress.org/support/users/zuiver/)
 * (@zuiver)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-after-php-upgrade/)
 * All plugins and the Imax are updated. When i change the PHP to 7.2 (now 5!) i
   recieve this error:
 * Warning: Parameter 1 to wp_default_scripts() expected to be a reference, value
   given in C:\domains\aphrodithe.nl\wwwroot\wp-includes\plugin.php on line 571
 * Warning: Parameter 1 to wp_default_styles() expected to be a reference, value
   given in C:\domains\aphrodithe.nl\wwwroot\wp-includes\plugin.php on line 571
 * Fatal error: Uncaught Error: Call to undefined function wp_add_inline_script()
   in C:\domains\aphrodithe.nl\wwwroot\wp-content\themes\i-max\inc\kirki\modules\
   webfonts\class-kirki-modules-webfonts-async.php:120 Stack trace: #0 C:\domains\
   aphrodithe.nl\wwwroot\wp-includes\plugin.php(496): Kirki_Modules_Webfonts_Async-
   >webfont_loader(”) #1 C:\domains\aphrodithe.nl\wwwroot\wp-includes\general-template.
   php(2206): do_action(‘wp_head’) #2 C:\domains\aphrodithe.nl\wwwroot\wp-content\
   themes\i-max\header.php(61): wp_head() #3 C:\domains\aphrodithe.nl\wwwroot\wp-
   includes\template.php(501): require_once(‘C:\\domains\\aphr…’) #4 C:\domains\
   aphrodithe.nl\wwwroot\wp-includes\template.php(477): load_template(‘C:\\domains\\
   aphr…’, true) #5 C:\domains\aphrodithe.nl\wwwroot\wp-includes\general-template.
   php(45): locate_template(Array, true) #6 C:\domains\aphrodithe.nl\wwwroot\wp-
   content\themes\i-max\page.php(13): get_header() #7 C:\domains\aphrodithe.nl\wwwroot\
   wp-includes\template-loader.php(74): include(‘C:\\domains\\aphr…’) #8 C:\do in
   C:\domains\aphrodithe.nl\wwwroot\wp-content\themes\i-max\inc\kirki\modules\webfonts\
   class-kirki-modules-webfonts-async.php on line 120
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-after-php-upgrade%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘error after PHP upgrade’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/i-max/1.6.2/screenshot.png)
 * i-max
 * [Support Threads](https://wordpress.org/support/theme/i-max/)
 * [Active Topics](https://wordpress.org/support/theme/i-max/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/i-max/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/i-max/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [zuiver](https://wordpress.org/support/users/zuiver/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/error-after-php-upgrade/)
 * Status: not resolved