• Resolved tonisuruba

    (@tonisuruba)


    I updated Dokan version to the latest 3.9.5.

    After the update, I’ve found the following:

    When I try to edit an existing product which I created before and I click the ‘Edit’ action button, the website crashes, and the log is shown below:

    [03-Jan-2024 09:56:00 UTC] PHP Fatal error: Uncaught TypeError: WeDevs\Dokan\Product\Hooks::set_product_status(): Argument #2 ($product_id) must be of type int, WP_Post given, called in /home/…./wp-includes/class-wp-hook.php on line 324 and defined in /home/…./wp-content/plugins/dokan-lite/includes/Product/Hooks.php:327
    Stack trace: 0 /home/…./wp-includes/class-wp-hook.php(324): WeDevs\Dokan\Product\Hooks->set_product_status() 1 /home/…./wp-includes/plugin.php(205): WP_Hook->apply_filters() 2 /home/…./wp-content/themes/astra-child/dokan/products/others.php(17): apply_filters() 3 /home/…./wp-content/plugins/dokan-lite/includes/functions.php(928): include(‘/home/…’) 4 /home/…./wp-content/plugins/dokan-lite/includes/Dashboard/Templates/Products.php(179): dokan_get_template_part() 5 /home/…./wp-includes/class-wp-hook.php(324): WeDevs\Dokan\Dashboard\Templates\Products::load_others_template() 6 /home/…./wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 7 /home/…./wp-includes/plugin.php(517): WP_Hook->do_action() 8 /home/…./wp-content/themes/astra-child/dokan/products/edit-product-single.php(472): do_action() 9 /home/…./wp-content/plugins/dokan-lite/includes/functions.php(928): include(‘/home/…’) 10 /home/…./wp-content/plugins/dokan-lite/includes/Dashboard/Templates/Products.php(208): dokan_get_template_part() 11 /home/…./wp-includes/class-wp-hook.php(324): WeDevs\Dokan\Dashboard\Templates\Products->load_product_edit_template() 12 /home/…./wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 13 /home/…./wp-includes/plugin.php(517): WP_Hook->do_action() 14 /home/…./wp-content/plugins/dokan-lite/templates/products/products.php(9): do_action() 15 /home/…./wp-content/plugins/dokan-lite/includes/functions.php(928): include(‘/home/…’) 16 /home/…./wp-content/plugins/dokan-lite/includes/Shortcodes/Dashboard.php(39): dokan_get_template_part() 17 /home/…./wp-includes/shortcodes.php(433): WeDevs\Dokan\Shortcodes\Dashboard->render_shortcode() 18 [internal function]: do_shortcode_tag()

    I’m reporting this bug so you can fix it asap.

    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @tonisuruba,

    I can see you are using a child theme (Astra child). Could you please switch to a default theme like TwentyTwenty and see if the issue persists as it seems like a conflict to me?

    Thanks!

    Plugin Support Yeasin Arafat

    (@yeasinarafathridoy)

    Hi?@tonisuruba,

    Since we haven’t got any further reply from you, so I mark this topic as resolved. If you’ve any further queries, feel free to create a new thread.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Edit Product Provoking Fatal Error’ is closed to new replies.