• Resolved robertmaynord

    (@robertmaynord)


    Hi! Your plugin definitely fits a need! I installed it and it successfully shows the order history of some customers. However, it shows an error message for about half of the customers. If you read the error message, perhaps it will help….

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function WC_wcchpo::adding_custom_meta_boxes_wcchpo(), 1 passed in /home/artrmay1/public_html/artstore/wp-includes/class-wp-hook.php on line 288 and exactly 2 expected in /home/artrmay1/public_html/artstore/wp-content/plugins/woo-customers-order-history/woocommerce-customers-order-history.php:53 Stack trace: #0 /home/artrmay1/public_html/artstore/wp-includes/class-wp-hook.php(288): WC_wcchpo->adding_custom_meta_boxes_wcchpo(‘shop_order’) #1 /home/artrmay1/public_html/artstore/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /home/artrmay1/public_html/artstore/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /home/artrmay1/public_html/artstore/wp-admin/edit-form-advanced.php(334): do_action(‘add_meta_boxes’, ‘shop_order’, Object(WP_Post)) #4 /home/artrmay1/public_html/artstore/wp-admin/post.php(174): include(‘/home/artrmay1/…’) #5 {main} thrown in /home/artrmay1/public_html/artstore/wp-content/plugins/woo-customers-order-history/woocommerce-customers-order-history.php on line 53

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author javmah

    (@javmah)

    Dear robertmaynord,
    Thank you for your topic. I am very sorry to see this problem, Please update your plugin to 3.0.0 from your current version.

    Regards
    javmah

    Thread Starter robertmaynord

    (@robertmaynord)

    Thanks, Javmah!

    The update is definitely an improvement. When I go to the “User Order History” list and click on the order history arrow, I can now consistently see the list of past orders. However, when I click on an individual order in the list, I see an error message rather than the order. The same behavior occurs when I go to Woocommerce/Orders. (Of course I also see “Guest” orders there, but they also show error messages).

    So in all cases when I click on the actual individual order, I see an error message rather than the order. Here is a copy of the error message…

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function WC_wcchpo::adding_custom_meta_boxes_wcchpo(), 1 passed in /home/artrmay1/public_html/artstore/wp-includes/class-wp-hook.php on line 288 and exactly 2 expected in /home/artrmay1/public_html/artstore/wp-content/plugins/woo-customers-order-history/woocommerce-customers-order-history.php:54 Stack trace: #0 /home/artrmay1/public_html/artstore/wp-includes/class-wp-hook.php(288): WC_wcchpo->adding_custom_meta_boxes_wcchpo(‘shop_order’) #1 /home/artrmay1/public_html/artstore/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /home/artrmay1/public_html/artstore/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /home/artrmay1/public_html/artstore/wp-admin/edit-form-advanced.php(334): do_action(‘add_meta_boxes’, ‘shop_order’, Object(WP_Post)) #4 /home/artrmay1/public_html/artstore/wp-admin/post.php(174): include(‘/home/artrmay1/…’) #5 {main} thrown in /home/artrmay1/public_html/artstore/wp-content/plugins/woo-customers-order-history/woocommerce-customers-order-history.php on line 54

    Thanks for your work on this!

    Plugin Author javmah

    (@javmah)

    Dear robertmaynord ,
    Thank you for your reply. I investigated your problem very cautiously. I think code is okay, your site didn’t update Plugin correctly as you can see in Line 54 : public function adding_custom_meta_boxes_wcchpo( $post_type , $post ) . there is clearly two parameters ( $post_type , $post ) but in your error note :
    “Fatal error: Uncaught ArgumentCountError: Too few arguments to function WC_wcchpo::adding_custom_meta_boxes_wcchpo(), 1 passed

    I hope if you install the new version manually, this problem will fix. before install please remove the previous version manually and download a fresh copy from wordpress.org repository. If you face more problem please let me know with your PHP version and wordpress version and woocommerce version .

    Thanks.

    Plugin Author javmah

    (@javmah)

    Thread Starter robertmaynord

    (@robertmaynord)

    Hi, Javmah!

    I removed the old version of the plugin completely, and double checked to be sure it was clean by using FTP. I then downloaded the new .zip file and installed it. Unfortunately the error message is exactly the same.

    Here is my info………..
    Wordpress: 4.9.8
    Woocommerce: 3.5.1
    PHP: 7.2

    I am beginning to suspect that the the problem might be with PHP 7.2. Otherwise, it might be due to the fact that my website was transferred six weeks ago to this new site. However, the newest orders (today) show the same error message as the old orders. So — at this point, my only guess is PHP 7.2.

    Robert

    Plugin Author javmah

    (@javmah)

    Dear Robert , Maybe but I am not sure about the PHP version. could you please send me a video clip to see the problem (jaedmah@gmail.com). you can use Vidyard (https://chrome.google.com/webstore/detail/screen-and-webcam-recorde/jiihcciniecimeajcniapbngjjbonjan?hl=en) for that.

    javmah

    • This reply was modified 7 years, 6 months ago by javmah.
    • This reply was modified 7 years, 6 months ago by javmah.
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Some Histories Work – Some Give Error Message’ is closed to new replies.