NerdPress
Forum Replies Created
-
Forum: Plugins
In reply to: [Optimize Database after Deleting Revisions] Duration of optimizationHi @wppraesenz,
Thanks for being a longtime user of ODADR! 😊
Self-hosted analytics tools like Matomo have to store a lot of data, and there are other factors that impact performance besides sheer size of a table. It sounds like these tables may be either too big, or perhaps too complicated in some other way, for your server to be able to rebuild/optimize them.
I don’t know if Matomo allows this, but perhaps you could retain less data? For example, maybe keep 90 days instead of a year? But you’d need to contact them for more specific help with this, since our plugin just tells the server to run the optimization — and fixing issues with a specific table would be outside our scope or ability. You can open a support thread with them here: https://ww.wp.xz.cn/support/plugin/matomo/
In the meantime, as a workaround you could exclude those tables from optimization, so you can optimize all your other InnoDB tables if need be.
In
Settings > Optimize Database > Exclude Database Tables from Optimization, you can check the box next to each Matomo table to ignore. We checked the Matomo plugin’s code, and here’s a list of all the tables it uses:(replace
wp_with your table prefix)wp_access
wp_archive_blob
wp_archive_invalidations
wp_archive_numeric
wp_brute_force_log
wp_changes
wp_goal
wp_locks
wp_log_action
wp_log_conversion
wp_log_conversion_item
wp_log_link_visit_action
wp_log_profiling
wp_log_visit
wp_logger_message
wp_option
wp_plugin_setting
wp_sequence
wp_session
wp_site
wp_site_setting
wp_site_url
wp_tracking_failure
wp_twofactor_recovery_code
wp_user
wp_user_token_authSince troubleshooting these tables is outside our scope and better-suited for Matomo to assist, I’m going to mark this as resolved…but I hope this helped point you in the right direction, or at least gave you a workaround!
Best,
AndrewForum: Plugins
In reply to: [Optimize Database after Deleting Revisions] Unused Comment MetaHi @ljmac,
Thanks for this suggestion. We’ve logged this as a feature request and I think we’ll be able to get this into a future release.
Since I haven’t seen Commentmeta used all that extensively, would you be able to share more of your use case? I’m guessing you have something custom on your setup?
(And I’m going to mark this as “Resolved” since we’ve added it to our to-do list.)
Thanks!
Best,
AndrewForum: Plugins
In reply to: [Optimize Database after Deleting Revisions] PHP Error in 5.2.xHi @ljmac,
We just released version 5.3.0 which should resolve the issue you saw on PHP 5.6.
(That version of PHP reached end of life way back in 2018! In a future version we plan to increase the minimum required version of PHP — so hopefully you’ll be able to upgrade soon. But for now you should be back in business! 😄)
Best,
AndrewForum: Reviews
In reply to: [Smart Custom 404 Error Page] Not playing well with the Divi ThemeHi @wingers574!
We’ve been trying to reproduce this issue (so we can fix it!) but haven’t been able to do so. It’s possible that Divi already made changes that fixed it, or there’s some other conflict on your setup. If you’re still experiencing issues, could you please email us at [email protected] so we can help troubleshoot? (If you do, please include a list of all your active plugins, as that may help us track down a conflict.).
Thanks!
Hi Moses,
Thanks for the quick reply. The issue we saw was exactly the same as the OP, so it seemed like it would be helpful to post here.
It seems that the fundamental problem is that the Square Customer ID was not saved in the WordPress User Profile, so when WooCommerce tried to charge the card, Square rejected it with the
Invalid Card Dataerror. As soon as I manually added the Customer ID to the user’s WP profile, it worked.I don’t know whether the underlying issue is with Square or with Subscriptions, or if it’s a conflict between the two.. but the main problem was definitely with Square.
(Sidenote: If Square is receiving a request to charge a card, but there’s no Customer ID, maybe Square could return a more helpful error message, like
No Customer IDinstead?)I also just took a quick look at the OP’s site and they are also using WooCommerce Subscription (here’s one of their subscription products).
It’s also possible that this was because of the issue in Subscriptions that they fixed in 7.7.0… If there was an error on the first payment attempt (in my case, the wrong Country), perhaps that is what caused the Customer ID not to be stored in the WordPress Profile, and maybe that caused the future payment failures as well. 🤷♂️
Hopefully this is resolved now but if it happens again I’ll dig back in.
Thanks!
Hi,
We just ran into this issue as well. We’re using WooCommerce Subscriptions.
The customer is in Guam, but the first time they tried to order, they accidentally entered United States as the Country. The order failed with “Invalid Card Data” but it created an failed WooCommerce Order and a new user account on our site.
She tried a second time with the correct country, and it still didn’t work. She also called her bank and they confirmed they were not blocking it (they hadn’t even seen the transaction attempt).
I then noticed that in the Square Dashboard Customer Directory there were two separate customer entries created (one with each country). However, in the user profile on our site, there was no Customer ID added in her profile.
I manually added the Customer ID (getting it from the URL when viewing her Customer Directory Information with the correct country) and saved that in her WordPress user profile.
After that she was able to complete checkout just fine.
I also noticed that WooCommerce Subscriptions 7.7.0 (released yesterday) had this note in the changelog – I wonder if it’s related?
Fix: Fix error when placing an order with a valid card after using a declined one.
Hope that helps narrow down the issue!
Best,
Andrew
Hi Mary,
Sorry to hear you’ve run into this issue. I’m not sure why there are no revisions saved, since it could be due to quite a few different factors. Nevertheless, it does sound like the best thing to do is to restore an older backup (if you have it) to a staging environment, and then manually copy the missing content back to the post.
Is https://drillhall.historic-sidmouth.uk/ the site? It looks like it’s hosted by IONOS, so I recommend you ask them for help creating a staging environment; better yet would be to ask them to restore an old backup as well.
Once you get the backup accessible on staging, since it’s a Classic Editor post, the easiest way to restore is to switch to “Text” mode, and then copy/paste the content from staging to the same post on the live site.
(If the images themselves are still on the live site, you may not need to restore images from a backup; just the database will suffice, since in that case you’d only need the code from the post content itself.)
Also, if you have a copy of the database in SQL format (or zipped or gzipped, in which case un-zipping should get you the SQL file), you can also open that in a text editor and search for the post. The formatting is a little challenging, but the content of the post itself should be visible there, so you could copy/paste it directly from the SQL file. (Once you have the SQL file open in a text editor, do a search for the post title, which should help you locate it more easily.)
Another option would be to check the Internet Archive to see if they have stored a copy of the page:
https://web.archive.org/web/20240701000000*/https://drillhall.historic-sidmouth.uk/
Hope that helps! I’m going to mark this thread as “resolved” since it’s outside the scope of our plugin, specifically, but if you are still stuck please do reply and I’ll be happy to jump back in.
Best,
AndrewHi @austyfrosty,
Thanks for reporting this! I’ve logged the warning and we’ll will work on addressing it soon. 🙂
(I’m going to mark this thread as resolved, just to keep things tidy here… but if there’s anything else to add, or if it’s causing problems beyond a warning in the logs, by all means let us know and I’ll escalate it further.)
Cheers,
AndrewForum: Reviews
In reply to: [Smart Custom 404 Error Page] Great pluginAwesome, thanks! Much appreciated. 😊
Forum: Reviews
In reply to: [Smart Custom 404 Error Page] Great pluginHooray! Glad we were able to figure it out– and that everything is indeed working properly! 😊
(I have a quick favor to ask: If you’ve been happy with our help — and since the plugin is working correctly — would you be so kind as to upgrade your rating at the start of this thread? That would really help us out! 🙏)
Cheers!
Forum: Reviews
In reply to: [Smart Custom 404 Error Page] Great pluginHi @kkk07,
I was just able to reproduce the issue on my staging site. WordPress will return a
200response and the default “Nothing Found” message if the tag itself still exists but there are no posts with the tag.Screenshot: https://share.nrdp.rs/eDuZXPop
To double-check: Have you fully deleted the tag itself from
Posts > Tags? Or did you only remove the tag from any post(s) that had the tag assigned to them?Forum: Reviews
In reply to: [Smart Custom 404 Error Page] Great pluginThere must be something different about your setup that is conflicting (and on both sites). I think the
200response on the deleted “tag” URL is a big clue here — somehow your sites are still returning a valid 200 response, even though WordPress is showing the default “Not Found” page itself. And I think with the 200 response, Smart Custom 404 Page won’t “activate” to show the custom page.Are they both hosted on the same account? Does that hosting have any sort of caching or accelerator plugin? (Maybe it’s another layer of caching that needs to be cleared, at the server level).
Or perhaps there’s a different plugin conflicting. Would you be able to deactivate all other plugins, except Smart Custom 404 Page, on one of the sites, to rule any other plugins? (Or maybe you can clone that site to a staging environment?)
Forum: Reviews
In reply to: [Smart Custom 404 Error Page] Great pluginSorry, I just realized you shared the exact URLs above (it’s early here and I need more coffee!). ☕
Curiously, the URL showing the default error page:
https://steadyincomeinvestments.com/tag/early-stage-trader-fraud/Is responding with a
200(OK) status code — not a404or410.If I got to another URL with /tag/ in it, but for a tag that never existed, it also works correctly, returning your custom page, and a
410response:
https://steadyincomeinvestments.com/tag/this-tag-never-existed/So this does point back to something conflicting specifically on this URL, and specifically because it was a tag that existed and was later deleted. Very curious to see what you find in the SEOPress and Redirection settings!
Forum: Reviews
In reply to: [Smart Custom 404 Error Page] Great pluginThanks, that’s very helpful.
I’m guessing that there’s a rule in either SEOPress PRO or Redirection that is causing the site to return the standard Not Found page — and I wouldn’t be surprised if it’s issuing a 410 (“Content Gone”) response as well (this won’t be a visible difference, but if you open DevTools > Network, load the page, and then look at the response headers on the main page it will show you the status code).
https://www.seopress.org/features/301-redirects/ (note this has an “Automatic Redirects” feature that detects when something is deleted – I know Yoast will offer to issue a 410, so maybe this does the same).
Can you please look in Redirection’s and SEOPress’s lists of redirects? I bet there’s one there for your deleted tag’s URL.
Forum: Reviews
In reply to: [Smart Custom 404 Error Page] Great pluginHi @kkk07 ,
I just deleted my
test-tagarchive, reloaded the/tag/test-tag/page and it worked correctly for me. (So, deleting a tag isn’t the issue.)Perhaps it’s a caching issue. This could be the case if you installed the plugin after initially seeing the default 404 page on that URL. Have you cleared all caches?
Or maybe another plugin is conflicting. Could you please share your list of plugins? You can get that from
Tools > Site Health > Info > Active Plugins.And, what Theme is your site using?
Thanks,
Andrew