[ad_1]
Hi,
I have a problem when I am switching to PHP 8.x only my download site is broken with PHP 7.4 it works.
In the debug log I found this error:
[27-Sep-2022 07:02:44 UTC] PHP Fatal error: Uncaught DivisionByZeroError: Division by zero in /PATH/TO/MY/SITE/wp-content/plugins/download-manager/src/Package/Shortcodes.php:130
Stack trace:
#0 /PATH/TO/MY/SITE/wp-content/plugins/download-manager/src/Category/Shortcodes.php(36): WPDM\Package\Shortcodes->packages()
#1 /PATH/TO/MY/SITE/wp-includes/shortcodes.php(356): WPDM\Category\Shortcodes->listPackages()
#2 [internal function]: do_shortcode_tag()
#3 /PATH/TO/MY/SITE/wp-includes/shortcodes.php(228): preg_replace_callback()
#4 /PATH/TO/MY/SITE/wp-includes/class-wp-hook.php(309): do_shortcode()
#5 /PATH/TO/MY/SITE/wp-includes/plugin.php(191): WP_Hook->apply_filters()
#6 /PATH/TO/MY/SITE/wp-content/plugins/elementor/includes/base/widget-base.php(423): apply_filters()
#7 /PATH/TO/MY/SITE/wp-content/plugins/elementor/includes/base/widget-base.php(447): Elementor\Widget_Base->parse_text_editor()
#8 /PATH/TO/MY/SITE/wp-content/plugins/elementor/includes/widgets/tabs.php(516): Elementor\Widget_Base->print_text_editor()
#9 /PATH/TO/MY/SITE/wp-content/plugins/elementor/includes/base/controls-stack.php(2221): Elementor\Widget_Tabs->render()
#10 /PATH/TO/MY/SITE/wp-content/plugins/elementor/includes/base/widget-base.php(609): Elementor\Controls_Stack->render_by_mode()
#11 /PATH/TO/MY/SITE/wp-content/plugins/elementor/includes/base/widget-base.php(750): Elementor\Widget_Base->render_content()
#12 /PATH/TO/MY/SITE/wp-content/plugins/elementor/includes/base/element-base.php(447): Elementor\Widget_Base->print_content()
#13 /PATH/TO/MY/SITE/wp-content/plugins/elementor/includes/base/element-base.php(767): Elementor\Element_Base->print_element()
#14 /PATH/TO/MY/SITE/wp-content/plugins/elementor/includes/base/element-base.php(447): Elementor\Element_Base->print_content()
#15 /PATH/TO/MY/SITE/wp-content/plugins/elementor/includes/base/element-base.php(767): Elementor\Element_Base->print_element()
#16 /PATH/TO/MY/SITE/wp-content/plugins/elementor/includes/base/element-base.php(447): Elementor\Element_Base->print_content()
#17 /PATH/TO/MY/SITE/wp-content/plugins/elementor/core/base/document.php(1565): Elementor\Element_Base->print_element()
#18 /PATH/TO/MY/SITE/wp-content/plugins/elementor/core/base/document.php(1016): Elementor\Core\Base\Document->print_elements()
#19 /PATH/TO/MY/SITE/wp-content/plugins/elementor/includes/frontend.php(1092): Elementor\Core\Base\Document->print_elements_with_wrapper()
#20 /PATH/TO/MY/SITE/wp-content/plugins/elementor/includes/frontend.php(1006): Elementor\Frontend->get_builder_content()
Can you please me with this issue?
Thanks
