Mads Phikamphon
Forum Replies Created
-
I get the same error. Tried deactivating the bulk upload plugin, but the foreach() error is still being displayed.
If you are desperate to set your redirects again, you can use this SQL:
SELECT * FROM wp_qev94q_options WHERE option_name = '301_redirects'(I was desperate to get mine back).
- This reply was modified 6 years, 10 months ago by Mads Phikamphon.
- This reply was modified 6 years, 10 months ago by Mads Phikamphon.
- This reply was modified 6 years, 10 months ago by Mads Phikamphon.
Forum: Fixing WordPress
In reply to: Caching non-WP pages shown through WPNice approach. Didn’t know of
add_rewrite_rule()Forum: Fixing WordPress
In reply to: Caching non-WP pages shown through WPThanks a lot for the reply.
I have written custom queries to get the data etc., but I worry about performance if I cannot enable caching somehow.
So what I’m looking for is a way to enable caching for all these non-WP pages, preferably through a WP caching plugin (for example one that caches pages based on crawling instead of the sitemap).
Forum: Plugins
In reply to: [Lightweight Grid Columns] Can you have nested columns?I have tried nesting columns on my site. It’s not possible.
Forum: Fixing WordPress
In reply to: Sidebar width changingThanks!
Forum: Plugins
In reply to: [Amazon Link] Localizing Amazon links automaticallyWe decided to focus on other things, so we didn’t look that much into the issue (and therefore didn’t find a solution).
// Mads
Forum: Fixing WordPress
In reply to: Horizontally stretched imagesProblem solved like this:
<div style=”width:700px;”></div>
Forum: Plugins
In reply to: [Query Monitor] Page load getting slower and slowerThanks.
The HTTP Requests panel says “None” in QM.
According to “ps aux” via Putty, I use ~11% CPU and ~5% memory at the moment – and right now a page load took 14,6 seconds (via QM).
For the 14,6 seconds page load, db query time was 1,9 seconds and HTTP Requests = “None”.
Forum: Hacks
In reply to: Handling a huge amount of $wpdb->get_results dataThe XML files are up to around 200 MB.
Problem is that there 50 shops with an XML file each, i.e. a total of 50 x 100,000+ products => more than 5 million products.
Everything needs to be updated daily…
Tried increasing the memory limit to 128 MB, but that didn’t help.
Forum: Hacks
In reply to: Handling a huge amount of $wpdb->get_results dataAgree. This is often the case.
Here is what is going on:
I need to compare the contents of an XML products file with the existing products in the database:
– check if each product the XML file exist in the database y/n.
– if it exist, mix data from the existing product with data from the updated product in the XML file.
– update the database with the updated product.Both the XML file and the existing products database contains 100,000+ products.
Checking the database for each product in the XML file could be an option, but it will be terribly slow to do so many queries. That’s why I try to get all the existing products from the database and into an array, so I can check against that instead of the database.
Thanks again.
// Mads
Perfect. That helped a lot. Thanks!
Forum: Plugins
In reply to: [Custom Share Buttons with Floating Sidebar] Display on Woocommerce urls?Thanks.
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] HTML tables and SQL queriesThanks.
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] HTML tables and SQL queriesThanks a lot for the reply.
1) That’s fantastic. Then it will not be a problem at all.
2) Guess I can use CSV instead. Will the table contents change automatically when the data in the associated CSV change?
Thanks again,
MadsForum: Fixing WordPress
In reply to: Menu items disappearGreat. I’ll talk with my host and find out if this is the problem.
Thanks,
Mads