• Resolved gscottthoms

    (@gscottthoms)


    When I try to register a vendor with the Dokan plugin, I’m getting a critical site error that references the Siteground optimizer and goes away when the plugin is disabled. This is the error:

    Fatal error: Uncaught Error: Call to undefined function get_current_screen() in /home/customer/www/sharepackagegiving.com/public_html/wp-content/plugins/sg-cachepress/core/Admin/Admin.php:382 Stack trace: #0 /home/customer/www/sharepackagegiving.com/public_html/wp-content/plugins/sg-cachepress/core/Admin/Admin.php(283): SiteGround_Optimizer\Admin\Admin->is_plugin_page() #1 /home/customer/www/sharepackagegiving.com/public_html/wp-includes/class-wp-hook.php(303): SiteGround_Optimizer\Admin\Admin->admin_print_styles('') #2 /home/customer/www/sharepackagegiving.com/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #3 /home/customer/www/sharepackagegiving.com/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #4 /home/customer/www/sharepackagegiving.com/public_html/wp-content/plugins/dokan-lite/includes/Vendor/SetupWizard.php(121): do_action('admin_print_sty...') #5 /home/customer/www/sharepackagegiving.com/public_html/wp-content/plugins/dokan-lite/includes/Vendor/SetupWizard.php in /home/customer/www/sharepackagegiving.com/public_html/wp-content/plugins/sg-cachepress/core/Admin/Admin.php on line 382

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey @gscottthoms

    Please concontact the developer of Dokan plugin about the issue.

    They are calling admin_print_styles in setup_wizard_header method, which is called on a front-end page.

    Regards,
    Stanimir

    Hey @gscottthoms – Was this issue ever resolved? Similar issue here. Thanks.

    Thread Starter gscottthoms

    (@gscottthoms)

    @shunyasea Unfortunately not, when I messaged Dokan they told me they couldn’t do anything about it. I’ve just disabled the Optimizer for now, I’ve been using WP Rocket which seems to work with Dokan.

    @gscottthoms Figures. Thanks for your response and recommendation. Cheers!

    Plugin Author Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    I am sorry but that’s just bad coding. We will not try to accomodate or patch around the Dokan plugin. That’s bad for both security and performance. Either have them fix their code or I would recommend finding a different plugin providing similar functionality.

    Thread Starter gscottthoms

    (@gscottthoms)

    Fair enough, I basically had to choose between these two plugins, and I chose Dokan because I had put more work into it.
    They really should have done more to help this compatibility problem, I agree.

    I registered a support request with Dokan and they fixed the SG Optimizer issues in the most recent release.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Optimizer Interfering with Dokan’ is closed to new replies.