• Resolved topgsmir

    (@topgsmir)


    See the image below:

    image

    This coding part is a disaster.
    Very very beginner and wrong coding
    You haven’t fixed this problem in years.
    Here you have coded that:
    Send the request to the database and get the link of all the products!!!!
    Oh my god !!!!
    If the seller has, for example, 5 thousand products or more, this page will not be loaded.
    and gives an error
    If the same address:
    https://top-gsm.ir/dashboard/orders/?order_id=744290&_wpnonce=f01950d7ea
    Open several pages of this address in the browser at the same time for a seller who has many products, for example more than 5 thousand
    Doing this is similar to attacking the site and making the site unavailable
    I have been deleting the codes for sending requests to your database for several years to solve the problem
    I have raised the problem several times, but
    You never fixed it

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter topgsmir

    (@topgsmir)

    To fix the problem, I comment the following code every time I update:

    ‘; // global $wpdb; // $user_id = dokan_get_current_user_id(); // $products = $wpdb->get_results( // $wpdb->prepare( // “SELECT $wpdb->posts.* FROM $wpdb->posts // INNER JOIN $wpdb->postmeta // ON ( $wpdb->posts.ID = $wpdb->postmeta.post_id ) // WHERE $wpdb->posts.post_author=%d // AND ( $wpdb->postmeta.meta_key = ‘_downloadable’ AND $wpdb->postmeta.meta_value = ‘yes’ ) // AND $wpdb->posts.post_type IN ( ‘product’, ‘product_variation’ ) // AND $wpdb->posts.post_status = ‘publish’ // GROUP BY $wpdb->posts.ID // ORDER BY $wpdb->posts.post_parent ASC, $wpdb->posts.post_title ASC”, $user_id // ) // ); // if ( $products ) { // foreach ( $products as $product ) { // $product_object = wc_get_product( $product->ID ); // $product_name = $product_object->get_formatted_name(); // echo ” . esc_html( $product_name ) . ”; // } // } // ?>

    Plugin Support Tanvir Hasan

    (@tanvirh)

    Hi @topgsmir

    Thank you for bringing this matter to our attention. We sincerely apologize for the inconvenience you’ve experienced with the order_id tab and the loading issues you’ve encountered, especially for sellers with a large number of products.

    We understand the frustration caused by such errors and the impact it can have on your experience with our platform. Rest assured, we take these issues seriously and are committed to resolving them promptly.

    To ensure a timely resolution and better assistance with this matter, we kindly recommend submitting a detailed report of the problem as a plugin-level issue on the Dokan GitHub Public repository. Our development team closely monitors and addresses issues reported through this channel to provide effective solutions.

    Here is the link to submit your concern: https://github.com/getdokan/dokan/issues/new/choose

    Once again, we apologize for any inconvenience this has caused you, and we appreciate your patience and cooperation as we work to resolve this issue.

    Thanks!

    Plugin Support Tanvir Hasan

    (@tanvirh)

    Hi @topgsmir

    As we haven’t heard back from you for a while, we’ll consider this topic resolved. If you encounter any further issues, please don’t hesitate to open a new topic.

    Thanks!

    Thread Starter topgsmir

    (@topgsmir)

    link in git :

    https://github.com/getdokan/dokan/issues/2184

    • This reply was modified 3 months, 2 weeks ago by topgsmir.
    Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @topgsmir,

    Thanks for reporting the issue on GitHub. Our developers will take care of it from here.

    As the purpose of this topic has been served, we are marking this as resolved. Feel free to open a new one for any further queries. Thanks!

    Thread Starter topgsmir

    (@topgsmir)

    Please wait until you have solved the problem
    Do not mark this topic as resolved
    Whenever the problem is solved
    Submit the documents
    And then consider the problem solved

    Thread Starter topgsmir

    (@topgsmir)

    I checked the latest update
    No action has been taken yet and the problem persists

    Plugin Support Tanjir Al Mamun

    (@tanjiralmamun)

    Hello @topgsmir,

    It appears that a similar issue has already been addressed in another topic. Therefore, we will be closing this topic due to duplication.

    Thank you for bringing this to our attention.

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.