• Resolved roebou

    (@roebou)


    Hi Zorem,

    I am unable to go into my account as a customer and view my order’s information. The screen just returns an HTTP 500 error. As soon as I disable the plugin, everything works fine.

    I have also uninstalled the plugin and reinstalled it to see if that might make a difference, but it did not fix it.

    Can you please advise on if there is a work around for this or something I could try to get it fixed?

    Regards,
    Roebou

Viewing 15 replies - 1 through 15 (of 35 total)
  • Plugin Author Zorem

    (@zorem)

    Hi @roebou,

    I tried to replicate this issue in our end but we can’t replicate this. Can you please send me an error log for this 500 error so I will check it and give you some advice.

    Thanks,

    Thread Starter roebou

    (@roebou)

    Hi @zorem ,

    Where would I be able to get an error log for this?
    This is what the log prints out in chrome’s console.

    11:26:03.617 VM207:1859 GET https://roeboutestsite.co.za/my-account/view-order/237288/ 500 (Internal Server Error)
    reloadButtonClick @ VM207:1859
    onclick @ VM243:5182
    11:26:03.641 Navigated to https://roeboutestsite.co.za/my-account/view-order/237288/
    11:26:03.661 Navigated to chrome-error://chromewebdata/

    Plugin Author Zorem

    (@zorem)

    Hi @roebou,

    You need to turn on your WordPress website debug log or check the error log from your hosting panel. This chrome’s console log is not useful.

    Thanks,

    Thread Starter roebou

    (@roebou)

    Hi @zorem ,

    From my php error log, I get the following 3 lines.

    [19-Sep-2019 11:49:38 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 bytes) in /home/roeboyhm/public_html/wp-includes/class-wp-query.php on line 1740
    [19-Sep-2019 11:49:38 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
    [19-Sep-2019 11:49:38 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 77824 bytes) in Unknown on line 0

    Not sure if there are other logs as well, I turned debugging on, but no new logs are generated.

    Kind Regards,
    Roebou

    Plugin Author Zorem

    (@zorem)

    Hi @roebou,

    This error is not related to our plugin. You need to increase memory limit of your website to fix this error.

    Thanks,

    Thread Starter roebou

    (@roebou)

    Hi @zorem ,

    Thank you for the feedback, as soon as I remove the plugin then I do not have this issue at all.
    I have sent on the logs to my hosting site to see if they can assist me with upping the memory and then testing again on the plugin.

    Thanks,
    Rohan

    Plugin Author Zorem

    (@zorem)

    Hi, ok, let me know if you need further assistant
    Thanks

    Thread Starter roebou

    (@roebou)

    Hi @zorem ,

    “As mentioned the site is working fine since you have reverted the plugin.

    If the issue follows again, you will need to contact your developer and ask them to optimize the plugin. Ask him to cross-check the vulnerability with the plugin.

    This is unfortunately all that my hosting company came back with, so not sure really what we can do here.

    Thread Starter roebou

    (@roebou)

    Good Afternoon @zorem ,

    I just wanted to confirm that I removed one of my plugins after reading that other users are having issues with conflicts and everything is working fine after that.
    I have messaged the author of that plugin for assistance.

    Thank you for your assistance, much appreciated.

    Kind Regards,
    Roebou

    • This reply was modified 5 years, 5 months ago by roebou.
    Plugin Author Zorem

    (@zorem)

    Sure, good day ??

    Thread Starter roebou

    (@roebou)

    Hi @zorem ,

    So after discussing back and forth with the developer, they said I should ask the following:

    “The plugin is causing an issue when viewing the order when you have a plugin that has the view-order.php template override. Ask them if there is a solution for this.”

    Additionally, this is the logs that my wordpress site is printing out.
    Would love to get this sorted out so that I can use both plugins.
    Can you please see if there is anything that needs to be changed to get this to work?

    Frontend Error Log:
    Notice: Undefined variable: order in /usr/www/users/thepeprhfd/wp-content/plugins/divi-bodycommerce/includes/templates/woocommerce/myaccount/view-order.php on line 34 Fatal error: Uncaught Error: Call to a member function get_order_number() on null in /usr/www/users/thepeprhfd/wp-content/plugins/divi-bodycommerce/includes/templates/woocommerce/myaccount/view-order.php:34 Stack trace: #0 /usr/www/users/thepeprhfd/wp-content/plugins/woocommerce/includes/wc-core-functions.php(249): include() #1 /usr/www/users/thepeprhfd/wp-content/plugins/woo-advanced-shipment-tracking/includes/class-wc-advanced-shipment-tracking.php(648): wc_get_template(‘myaccount/view-…’, Array, ‘woocommerce-adv…’, ‘/usr/www/users/…’) #2 /usr/www/users/thepeprhfd/wp-includes/class-wp-hook.php(286): WC_Advanced_Shipment_Tracking_Actions->show_tracking_info_order(237661) #3 /usr/www/users/thepeprhfd/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #4 /usr/www/users/thepeprhfd/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #5 /usr/www/users/thepeprhfd/wp-content/plugins/divi-bodycommerce/includes/templates/woocommerce/myaccount/view-order.php(60): do_action(‘woocommerce_vie…’, 237661) in /usr/www/users/thepeprhfd/wp-content/plugins/divi-bodycommerce/includes/templates/woocommerce/myaccount/view-order.php on line 34

    Fatal Error Log:
    2019-10-02T21:14:12+00:00 CRITICAL Uncaught Error: Call to a member function get_order_number() on null in /usr/www/users/thepeprhfd/wp-content/plugins/divi-bodycommerce/includes/templates/woocommerce/myaccount/view-order.php:34
    Stack trace:
    #0 /usr/www/users/thepeprhfd/wp-content/plugins/woocommerce/includes/wc-core-functions.php(249): include()
    #1 /usr/www/users/thepeprhfd/wp-content/plugins/woo-advanced-shipment-tracking/includes/class-wc-advanced-shipment-tracking.php(648): wc_get_template(‘myaccount/view-…’, Array, ‘woocommerce-adv…’, ‘/usr/www/users/…’)
    #2 /usr/www/users/thepeprhfd/wp-includes/class-wp-hook.php(286): WC_Advanced_Shipment_Tracking_Actions->show_tracking_info_order(237579)
    #3 /usr/www/users/thepeprhfd/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #4 /usr/www/users/thepeprhfd/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #5 /usr/www/users/thepeprhfd/wp-content/plugins/divi-bodycommerce/includes/templates/woocommerce/myaccount/view-order.php(60): do_action(‘woocommerce_vie…’, 237579)
    in /usr/www/users/thepeprhfd/wp-content/plugins/divi-bodycommerce/includes/templates/woocommerce/myaccount/view-order.php on line 34

    Kind Regards,
    Roebou

    Plugin Author Zorem

    (@zorem)

    Hi @roebou,

    We checked in plugin files and there is not an issue with the plugin when call view-order.php template. We checked in different themes and its working fine with all themes.
    In the error log, you sent showing an error with default WooCommerce functions. You need to check if there is an issue with any custom development you did in your theme.

    Thanks,

    Thread Starter roebou

    (@roebou)

    Hi @zorem ,

    Thank you for getting back to me. This is currently a blocking point for me to go live and I dont really know how to get around it at the moment.

    I am using the combination of e things when these errors occur.
    1. Divi Theme from ElegantThemes.
    2. Divi Commerce plugin for overriding Woocommerce functionality and screens.
    3. Advanced Shipment Tracking For Woocommerce plugin.

    When I remove point 2, points 1 and 3 works.
    When I remove point 3, points 1 and 2 works.

    The error I sent earlier was from the developer of point 2 and they advised that they are overriding the default Woocommerce view-orders function and if there are any issues with doing this as that is simply what they are doong. All other functionality is working except for this view-orders and this is my final hurdle to go live.

    Is there any way that I can add you to a mail thread to get in touch with the other developer so that we can try to get this resolved and I can share the backwnd details as well so that you can take a look on my site where it is happening if necessary?

    Alternatively, could you potentially run a test with the combination of all 3 points above and see on your own test system what is breaking and why?

    Thank you for all your help so far, much appreciated!

    Kind Regards,
    Rohan

    Plugin Author Zorem

    (@zorem)

    Hello @roebou,

    We do all tests and there is no issue. We can’t provide support for a premium plugin or theme on this forum. You can ask the developers of the premium plugin to join this thread. They need to make their plugin compatible with our plugin.

    Thanks,

    Hi @zorem,

    My name is Peter and I am the developer for Divi BodyCommerce.

    What happens is that I have some code that will use my plugin in the same way you do with a child theme – where you add the template files to override WooCommerce ones to do some customisations on. The code is below for your reference

    add_filter( 'woocommerce_locate_template', 'bodycommerce_woo_templates', 1, 3 );
       function bodycommerce_woo_templates( $template, $template_name, $template_path ) {
         global $woocommerce;
         $_template = $template;
         if ( ! $template_path )
            $template_path = $woocommerce->template_url;
    
         $plugin_path  = untrailingslashit( plugin_dir_path( __FILE__ ) )  . '/includes/templates/woocommerce/';
    
        // Look within passed path within the theme - this is priority
        $template = locate_template(
        array(
          $template_path . $template_name,
          $template_name
        )
       );
    
       if( ! $template && file_exists( $plugin_path . $template_name ) )
        $template = $plugin_path . $template_name;
    
       if ( ! $template )
        $template = $_template;
    
       return $template;
    }

    I have done a test where I simply copy /myaccount/view-order.php to the location specified above and it gives the error above. I make NO changes to the file as a test and it still throws the error.

    It is very strange as it seems that it does not pick up the order information so it’s throwing the error. It works perfectly by default so know there is no problem with it picking up the order array – but for some reason, there is a conflict here.

    I will download your plugin on my dev site to do a test to make sure it is not something else also in the mix. Will report back asap but hopefully the code above can help you create a test plugin to test?

    Thanks!

Viewing 15 replies - 1 through 15 (of 35 total)
  • The topic ‘Order Number Search Broken’ is closed to new replies.