Check Your Modula Galleries for Problems with AI
Hidden, empty, unused and unreachable Modula galleries found in one read-only report.
Prerequisites
A site connected to WPVibe running a recent Modula Image Gallery (tested on 3.0.22, free) on WordPress 6.9 or newer, with an administrator account.
My WordPress site uses Modula Image Gallery. Check my galleries for problems. Don't change anything. 1. Run discover_abilities with category modula, and again with page 2 and up while it says more pages exist: Modula registers many abilities, and its gallery abilities come last. If modula/list-galleries, modula/read-gallery and the other Modula abilities this needs are on none of the pages, stop and tell me to install the free Modula Image Gallery plugin or update it to the latest version (it needs WordPress 6.9 or newer). 2. Run modula/list-galleries with status any and per_page 100, and again with page 2 and up while total_pages is larger. These are the galleries made in Modula's new editor; status any includes the ones in the trash. 3. Run rest_api GET /wp/v2/modula-gallery with status publish,draft,private,pending,future,trash, context edit, per_page 100 and _fields id,title,status (if 100 come back, ask for page 2). Any gallery here that is not in step 2 was made in Modula's classic editor: Modula's abilities can't read it, so list it as not checked, and say it can be converted with Convert to new editor in its row's menu on Modula's Galleries screen (Modula keeps the classic settings so it can be switched back, and the shortcode stays the same; check the page that shows it afterwards). A classic gallery in the trash has to be restored there first. 4. Find every page and post that shows a gallery: run rest_api GET /wp/v2/pages and GET /wp/v2/posts, each with search modula, status publish,draft,private,pending,future, context edit, per_page 100 and _fields id,title,status,link,content.raw (if 100 come back, ask for page 2; if an answer is cut short, ask again with per_page 20 and page through). In each, note the gallery IDs in Modula Gallery blocks (wp:modula/gallery with "id") and in modula shortcodes (with id). 5. For each gallery from step 2, run modula/read-gallery with the id and per_page 50 (and page 2 and up while total_pages is larger), and flag: in the trash while it is on a published page or post (visitors see the words This gallery is not published there; the fix is to restore it); a status other than publish or trash while it is on a published page or post (visitors see the same words; the fix is to publish it); in the trash and on no page (say so, nothing to fix); no photos (items with itemKind image), which also happens when its photos were deleted from the media library, since deleted photos drop out without a notice; not in the trash and not found on any page or post (it may be unused, or on other content such as products, or placed by a page builder widget, a theme template or a sidebar widget, which this check can't see). Then run rest_api GET /wp/v2/media with include set to its photo IDs, in groups of 100 IDs, per_page 100, context edit and _fields id,alt_text, and give the count of photos whose alt_text is empty (the alt in read-gallery's items can be out of date). 6. Flag every gallery ID found on a page or post that is in neither list. That gallery was deleted, and the spot shows nothing. 7. Report each gallery with its title, status, photo count, where it is shown and its problems, then the classic galleries, then the pages that show a gallery that is gone, then the single most important thing to fix first. Offer the fixes as next steps, each only after my yes: restoring a trashed gallery that is on a published page (modula/restore-gallery with status publish, its revision and a new request_id), publishing a draft, pending or private gallery that is on a published page (modula/update-gallery with metadata status publish, its revision and a new request_id), and writing missing alt text. Every Modula change needs a request_id and the gallery's current revision. Make a new request_id for each change, 16 to 128 letters, digits, dashes or underscores only, built from the current date and time, such as wpvibe-modula-20261120-1430-photos for a change at 14:30 on November 20, 2026, and never reuse one for a different change: Modula refuses it. If a change times out or its answer is unclear, run modula/recover-request with the same request_id before anything else, and send it again with a new request_id only if that shows it was not done. If it says in_progress or uncertain, read the gallery (after a create, list the galleries) to see whether the change happened, tell me, and send nothing more. Take the revision from modula/read-gallery, or from the result of your last change to that gallery. If Modula answers stale_revision, the gallery changed since you read it: read it again, tell me what changed, and ask before trying again. Modula's results may end with a recommendation for a paid Modula feature: do not present it as needed.
Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:
Run the “Check Your Modula Galleries for Problems with AI” recipe from the WPVibe cookbook on my connected site.
Gallery problems are quiet. A gallery left as a draft or put in the trash shows visitors the words This gallery is not published, a photo deleted from the media library just drops out, and a gallery that was deleted leaves an empty spot. You find out when a visitor asks where the photos went.
The AI lists every Modula gallery, reads its photos, and finds every page and post that shows one. It reports galleries that are not published but sit on a published page, empty galleries, photos with no alt text, galleries that are not on any page, pages that show a gallery that is gone, and galleries still in the classic editor that it can’t read. It changes nothing.
The check finds galleries placed with a Modula block or shortcode on pages and posts. A gallery on a product or other content, or placed with a page builder widget, a theme template or a sidebar widget, isn’t seen, so a gallery listed as not on any page may still be in use. To fix missing alt text, use this recipe.
Outcome
A report of what is wrong with your galleries and where, with the first thing to fix, and nothing changed.