• Resolved mikacns

    (@mikacns)


    I am getting 500 Internal Server Error message in Printful dashboard while trying to connect the store to WooCommerce.

    I tested this thoroughly and the problem appears when WooCommerce is updated to v4.0.1. I had 3.8.1 on staging website and the connection works fine. Are you going to release new plugin version to address WooCommerce compatibility?

Viewing 10 replies - 1 through 10 (of 10 total)
  • I have same problem.

    Hey there,

    Thank you for reaching out!
    We’re sorry to hear that you’ve encountered such an issue.
    Could you share your error logs with us, so we can check what happened?

    You can either send them here or to [email protected]!

    Thread Starter mikacns

    (@mikacns)

    PHP Fatal error: Uncaught Error: Call to a member function is_on_sale() on null in /nas/content/live/ninaaatv/wp-content/plugins/woocommerce/templates/single-product/sale-flash.php:25\nStack trace:\n#0 /nas/content/live/ninaaatv/wp-content/plugins/woocommerce/includes/wc-core-functions.php(251): include()\n#1 /nas/content/live/ninaaatv/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1565): wc_get_template('single-product/...')\n#2 /nas/content/live/ninaaatv/wp-includes/class-wp-hook.php(287): woocommerce_show_product_sale_flash('')\n#3 /nas/content/live/ninaaatv/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)\n#4 /nas/content/live/ninaaatv/wp-includes/plugin.php(478): WP_Hook->do_action(Array)\n#5 /nas/content/live/ninaaatv/wp-content/plugins/woocommerce/templates/content-single-product.php(43): do_action('woocommerce_bef...')\n#6 /nas/content/live/ninaaatv/wp-includes/template.php(725): require('/nas/content/li...')\n#7 /nas/content/live/ninaaatv/wp-content/plugins/woocommerce/includes/wc-core-functions in /nas/content/live/ninaaatv/wp-content/plugins/woocommerce/templates/single-product/sale-flash.php on line 25

    • This reply was modified 4 years, 7 months ago by mikacns.
    • This reply was modified 4 years, 7 months ago by mikacns.

    Hey there,

    Thank you for sharing your error logs with us!
    Our developer team checked in with this and it looks like this is an internal server error that is caused by something blocking the connection on your side. We are not able to see any additional details since the error is happening on the hosting side of the server. It might be caused by a conflicting plugin, theme, firewall settings, server settings, etc.

    However, you can get in touch with your hosting provider for additional details on resolving this issue!

    Thread Starter mikacns

    (@mikacns)

    I already tried fixing this with my host (WPengine) but they say everything is good from their side.

    I turned off all plugins except WooCommerce and changed to default WP theme. With these conditions the error appears ONLY when using newest WooCommerce version. As I mentioned before, it works fine v3.8.1. Can you confirm that it’s working properly with the newest WooCommerce version?

    Hey there,

    Thank you for getting back to us!
    Our plugin is compatible with the newest version of WooCommerce.
    The 500 Internal Server Error is a very general HTTP status code that means something has gone wrong on the web site’s server but the server could not be more specific on what the exact problem is.
    We double-checked your error logs to be sure that this is a 500 Internal Server Error, but can’t really assist with solving it, since the error is happening on the hosting side of the server.

    If your host can share more details on this and whether they believe it has anything to do with our plugin, we would certainly appreciate it!

    Hello, I am also getting this error now. Has this issue been resolved in your website?

    Thread Starter mikacns

    (@mikacns)

    There was a piece of custom code that had to be modified in functions.php and after that it worked. I recommend trying to troubleshoot by deactivating plugins one by one and then trying, or changing to default WordPress theme.

    thanks I will have a try:

    I am getting the following in my error log so wondering if this has anything to do with it:

    get_cart was called incorrectly. Get cart should not be called before the wp_loaded action. 
    
    Backtrace: require('wp-blog-header.php'), 
    require_once('wp-load.php'), 
    require_once('wp-config.php'), 
    require_once('wp-settings.php'), 
    do_action('init'), 
    
    WP_Hook-> do_action, 
    WP_Hook->apply_filters, vcvinit, 
    
    VisualComposer\Application->init, vcevent, 
    VisualComposer\Framework\Illuminate\Events\Dispatcher->fire, 
    VisualComposer\Framework\Illuminate\Container\Container->call, call_user_func_array, 
    VisualComposer\Modules\System\Ajax\Controller->VisualComposer\Helpers\Traits\{closure}, 
    VisualComposer\Framework\Container->call, ReflectionMethod->invokeArgs, 
    VisualComposer\Modules\System\Ajax\Controller->listenAjax, 
    VisualComposer\Framework\Container->call, ReflectionMethod->invokeArgs, 
    VisualComposer\Modules\System\Ajax\Controller->parseRequest, 
    VisualComposer\Framework\Container->call, ReflectionMethod->invokeArgs, 
    VisualComposer\Modules\System\Ajax\Controller->getResponse, 
    vcfilter, VisualComposer\Framework\Illuminate\Filters\Dispatcher->fire, 
    VisualComposer\Framework\Illuminate\Container\Container->call, call_user_func_array, 
    VisualComposer\Modules\Elements\AjaxShortcode\Controller->VisualComposer\Helpers\Traits\{closure}, 
    VisualComposer\Framework\Container->call, ReflectionMethod->invokeArgs, 
    VisualComposer\Modules\Elements\AjaxShortcode\Controller->render, wp_footer, do_action('wp_footer'), 
    
    WP_Hook->do_action, 
    WP_Hook->apply_filters, 
    
    Xoo_Wsc_Frontend->cart_markup, 
    Xoo_Helper->get_template, 
    include('/plugins/side-cart-woocommerce/templates/xoo-wsc-markup.php'), Xoo_Helper->get_template, 
    include('/plugins/side-cart-woocommerce/templates/xoo-wsc-container.php'), Xoo_Helper->get_template, 
    include('/plugins/side-cart-woocommerce/templates/xoo-wsc-header.php'), Xoo_Wsc_Cart->print_notices_html, 
    do_action('woocommerce_check_cart_items'), 
    
    WP_Hook->do_action, 
    
    WP_Hook->apply_filters, 
    WC_Cart->check_cart_items, 
    WC_Cart->check_cart_item_validity, 
    WC_Cart->get_cart, wc_doing_it_wrong. 
    
    This message was added in version 2.3.

    I actually installed the SideCart after the error occurred, so currently ruling that issue out.

    • This reply was modified 4 years, 2 months ago by mezpow.

    I reverted back to WOOCOMMERCE 4.2.2 and it fixed the issue you are having. Link below for plugin
    https://woocommerce.en.uptodown.com/windows/download/2289997

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘500 Internal Server Error when trying to connect the store’ is closed to new replies.