• Resolved cherrycoding

    (@cherrycoding)


    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

    • This topic was modified 2 years, 5 months ago by cherrycoding.
Viewing 2 replies - 1 through 2 (of 2 total)
  • I have also an issue with PHP 8.1. In PHP 7.4 My downloads work, if I upgrade to PHP 8.0 or 8.1, I get this error :
    Fatal error: Uncaught Error: Call to undefined function set_time_limit() in /home/clients/6917819e20c51527a5e7c6e473c49ca9/web/wp-content/plugins/download-monitor/src/DownloadHandler.php:632 Stack trace: #0 /home/clients/6917819e20c51527a5e7c6e473c49ca9/web/wp-content/plugins/download-monitor/src/DownloadHandler.php(493): DLM_Download_Handler->download_headers('/home/clients/6...', Object(DLM_Download), Object(DLM_Download_Version), false) #1 /home/clients/6917819e20c51527a5e7c6e473c49ca9/web/wp-content/plugins/download-monitor/src/DownloadHandler.php(299): DLM_Download_Handler->trigger(Object(DLM_Download)) #2 /home/clients/6917819e20c51527a5e7c6e473c49ca9/web/wp-includes/class-wp-hook.php(307): DLM_Download_Handler->handler(Object(WP)) #3 /home/clients/6917819e20c51527a5e7c6e473c49ca9/web/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #4 /home/clients/6917819e20c51527a5e7c6e473c49ca9/web/wp-includes/plugin.php(524): WP_Hook->do_action(Array) #5 /home/clients/6917819e20c51527a5e7c6e473c49ca9/web/wp-includes/class-wp.php(398): do_action_ref_array('parse_request', Array) #6 /home/clients/6917819e20c51527a5e7c6e473c49ca9/web/wp-includes/class-wp.php(770): WP->parse_request('') #7 /home/clients/6917819e20c51527a5e7c6e473c49ca9/web/wp-includes/functions.php(1330): WP->main('') #8 /home/clients/6917819e20c51527a5e7c6e473c49ca9/web/wp-blog-header.php(16): wp() #9 /home/clients/6917819e20c51527a5e7c6e473c49ca9/web/index.php(17): require('/home/clients/6...') #10 {main} thrown in /home/clients/6917819e20c51527a5e7c6e473c49ca9/web/wp-content/plugins/download-monitor/src/DownloadHandler.php on line 632

    Plugin Contributor Shafaet Alam

    (@shafayat-alam)

    @trouille2 ,
    it seems like different plugin, still set_time_limit function is also available, but probably it is disabled by your server host, please contact server support.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error with PHP8’ is closed to new replies.