Fatal error: Uncaught Error: Call to undefined method WPDM\Package

Viewing 6 posts - 1 through 6 (of 6 total)
#127883

rgarrison
Member

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.

#127884

rgarrison
Member

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.

#127885

rgarrison
Member

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

#127886

rgarrison
Member

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

#127948

Nayeem Riddhi
Moderator

OK, glad to hear that, your problem has been solved

#127950

rgarrison
Member

The issue isn’t solved as it still needs to be upgraded. I was hoping that posting the information would allow you to determine what in the new version is causing the issue.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Fatal error: Uncaught Error: Call to undefined method WPDM\Package’ is closed to new replies.