• Resolved jambor

    (@jambor)


    Hi. I can’t activate the plugin due to this error:
    Fatal error: Uncaught Error: Call to a member function get_earning_by_order() on null in /home/project2/domains/123project.ir/public_html/wp-content/plugins/dokan-lite/includes/order-functions.php:674 Stack trace: #0 /home/project2/domains/123project.ir/public_html/wp-content/plugins/dokan-lite/includes/upgrades/dokan-upgrade-2.7.3.php(26): dokan_get_admin_commission_by(Object(Automattic\WooCommerce\Admin\Overrides\Order), ‘admin’) #1 /home/project2/domains/123project.ir/public_html/wp-content/plugins/dokan-lite/includes/upgrades/dokan-upgrade-2.7.3.php(79): dokan_update_order_meta_273() #2 /home/project2/domains/123project.ir/public_html/wp-content/plugins/dokan-lite/classes/upgrade.php(139): include(‘/home/project2/…’) #3 /home/project2/domains/123project.ir/public_html/wp-content/plugins/dokan-lite/classes/installer.php(24): Dokan_Upgrade->perform_updates() #4 /home/project2/domains/123project.ir/public_html/wp-content/plugins/dokan-lite/dokan.php(218): Dokan_Installer->do_install() #5 /home/project2/domains/123proje in /home/project2/domains/123project.ir/public_html/wp-content/plugins/dokan-lite/includes/order-functions.php on line 674

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 19 total)
  • Hello @jambor,

    It seems like you are updating from a very older version of Dokan to the latest. Please open your wp-content/plugins/dokan-lite/includes/upgrade/ and open dokan-upgrade-2.7.3.php file.

    Now, just comment out (\\ insert before the line) the line number 79 and the code is dokan_update_order_meta_273() and then activate Dokan.

    I hope this will work fine 🙂

    Thread Starter jambor

    (@jambor)

    Thanks for the quick response. there is no such folder. in fact there is no folder named DOKAN.
    I have this problem with my other site assignment.one

    Hello @jambor ,

    If you do not have any active installation in your server and you do not have the mentioned folder then please follow these steps:

    1. Download Dokan Lite from WordPress.org
    2. Open the ZIP file and make the necessary changes suggested earlier
    3. Upload the modified plugin and try again

    If the problem continues, share your site details with us to – support@wedevs.com. Our technical team will check the issue for you.

    Thank you.

    Thread Starter jambor

    (@jambor)

    I downloaded Dokan lite again. I navigated to the folder Nazmul Hassan said and found the file. I think I don’t understand him. what should I do exactly?
    Shoud I put \\ insert before the line before the code on the line 79 (dokan_update_order_meta_273();)?
    cause I did that and have this message:
    Parse error: syntax error, unexpected ‘\’ (T_NS_SEPARATOR), expecting identifier (T_STRING) in /home/project2/domains/123project.ir/public_html/wp-content/plugins/dokan-lite/includes/upgrades/dokan-upgrade-2.7.3.php on line 79

    the code on line 79 and 80 looks like this:
    \\ insert before the line
    dokan_update_order_meta_273();

    Hello,

    You have to comment out the line like as- //dokan_update_order_meta_273(); I am sorry, I used the wrong // on my previous reply.

    Here is a screenshot: https://snipboard.io/HCUps8.jpg

    Thread Starter jambor

    (@jambor)

    thanks bro
    problem solved!

    Hello!

    I have the same issue. But I don’t find the file in this folder. it’s totally different. How can I resolve?

    This is the detailed error

    Um erro do tipo E_ERROR foi causado na linha 4 do arquivo /home/paulosassaki/public_html/wp-content/themes/paulosassaki/inc/template/dokan/dokan.php. Mensagem de erro: Uncaught Error: Call to undefined method Dokan_Template_Dashboard::init() in /home/paulosassaki/public_html/wp-content/themes/paulosassaki/inc/template/dokan/dokan.php:4
    Stack trace:
    #0 /home/paulosassaki/public_html/wp-includes/class-wp-hook.php(288): {closure}(”)
    #1 /home/paulosassaki/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
    #2 /home/paulosassaki/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #3 /home/paulosassaki/public_html/wp-settings.php(523): do_action(‘init’)
    #4 /home/paulosassaki/public_html/wp-config.php(112): require_once(‘/home/paulosass…’)
    #5 /home/paulosassaki/public_html/wp-load.php(37): require_once(‘/home/paulosass…’)
    #6 /home/paulosassaki/public_html/wp-admin/admin.php(34): require_once(‘/home/paulosass…’)
    #7 /home/paulosassaki/public_html/wp-admin/plugins.php(10): require_once(‘/home/paulosass…’)
    #8 {main}
    thrown

    Hello @ottstein,

    The most possible reason behind the issue you are having is the custom changes you have included in the theme. To be sure please try a default theme ( without custom code) and check the changes.

    I am really sorry for the trouble you are having. Actually, Dokan version 3.0.0 is released with a refactored coding structure, this new version will make your experience with Dokan smoother than before. Unfortunately, we have deprecated some class on the code. So any changes using the class may affect the site.

    Let us know the update.

    aviroop2020

    (@aviroop2020)

    Trait ‘WeDevs\Dokan\Traits\ChainableContainer’ not found in /home3/demenkzt/poogiestore.com/wp-content/plugins/dokan-pro/includes/Module.php on line 9

    Tengo el mismo problema: Fatal error: Trait ‘WeDevs\Dokan\Traits\ChainableContainer’ not found in /home/yocompr1/public_html/wp-content/plugins/dokan-pro/includes/Module.php on line 9

    Fatal error: Trait ‘WeDevs\Dokan\Traits\ChainableContainer’ not found in /var/www/wptbox/wp-content/plugins/dokan-pro/includes/Module.php on line 10

    Hello,

    Please maintain the queue before activating the plugin.

    1. First, Install and activate WooCommerce 4.1.0 then
    2. Install and activate Dokan-lite v3.0.4
    3. After installing Dokan-lite, you have to install the Dokan Pro v3.0.2

    If you guys still have issue please contact through our support tickets.

    Thank you.

    recieved this fatal error after trying to install dokan : Cannot redeclare dokan_get_seller_status_count() (previously declared in /homepages/14/d828799377/htdocs/clickandbuilds/VipesList/wp-content/plugins/dokan-lite/includes/functions.php:3656) in /homepages/14/d828799377/htdocs/clickandbuilds/VipesList/wp-content/plugins/dokan-pro/includes/functions.php on line 388

    recieved this message after trying to install Dokan pro business. now site broke

    : Cannot redeclare dokan_get_seller_status_count() (previously declared in /homepages/14/d828799377/htdocs/clickandbuilds/VipesList/wp-content/plugins/dokan-lite/includes/functions.php:3656) in /homepages/14/d828799377/htdocs/clickandbuilds/VipesList/wp-content/plugins/dokan-pro/includes/functions.php on line 388

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Dokan lite fatal error’ is closed to new replies.