Fatal error/ Uncaught Error
-
Hello, first of all thank you for the free weather plugin! I was also able to install it and insert my OWM Premium key (Startup Pricing). Then after I created the first weather and inserted the shortcode into a static page, a critical error occurred. My website was then still accessible but on the page with the shortcode only the headline was displayed (everything under the heading was no longer displayed in the frontend). I then looked at the page with the shortcode with ‘WP_DEBUG’, true and the following was displayed:
Fatal error: Uncaught Error: Call to undefined function str_starts_with() in /var/www/vhosts/[domainname].com/httpdocs/wp-content/plugins/owm-weather/owmweather.php:2731 Stack trace: #0 /var/www/vhosts/[domainname].com/httpdocs/wp-includes/shortcodes.php(343): owmw_get_my_weather_id() #1 [internal function]: do_shortcode_tag() #2 /var/www/vhosts/[domainname].com/httpdocs/wp-includes/shortcodes.php(218): preg_replace_callback() #3 /var/www/vhosts/[domainname].com/httpdocs/wp-includes/class-wp-hook.php(287): do_shortcode() #4 /var/www/vhosts/[domainname].com/httpdocs/wp-includes/plugin.php(212): WP_Hook->apply_filters() #5 /var/www/vhosts/[domainname].com/httpdocs/wp-content/plugins/wordpress-seo/admin/links/class-link-watcher.php(144): apply_filters() #6 /var/www/vhosts/[domainname].com/httpdocs/wp-content/plugins/wordpress-seo/admin/links/class-link-watcher.php(86): WPSEO_Link_Watcher->process() #7 /var/www/vhosts/[domainname].com/httpdocs/wp-includes/class-wp-hook.php(289): WPSEO_Link_Watc in /var/www/vhosts/[domainname].com/httpdocs/wp-content/plugins/owm-weather/owmweather.php on line 2731
There has been a critical error on this website. Please check your site admin email inbox for instructions.
plugins/wordpress-seo/ -> This is the well-known Yoast SEO plugin. I deactivated this then to test again. But the page with the active shortcode was still not working (only the headline was still displayed).
I then looked at the page with the shortcode again with ‘WP_DEBUG’, true and the following was displayed (very similar to the previous one):
Fatal error: Uncaught Error: Call to undefined function str_starts_with() in /var/www/vhosts/[domainname].com/httpdocs/wp-content/plugins/owm-weather/owmweather.php:2731 Stack trace: #0 /var/www/vhosts/[domainname].com/httpdocs/wp-includes/shortcodes.php(343): owmw_get_my_weather_id() #1 [internal function]: do_shortcode_tag() #2 /var/www/vhosts/[domainname].com/httpdocs/wp-includes/shortcodes.php(218): preg_replace_callback() #3 /var/www/vhosts/[domainname].com/httpdocs/wp-includes/class-wp-hook.php(287): do_shortcode() #4 /var/www/vhosts/[domainname].com/httpdocs/wp-includes/plugin.php(212): WP_Hook->apply_filters() #5 /var/www/vhosts/[domainname].com/httpdocs/wp-includes/post-template.php(253): apply_filters() #6 /var/www/vhosts/[domainname].com/httpdocs/wp-content/themes/genesis/lib/structure/post.php(486): the_content() #7 /var/www/vhosts/[domainname].com/httpdocs/wp-includes/class-wp-hook.php(287): genesis_do_post_content() #8 /var/www/vhosts/[domainname].com/httpdocs/wp-includes/ in /var/www/vhosts/[domainname].com/httpdocs/wp-content/plugins/owm-weather/owmweather.php on line 2731
I use WordPress 5.6.11 (Theme: https://www.studiopress.com/themes/genesis/ Version: 3.3.3.), PHP 7.4.33 WordPress-Admin 256MB / PHP 128MB
Additional information:
“Check “Disable Bootstrap” if you already include Bootstrap in your theme.” -> I tried all possible settings always the same error (see above).Thank you in advance for your help!
- The topic ‘Fatal error/ Uncaught Error’ is closed to new replies.