Forum Replies Created

Viewing 15 replies - 16 through 30 (of 66 total)
  • Thread Starter davidgimenez

    (@davidgimenez)

    I am using the latest version of WordPress with PHP version 8.2 and SQL version 8 and all plugins updated and compatible with that version of PHP.

    Thread Starter davidgimenez

    (@davidgimenez)

    That was faster than you thought of mentioning changing version, that problem appears in all versions from 8.0 and up only and they are not plugin problems because I studied with each developer of each plugin that I have and they are all compatible with version 8.3 of PHP like this Please do a little more research before releasing as quickly as possible to give a quick and not good solution with all due respect but the complements are not a problem

    Thread Starter davidgimenez

    (@davidgimenez)

    In making the changes that you told me, a big problem was formed that I solved with a backup copy that I had in making the changes that you mentioned to me as admin, he added orders that I had deleted and he also added my admin email to more of 160 orders from other users and all this is not normal, for that reason I had to restore my site and keep the WooCommerce version at 8.6.0 since the last one causes problems with duplicate orders. I hope that in a next update they will solve that problem so I can continue updating the plugin without having to make those changes that you asked me for since it is creating serious problems for me with the orders

    Thread Starter davidgimenez

    (@davidgimenez)

    Next time, if you don’t know what you’re talking about or don’t send me to activate things that shouldn’t be activated, I have more than 9,000 orders in my store and in synchronizing what you sent me a lot of problems, I appreciate the help but this way I don’t prefer to wait 20 versions that screw up my business.

    Thread Starter davidgimenez

    (@davidgimenez)

    I removed these incompatible plugins so that it allows me to activate and it still does not allow me to activate that option

    Thread Starter davidgimenez

    (@davidgimenez)

    You cannot activate this option that it asks me for because I have two plugins that are incompatible with that option. but in all the previous versions I had no problems. I have version 8.6.0 and it works well. Version 8.6.1 already has problems with duplicate orders when a purchase is made.

    Thread Starter davidgimenez

    (@davidgimenez)

    I don’t know what you mean by HPOS, I can’t find something like that in advanced

    Thread Starter davidgimenez

    (@davidgimenez)

    To solve the problem, I went back to a previous version and carried out some tests and it seems that it is no longer duplicated. I am going to wait for more orders from other users to see if the order continues to duplicate.

    Thread Starter davidgimenez

    (@davidgimenez)

    It also seems that there is an error when the coupon is applied, many users in my store are upset that they apply the coupon and pay and when they get paid, the coupon is not applied to them, that does not happen with all users, it happened like 5 times since I updated the plugin but the strange thing of all is that no error is recorded in any log.

    Thread Starter davidgimenez

    (@davidgimenez)

    In my state there are no errors, I checked, there is no log either, just pass what I told you if a user buys a product that order is recorded twice in the database or in the product metadata but nowhere is there any error that I see on my part that happens since I updated with the latest version with each request from the user but in the admin part I don’t get two orders, only one but it is counted as two orders as I mentioned

    davidgimenez

    (@davidgimenez)

    I have the same problem recently, I realized because I have a system of sellers, they were demanding payments from me for more orders and when I noticed they had duplicate orders, I realized because of the same product ID and I also have a sales counter for each product and When a product is sold it counts as two sales instead of one but in the WooCommerce administrator part it only shows me one order. I imagine that in the database in WooCommerce metadata it creates duplicate orders for each order.

    Thread Starter davidgimenez

    (@davidgimenez)

    I already solved the problem with sucuri support

    Thread Starter davidgimenez

    (@davidgimenez)

    There are no steps to explain, activate version 8.3 of PHP and in the error log I could see those errors. If I change version 7.4, I no longer get those errors in the log. and I solved it with the code that I gave you, it seems that you have an error in the code that is incompatible with versions 8 of PHP

    Thread Starter davidgimenez

    (@davidgimenez)

    Update this code:

    /* Entire Website */ $meta_args = “pm.meta_value LIKE ‘%\”basic-global\”%'”; switch ( $current_page_type ) { case ‘is_404’: $meta_args .= ” OR pm.meta_value LIKE ‘%\”special-404\”%'”; break; case ‘is_search’: $meta_args .= ” OR pm.meta_value LIKE ‘%\”special-search\”%'”; break; case ‘is_archive’: case ‘is_tax’: case ‘is_date’: case ‘is_author’: $meta_args .= ” OR pm.meta_value LIKE ‘%\”basic-archives\”%'”; $meta_args .= ” OR pm.meta_value LIKE ‘%\”{$current_post_type}|all|archive\”%'”; if ( ‘is_tax’ == $current_page_type && ( is_category() || is_tag() || is_tax() ) ) { if ( is_object( $q_obj ) ) { $meta_args .= ” OR pm.meta_value LIKE ‘%\”{$current_post_type}|all|taxarchive|{$q_obj->taxonomy}\”%'”; $meta_args .= ” OR pm.meta_value LIKE ‘%\”tax-{$q_obj->term_id}\”%'”; } } elseif ( ‘is_date’ == $current_page_type ) { $meta_args .= ” OR pm.meta_value LIKE ‘%\”special-date\”%'”; } elseif ( ‘is_author’ == $current_page_type ) { $meta_args .= ” OR pm.meta_value LIKE ‘%\”special-author\”%'”; } break; case ‘is_home’: $meta_args .= ” OR pm.meta_value LIKE ‘%\”special-blog\”%'”; break; case ‘is_front_page’: $current_post_id = $current_id; $meta_args .= ” OR pm.meta_value LIKE ‘%\”special-front\”%'”; $meta_args .= ” OR pm.meta_value LIKE ‘%\”{$current_post_type}|all\”%'”; $meta_args .= ” OR pm.meta_value LIKE ‘%\”post-{$current_id}\”%'”; break; case ‘is_singular’: $current_post_id = $current_id; $meta_args .= ” OR pm.meta_value LIKE ‘%\”basic-singulars\”%'”; $meta_args .= ” OR pm.meta_value LIKE ‘%\”{$current_post_type}|all\”%'”; $meta_args .= ” OR pm.meta_value LIKE ‘%\”post-{$current_id}\”%'”; $taxonomies = get_object_taxonomies( $q_obj->post_type ); $terms = wp_get_post_terms( $q_obj->ID, $taxonomies ); foreach ( $terms as $key => $term ) { $meta_args .= ” OR pm.meta_value LIKE ‘%\”tax-{$term->term_id}-single-{$term->taxonomy}\”%'”; } break; case ‘is_woo_shop_page’: $meta_args .= ” OR pm.meta_value LIKE ‘%\”special-woo-shop\”%'”; break; case ”: $current_post_id = $current_id; break; }

    To this code that I corrected:

    /* Entire Website */
    $meta_args = “pm.meta_value LIKE ‘%\”basic-global\”%'”;

    switch ($current_page_type) {
    case ‘is_404’:
    $meta_args .= ” OR pm.meta_value LIKE ‘%\”special-404\”%'”;
    break;
    case ‘is_search’:
    $meta_args .= ” OR pm.meta_value LIKE ‘%\”special-search\”%'”;
    break;
    case ‘is_archive’:
    case ‘is_tax’:
    case ‘is_date’:
    case ‘is_author’:
    $meta_args .= ” OR pm.meta_value LIKE ‘%\”basic-archives\”%'”;
    $meta_args .= ” OR pm.meta_value LIKE ‘%\”{$current_post_type}|all|archive\”%'”;

        if ('is_tax' == $current_page_type && (is_category() || is_tag() || is_tax())) {
            if (is_object($q_obj)) {
                $meta_args .= " OR pm.meta_value LIKE '%\"{$current_post_type}|all|taxarchive|{$q_obj->taxonomy}\"%'";
                $meta_args .= " OR pm.meta_value LIKE '%\"tax-{$q_obj->term_id}\"%'";
            }
        } elseif ('is_date' == $current_page_type) {
            $meta_args .= " OR pm.meta_value LIKE '%\"special-date\"%'";
        } elseif ('is_author' == $current_page_type) {
            $meta_args .= " OR pm.meta_value LIKE '%\"special-author\"%'";
        }
        break;
    case 'is_home':
        $meta_args .= " OR pm.meta_value LIKE '%\"special-blog\"%'";
        break;
    case 'is_front_page':
        $current_post_id = $current_id;
        $meta_args .= " OR pm.meta_value LIKE '%\"special-front\"%'";
        $meta_args .= " OR pm.meta_value LIKE '%\"{$current_post_type}|all\"%'";
        $meta_args .= " OR pm.meta_value LIKE '%\"post-{$current_id}\"%'";
        break;
    case 'is_singular':
        $current_post_id = $current_id;
        $meta_args .= " OR pm.meta_value LIKE '%\"basic-singulars\"%'";
        $meta_args .= " OR pm.meta_value LIKE '%\"{$current_post_type}|all\"%'";
        $meta_args .= " OR pm.meta_value LIKE '%\"post-{$current_id}\"%'";
    
        if (is_object($q_obj)) {
            $taxonomies = get_object_taxonomies($q_obj->post_type);
            $terms = wp_get_post_terms($q_obj->ID, $taxonomies);
    
            foreach ($terms as $key => $term) {
                $meta_args .= " OR pm.meta_value LIKE '%\"tax-{$term->term_id}-single-{$term->taxonomy}\"%'";
            }
        }
    
        break;
    case 'is_woo_shop_page':
        $meta_args .= " OR pm.meta_value LIKE '%\"special-woo-shop\"%'";
        break;
    case '':
        $current_post_id = $current_id;
        break;

    }

    Thread Starter davidgimenez

    (@davidgimenez)

    Clearly it adds rank math because I deactivate it and the problem disappears. I use the Storefront theme. You seem to me to provide terrible customer service. I have a paid version and whenever I have a problem they send me articles. I’m tired of articles. It’s the first thing I do. Before contacting them, I don’t like to waste my time with disastrous support.

Viewing 15 replies - 16 through 30 (of 66 total)