Error Details ============= An error of type E_ERROR was caused in line 178 of the file /home/tuneplate/public_html/wp-content/plugins/sonaar-music-pro/admin/class-sonaar-music-pro-admin.php. Error message: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, string given in /home/tuneplate/public_html/wp-content/plugins/sonaar-music-pro/admin/class-sonaar-music-pro-admin.php:178 Stack trace: #0 /home/tuneplate/public_html/wp-content/plugins/sonaar-music-pro/admin/class-sonaar-music-pro-admin.php(190): get_total_track() #1 /home/tuneplate/public_html/wp-includes/class-wp-hook.php(292): Sonaar_Music_Pro_Admin->enqueue_scripts() #2 /home/tuneplate/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters() #3 /home/tuneplate/public_html/wp-includes/plugin.php(484): WP_Hook->do_action() #4 /home/tuneplate/public_html/wp-admin/admin-header.php(102): do_action() #5 /home/tuneplate/public_html/wp-admin/admin.php(239): require_once('...') #6 /home/tuneplate/public_html/wp-admin/edit.php(10): require_once('...') #7 {main} thrown
When I click to license the purchased plugin this problem comes up:
There has been a critical error on this website. Please check your site admin email inbox for instructions.
Learn more about troubleshooting WordPress.
can you please fix this? As I cannot use the plugin for now.
Thank You
here is the exact error detail:
Error Details
=============
An error of type E_ERROR was caused in line 178 of the file /home/tuneplate/public_html/wp-content/plugins/sonaar-music-pro/admin/class-sonaar-music-pro-admin.php. Error message: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, string given in /home/tuneplate/public_html/wp-content/plugins/sonaar-music-pro/admin/class-sonaar-music-pro-admin.php:178
Stack trace:
#0 /home/tuneplate/public_html/wp-content/plugins/sonaar-music-pro/admin/class-sonaar-music-pro-admin.php(190): get_total_track()
#1 /home/tuneplate/public_html/wp-includes/class-wp-hook.php(292): Sonaar_Music_Pro_Admin->enqueue_scripts()
#2 /home/tuneplate/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
#3 /home/tuneplate/public_html/wp-includes/plugin.php(484): WP_Hook->do_action()
#4 /home/tuneplate/public_html/wp-admin/admin-header.php(102): do_action()
#5 /home/tuneplate/public_html/wp-admin/admin.php(239): require_once('...')
#6 /home/tuneplate/public_html/wp-admin/edit.php(10): require_once('...')
#7 {main}
thrown
Hi,
Are you using php 7.x?
Make sure you don't use php 8 as half of the wordpress plugins are not compatible with php 8 yet.
Thanks,
Max from the Sonaar.io Crew