• Resolved kaprikorn

    (@kaprikorn)


    Hi Shea,

    I am currently building a multivendor website with Dokan. Upon desactivating the Dokan plugin for debugging, my website goes into a Fatal Error and I get the following error message:

    Fatal error: Uncaught Error: Class 'Dokan_Seller_Setup_Wizard' not found in /homepages/40/d847796333/htdocs/clickandbuilds/Testing373122/wp-content/plugins/code-snippets/php/snippet-ops.php(469) : eval()'d code:1 Stack trace: #0 /homepages/40/d847796333/htdocs/clickandbuilds/Testing373122/wp-content/plugins/code-snippets/php/snippet-ops.php(469): eval() #1 /homepages/40/d847796333/htdocs/clickandbuilds/Testing373122/wp-content/plugins/code-snippets/php/snippet-ops.php(557): execute_snippet('class Dokan_Set...', 27) #2 /homepages/40/d847796333/htdocs/clickandbuilds/Testing373122/wp-includes/class-wp-hook.php(303): execute_active_snippets('') #3 /homepages/40/d847796333/htdocs/clickandbuilds/Testing373122/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #4 /homepages/40/d847796333/htdocs/clickandbuilds/Testing373122/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #5 /homepages/40/d847796333/htdocs/clickandbuilds/Testing373122/wp-settings.php(441): do_action('plugins_loaded') #6 /homepages/40/d8 in /homepages/40/d847796333/htdocs/clickandbuilds/Testing373122/wp-content/plugins/code-snippets/php/snippet-ops.php(469) : eval()'d code on line 1.

    The Dokan Seller Setup Wizard is disabled. How to fix this? Help is very much appreciated. Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Hi @kaprikorn,

    You’re receiving this error because one of your snippets is relying on a class provided by the Dokan plugin in order to run. The snippet should be updated to use an is_class check in order to prevent this error.

    Thread Starter kaprikorn

    (@kaprikorn)

    Hi Shea,

    Thank you for your reply. I understand what you are saying, but my knowledge of PHP does not allow me to fix such a problem on my own. May I submit you some of the snippets that I added for Dokan so you could see where the issue is actually coming from?

    In my PHP error logs, I get this error over and over again:

    Undefined variable $seller_id in /home/aylmerwe/nextdoorlocalmarket.ca/wp-content/plugins/code-snippets/php/snippet-ops.php(469) : eval()'d code on line 24
    Undefined variable $seller_id in /home/aylmerwe/nextdoorlocalmarket.ca/wp-content/plugins/code-snippets/php/snippet-ops.php(469) : eval()'d code on line 40
    Undefined variable $sellers in /home/aylmerwe/nextdoorlocalmarket.ca/wp-content/plugins/code-snippets/php/snippet-ops.php(469) : eval()'d code on line 1
    PHP Warning:  Trying to access array offset on value of type null in /home/aylmerwe/nextdoorlocalmarket.ca/wp-content/plugins/code-snippets/php/snippet-ops.php(469) : eval()'d code on line 1
    PHP Warning:  foreach() argument must be of type array|object, null given in /home/aylmerwe/nextdoorlocalmarket.ca/wp-content/plugins/code-snippets/php/snippet-ops.php(469) : eval()'d code on line 1

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error – snippet-ops.php file – Dokan’ is closed to new replies.