rubrojas06
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Accordion won’t expand when page loads slow/quickHi there @evermight,
Thanks for the very detailed report, including the exact line of minified code that helps a lot.
What’s happening technically: the Accordion block is built on WordPress’s newer Interactivity API, and the error you’re seeing is a known category of hydration race condition. When the page loads, the block’s JavaScript needs to build its
accordionItemscontext array before any click can look up the clicked item byid. If a click happens (or the script re-runs) before that context is fully populated which can happen if scripts load “too fast” (before the DOM/context is ready) or “too slow” (if something delays the script further, causing a mismatch).find()returnsundefined, and accessing.isOpenon it throws exactly the error you’re seeing. This lines up with other race-condition issues already being tracked in the Interactivity API’s WordPress 6.9 iteration work.Unfortunately is not something you can fix completely (well, not that I know of), however I can give some steps to somehow try to mitigate it.
Steps to narrow it down and mitigate for now:
- Update WordPress to the latest 6.9.x minor release if you haven’t already, the Accordion block and Interactivity API are actively receiving bug fixes since they’re relatively new in core.
- Check for caching/minification/defer-loading plugins (e.g. WP Rocket, Autoptimize, Perfmatters, or similar). Anything that changes the loading order or defers/async-loads core block scripts can trigger this exact timing issue. Try temporarily disabling script optimization/defer settings for
view.min.js/ block library scripts and see if the error stops. - Test with all other plugins disabled (you’re already on the default Twenty Twenty-Five theme, which is good) to confirm no plugin is interfering with script loading order.
- Check if you have multiple Accordion blocks with duplicate content/IDs on the same page (for example, from copy-pasting or pattern reuse) duplicate context IDs can also cause the lookup to fail unexpectedly.
- Since this looks like a genuine core bug rather than something fixable on your end, please consider reporting it on the Gutenberg GitHub repository with your reproduction steps, WordPress version, theme, and the exact console error this will help the Core team confirm and prioritize a fix:
https://github.com/WordPress/gutenberg/issues
Reference:
- Interactivity API iteration for WordPress 6.9 (tracking issue): https://github.com/WordPress/gutenberg/issues/70883
- WordPress Interactivity API docs: https://developer.wordpress.org/block-editor/reference-guides/interactivity-api/
If disabling caching/defer plugins resolves it, that would be very useful information to include in a GitHub bug report, let me know what you find and if the tips worked!
- This reply was modified 15 hours, 2 minutes ago by rubrojas06.
Forum: Fixing WordPress
In reply to: Old website not workingHow you doing @asimafzal,
Thanks for the details. Just to make sure I understand your situation correctly: the domain name expired 3 years ago, but the website files are supposed to still exist on a separate/other hosting account that you still have access to and now, when you log into that hosting, you can’t find the same WordPress files there. Is that correct?
If so, here are the steps to check before assuming the data is lost:
- Confirm you’re looking in the right hosting account. If the site was hosted separately from where the domain was registered, log into the cPanel (or hosting control panel) for that specific hosting account not the domain registrar and check the File Manager under
public_htmlor any subfolder/addon domain folder that might match the old domain name. Sites are sometimes stored in a subfolder named after the domain (e.g.public_html/olddomain.com/) rather than the mainpublic_html. - Check if it was an addon or subdomain setup. If the old domain was added as an “Addon Domain” on a hosting account that primarily serves a different main domain, its files typically live in a separate folder that’s easy to overlook. Look in cPanel -> Domains -> Addon Domains (or equivalent) to see if there’s a record of it, even if the domain itself no longer resolves.
- Check with your hosting provider directly. Ask them specifically: “Do you have any backups or files under [olddomain.com] from around 3 years ago, even in an inactive or archived account?” Many hosts keep backups longer than you’d expect, especially “catastrophic” backups, and it’s worth asking even if their standard retention policy says otherwise.
- Look for a separate database. WordPress files (
wp-content, themes, plugins) are only half of a website you also need the MySQL database. Check phpMyAdmin on that hosting account for any database matching the old site, since without it the files alone won’t restore a working site. - If nothing turns up on that hosting account, check the Wayback Machine (https://web.archive.org) by entering the old domain name. It can’t recover the actual WordPress files or database, but it can let you manually recover text content and some images from old snapshots to help rebuild the site.
What I’d need to know to help further:
- Do you (or the client) still have login/cPanel access to that “other hosting,” or is access also lost?
- Was this a shared hosting account, or was the site possibly hosted under a reseller/addon domain setup?
- Do you have a database export (.sql file) anywhere, separate from the file backups?
Reference: https://wordpress.org/support/topic/domain-name-expired-need-to-recover-website/ has a similar case with a step-by-step breakdown of what’s needed (hosting access + database + wp-content folder) to restore a site like this.
Let me know how it goes and if these instructions helped! See ya!
Forum: Fixing WordPress
In reply to: Action Scheduler: 97 past-due actions found; something may be wrong.Hi @twelsy ,
Thanks for sharing the details. This notice means WooCommerce/plugin background tasks handled by Action Scheduler aren’t running on schedule usually because WP-Cron isn’t firing reliably, or because one task got stuck and is blocking the queue behind it (Action Scheduler processes actions one at a time by default).
Steps to diagnose and fix:
- Go to Tools -> Scheduled Actions (the page you already found), filter by Pending, and try running a few of the oldest ones manually (there’s a “Run” link per row). If they complete successfully, the queue just needs a manual kick and the backlog should start clearing.
- Sort/check the Hook column on that same page if most stuck actions share the same hook name, that points to a specific plugin (e.g. an SEO plugin, WooCommerce import task, etc.) that may be misbehaving. If so, try updating that plugin first, since older versions often have known issues with scheduled actions getting stuck.
- Check Tools -> Site Health -> Info -> Scheduled Events / Loopback requests. If Site Health reports a loopback request problem, something on your server (a security plugin, firewall, or your host’s caching layer) is likely blocking the requests WordPress needs to trigger cron and Action Scheduler.
- Check your
wp-config.phpfor this line:
define('DISABLE_WP_CRON', true);If it’s there, WordPress’s built-in cron is disabled, and you need a real server-side cron job configured through your hosting control panel to hit
wp-cron.phpevery 5 minutes, otherwise these tasks will never fire on their own and will keep piling up.
5. Make sure WordPress core, your theme, and all plugins (especially WooCommerce, if installed) are fully updated some past versions had known bugs causing this exact pile-up.
6. If a single action has been stuck “in-progress” for a long time (check the Status column), that one is likely blocking everything behind it. You can cancel/delete that specific one from the list to unblock the queue.Reference documentation:
- Action Scheduler FAQ (official): https://actionscheduler.org/faq/
- WooCommerce guide on Scheduled Actions: https://woocommerce.com/document/understanding-the-woocommerce-system-status-report/scheduled-actions/
If after trying steps 1–4 the count keeps climbing instead of going down, reply here with a screenshot of the Hook column from your Pending actions list that will help narrow down which plugin is causing it. Hope this helps!
Forum: Fixing WordPress
In reply to: Unattached Images Deletion PluginHi there @vectorspiral ,
There are plugins designed exactly for this, but there’s an important thing before you go through with a bulk delete.
Important note first: In WordPress, an image shows as “unattached” simply because it wasn’t uploaded while editing a specific post it doesn’t necessarily mean the image is unused. Images used in widgets, your site logo, theme Customizer settings, or page builders (Elementor, Divi, etc.) can still appear as “unattached” even though they’re actively displayed on your site. So don’t rely on “unattached” alone as your deletion criteria, you want a plugin that actually scans where images are used, not just their attachment status.
Steps:
- Back up your site first (files + database) before running any bulk deletion tool. This step is not optional — deleted media files cannot be recovered otherwise.
- Install and activate the Media Cleaner plugin from the official WordPress.org repository:
https://wordpress.org/plugins/media-cleaner/
It scans your posts, pages, and common page builders/theme settings for real usage (not just the “attached” flag), and moves anything it finds unused into an internal trash first so you can review before permanently deleting. - Run a scan and carefully review the results list. Pay close attention to anything flagged that you recognize as a logo, favicon, or widget image and confirm it’s genuinely unused before deleting.
- Once you’re confident, delete the reviewed items from the plugin’s internal trash.
- If you have a large number of files (600+), consider running the scan during low-traffic hours, since scanning that much content can take some time on shared hosting.
Alternative option: If Media Cleaner doesn’t fit your setup, “Media Hygiene” is another actively maintained option on WordPress.org with deep folder scanning and bulk delete, worth comparing: https://wordpress.org/plugins/media-hygiene/
Let me know how the scan results go, happy to help!
Forum: Fixing WordPress
In reply to: can’t view some saved patterns or insert unsynced patternHi Shane,
Thanks for the very detailed report that made it much easier to narrow down. Based on your tests (fresh install, default theme, no plugins, and the HTML comparison you posted), this looks like it’s related to a change introduced in WordPress 7.0, not a plugin/theme conflict.
Here’s what’s likely happening:
- WordPress 7.0 expanded “contentOnly” editing mode to unsynced patterns and template parts. The Core team specifically flagged the Buttons block as one of the blocks that received targeted contentOnly changes and may behave differently than before.
- Your original pattern uses a standalone
wp:buttonblock without the standardwp:buttonswrapper<div class="wp-block-buttons">. This is valid block markup, but it’s not the structure WordPress normally generates (buttons are always inserted inside awp:buttonsgroup). It looks like the new contentOnly logic in 7.0 doesn’t handle this non-standard structure correctly, which is why the pattern shows up in the inserter but can’t actually be inserted.
Steps to work around this while it gets confirmed as a bug:
- Edit your pattern’s HTML (via the Code editor / “Edit as HTML” option in the block editor, or Appearance -> Patterns -> your pattern -> Code editor) and wrap the button in a proper
wp:buttonsblock, like this:
<!-- wp:buttons --> <div class="wp-block-buttons"><!-- wp:button {"className":"ewww-button aligncenter"} --> <div class="wp-block-button ewww-button aligncenter"><a class="wp-block-button__link wp-element-button" href="https://ewww.io/fake-link/" rel="">Fake Text!</a></div> <!-- /wp:button --></div> <!-- /wp:buttons -->This matches the structure of your working pattern and should let it insert normally.
- If you’d rather keep testing the original structure, you can try disabling contentOnly mode for unsynced patterns via the new
disableContentOnlyForUnsyncedPatternsblock editor setting (added in 7.0), using theblock_editor_settings_allfilter. This is more of a debugging step than a permanent fix, but it will confirm whether contentOnly mode is indeed the cause. - Since this reproduces on a fresh install with a default theme and no plugins, I’d recommend reporting it on the Gutenberg GitHub repo (https://github.com/WordPress/gutenberg/issues) with your exact HTML and reproduction steps — this looks like a genuine bug rather than something you can permanently fix on your end.
Reference: Pattern Editing in WordPress 7.0 — Make WordPress Core: https://make.wordpress.org/core/2026/03/15/pattern-editing-in-wordpress-7-0/
Let me know if wrapping the button in
wp:buttonsresolves it, that will help confirm the diagnosis!