topgsmir
Forum Replies Created
-
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 solvedWhat more details?
I said that you have set this option to release the product:
1- To be checked by the manager first
2- To be published later
—but the delete option —
The product will be removed directly by the seller!!!!!!
This is a big mistake
Deletion should be the same as publication
Checked by the manager
Then remove the product
for example
If the seller, for example, deletes 1000 posts on the site!!!!!!
SEO credibility of the site will be lost
Still don’t understand and need more details?I checked for updates but this is still not fixed
Your words are very funny There is no need to test at all think for yourself On a blank white page For example, upload 10 thousand links The page loads very slowly. now make it hard If we simultaneously send 10 thousand requests to load the same links to the database What will happen now?!!!
didn’t you understand
A simpler example:
What is the method of attacking the site?
Sending too many requests to the database
For example, attack through site search
now youYou attack the sites exactly with these codes!!!!!!
The seller has many products
And you have coded:
1- Go find all products from the database (too much demand for the database)
2- Upload all those links!!!! (long-term loading in the user’s system)
Two different attacks, the first one is pressure on the server and the second one is the user’s personal computerYou can’t solve the problem!!!
This problem exists in dokan Lite
I gave you a code from dokan Lite
If so
Connect all Lite codes to Pro
And don’t answer people anymore!!! You will be comfortable too
Everyone asked a question
Tell him it’s connected to the Pro dokan and:
We do not solve the problem and we do not give an answer to anyoneExcellent and thank you
We are still waiting for an update and fix for this issue
ThanksExcellent and thank you
We are still waiting for an update and fix for this issue
ThanksI registered it if you fix it!
Do you not fix the problem?
link in git :
https://github.com/getdokan/dokan/issues/2184
- This reply was modified 1 year ago by 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 ) . ”; // } // } // ?>
See the image below:
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 itThe unsolved problem you wrote is solved!!!!!!!!!!!
Hello @fayeakuzzaman
Thank you, this code helped me and the problem was solved- This reply was modified 1 year, 3 months ago by topgsmir.