WidgetCoreWidgetCore Documentation

Troubleshooting

Fixing common WidgetCore problems — installation and activation, missing widgets in the editor, search returning no results, styling issues, FAQ behaviour, updates and performance.

This page collects the problems reported most often, with the quickest way to confirm each cause. Work top to bottom: most issues are resolved in the first two sections.

Installation and activation

SymptomCauseFix
The plugin does not appear in the listWrong folder nestingThe path must be wp-content/plugins/widgetcore/widgetcore.php
“Requires Elementor” noticeElementor inactiveActivate Elementor first
PHP version errorPHP below 7.4Upgrade PHP in your hosting panel
White screen after activatingA PHP fatal from another pluginEnable WP_DEBUG, read the error, deactivate the conflicting plugin
The version in the list is oldBrowser or object cacheHard refresh; clear the site cache

Widgets missing in the editor

  1. Confirm Elementor is active

    The widget category is registered on an Elementor hook; without Elementor nothing appears.

  2. Search the panel

    Type “WidgetCore”, “faq” or “search” in the widget panel search.

  3. Check for a category filter

    Some themes or addons hide categories; look for a filter in the panel.

  4. Hard refresh the editor

    Ctrl + Shift + R (Cmd + Shift + R on macOS) clears the editor cache.

  5. Regenerate Elementor CSS

    “Elementor → Tools → Regenerate CSS & Data”.

SymptomCauseFix
The category exists but is emptyA fatal error while loading a widget classCheck debug.log
The widget appears but shows nothing in previewThe preview assets did not loadRefresh; check that wgcr-search styles/scripts are requested
Another plugin's category replaced oursA conflict on category registrationDeactivate the other plugin to confirm

Search returns no results

SymptomCauseFix
Nothing happens while typingThe query is shorter than 2 charactersType at least two characters (minChars)
“No results found.” for a term you know existsThe Source is a different post typeSet “Source” to the right post type, or “All post types”
No results for a draft or private postOnly publish and non-password posts are searchedPublish the post
No results with a category filterThe term ids do not match, or terms_op is wrongCheck the ids and whether you want include or exclude
The panel shows “Error fetching results.”The REST request failedSee the quick REST diagnosis below
Results appear but the count is wrongCached headersExclude the route from page caching

Quick REST diagnosis

Open the endpoint directly in a browser:

https://example.com/wp-json/wgcr/v1/search?q=test&limit=5
ResponseMeaningFix
A JSON array of resultsThe endpoint works; the problem is in the widget settingsCheck “Source”, “Date filter” and the term filters
[] (empty array)The query matched nothingTry another term, or widen the source
rest_invalid_paramq is missing or shorter than 2 charactersAdd a longer q
rest_cannot_accessThe REST API is blockedCheck security plugins and server rules
A 404 pagePermalinks are not set“Settings → Permalinks”, save once
A PHP error pageA server-side fatalRead debug.log

Then repeat the same request from the browser's network tab while typing in the widget, and compare the URL, the status and the response headers.

Appearance and styling

SymptomCauseFix
The widget looks unstyledsearch.css did not loadClear caches; check the network tab for search.css?ver=0.0.7
Old styles after an updateA cached stylesheetPurge the cache; the version query string forces a new fetch
Columns collapse to oneThe viewport is below 782pxExpected responsive behaviour
Masonry looks unevenMasonry and equal height are both onEnable only one
The panel is too narrow in List modeThe container width limits itWiden the container, or use the “as wide as the field” snippet on the styling page
A custom template is unstyledThe template CSS did not loadRegenerate Elementor CSS and clear caches

FAQ widget

SymptomCauseFix
Items do not open at allThe widget script did not runCheck for JS errors in the console; clear caches
A long answer is cut offThe script is not running, so the no-JS cap (max-height: 640px) appliesFix the script loading; with it running, the height is measured from the content
Two items open at onceThe mode is “Toggle”Switch to “Accordion”
The icon does not rotateThe icon type is not compatibleUse “Plus”, “Chevron” or a custom icon with the rotation control
No FAQPage schemaThe control is off, or this is the second FAQ widget on the pageEnable the control; keep one schema-emitting widget per page
The heading level looks wrong in the outlineThe “Question heading tag” controlChoose H2, H3 or H4 to fit your page structure

Updates

SymptomCauseFix
A new release never appearsWordPress checks every 12 hoursClick the “Check for updates” link on the Plugins screen
Download fails on a private repositoryNo credentialsDefine WGCR_GITHUB_TOKEN in wp-config.php
cURL error 28 / timeoutOutbound requests blockedAllow api.github.com and github.com in the firewall
“View details” is emptyThe release has no notesAdd release notes on GitHub
The plugin folder changed nameThe release ZIP structureThe package must contain a widgetcore/ folder

Full details on the updates page.

Performance

SymptomCauseFix
Slow first keystroke responseA heavy query (rand, a big tax_query, an unindexed meta_query)See the query and filters page
Large payloadslimit too high, or thumbnails onLower “Items per page”, or turn thumbnails off
Slow with a custom templateThe template is rendered per result on the serverKeep 6 to 9 items per page
Many image requestsThumbnails at full sizeUse a smaller registered image size in a custom template
Repeated identical queriesNo cachingCache the route response for anonymous visitors

Quick diagnosis checklist

  1. Elementor is active and the category is visible

  2. The endpoint answers: /wp-json/wgcr/v1/search?q=test

  3. The widget's Source matches the content you expect

  4. No JavaScript errors in the browser console

  5. Caches cleared and the asset version is the current plugin version

  6. debug.log has no fatal errors

If all six pass and something still misbehaves, note the plugin version, WordPress version, Elementor version and the exact steps, then open an issue on the GitHub repository — that information is what makes a report actionable.