- This topic has 5 replies, 2 voices, and was last updated 5 years, 9 months ago by
rgarrison.
I have been using this forever and all of a sudden this week we are getting this error on all of the links on our site and it is actually crashing any page that had any of the shortcodes generated by the WPDM – Button Templates
Fatal error: Uncaught Error: Call to undefined method WPDM\Package::icon() in /var/www/vhosts/ingccm.org/httpdocs/wp-content/plugins/wpdm-button-templates/wpdm-button-templates.php:30 Stack trace: #0 /var/www/vhosts/ingccm.org/httpdocs/wp-includes/shortcodes.php(343): WPDM_Button_Templates->template(Array, ”, ‘wpdm_button_tem…’) #1 [internal function]: do_shortcode_tag(Array) #2 /var/www/vhosts/ingccm.org/httpdocs/wp-includes/shortcodes.php(218): preg_replace_callback(‘/\\[(\\[?)(wpdm_b…’, ‘do_shortcode_ta…’, ‘[wpdm_button_te…’) #3 /var/www/vhosts/ingccm.org/httpdocs/wp-content/plugins/so-widgets-bundle/widgets/editor/editor.php(105): do_shortcode(‘[wpdm_button_te…’) #4 /var/www/vhosts/ingccm.org/httpdocs/wp-content/plugins/so-widgets-bundle/base/siteorigin-widget.class.php(183): SiteOrigin_Widget_Editor_Widget->get_template_variables(Array, Array) #5 /var/www/vhosts/ingccm.org/httpdocs/wp-content/plugins/siteorigin-panels/inc/renderer.php(550): SiteOrigin_Widget->widget(Array, Array) #6 /var/www/vhosts/ingccm. in /var/www/vhosts/ingccm.org/httpdocs/wp-content/plugins/wpdm-button-templates/wpdm-button-templates.php on line 30
There has been a critical error on your website.
Also now when you try to use the button to insert a a new download you click other shortcodes and go down to button templates, the 1st drop down that usually says template not says Bootstrap Default then under that there are several bootstrap options with different names, then at the bottom is the normal list.
Line 30 it is calling is: $icon = \WPDM\Package::icon($id);
If I comment that out it doesn’t crash the site but the buttons don’t work correctly of course.
The shows this error on the page: Notice: Undefined variable: icon in /var/www/vhosts/ingccm.org/httpdocs/wp-content/plugins/wpdm-button-templates/wpdm-button-templates.php on line 36
I had a copy of Version 1.2.1 and reinstalled it an now everything is working normally. So it is an issue with version 1.3.0
OK, glad to hear that, your problem has been solved
The topic "Fatal error: Uncaught Error: Call to undefined method WPDM\Package" is closed to new replies.