Ahmad
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Plugins not updatingHi,
A few things commonly cause plugin updates to stop showing. Try these in order:
1. Force a fresh update check
Go to Dashboard → Updates and click Check again. If nothing changes, clear the cached update data. With WP-CLI:wp eval 'delete_site_transient( "update_plugins" ); wp_update_plugins();'Or install a transient-clearing plugin such as WP Crontrol or Transients Manager and delete
update_plugins.2. Check that your server can reach WordPress.org
Go to Tools → Site Health → Status and look for errors about REST API, loopback requests, or “communication with WordPress.org”. A firewall, security plugin, or host restriction can block outgoing requests toapi.wordpress.org, so the update list never refreshes.3. Check wp-config.php
Look for these lines:define( 'DISALLOW_FILE_MODS', true );define( 'WP_HTTP_BLOCK_EXTERNAL', true );Either one can stop updates from appearing or installing. If
WP_HTTP_BLOCK_EXTERNALis on,WP_ACCESSIBLE_HOSTSmust includeapi.wordpress.organd*.wordpress.org.4. Check your PHP version
WordPress won’t offer a plugin update if your PHP or WordPress version is below what that release requires. Elementor’s newer versions require newer PHP than older ones did. Check the “Requires PHP” line on the plugin’s page in the directory, and compare it with the version shown in Site Health → Info → Server.5. Rule out conflicts and caching
- Temporarily deactivate security, caching, and “update manager” plugins and check again.
- If you use an object cache (Redis or Memcached), flush it.
- Make sure the server date and time are correct. A wrong clock can break HTTPS requests.
6. Manual update as a last resort
Download the plugin zip from its page in the directory, deactivate it, and replace the folder over FTP or the file manager. Or runwp plugin update elementor.If it still doesn’t work, please share:
- Your WordPress and PHP versions
- Your hosting type
- Any errors from Site Health
- Whether
DISALLOW_FILE_MODSorWP_HTTP_BLOCK_EXTERNALis set
Forum: Fixing WordPress
In reply to: Add a code library for use in multiple modules?A separate library plugin. Put your autoloader in its own plugin. Since WordPress 6.5 your other plugins can declare it as a dependency in their header:
Requires Plugins: example-libraryWordPress then requires the library plugin to be active before the dependents. Details are in the Plugin Handbook under “Header Requirements”. Note that the slug is matched against the WordPress.org directory, so for a private or GitHub-hosted plugin you’d need the
wp_plugin_dependencies_slugfilter, or checkclass_exists()yourself onplugins_loaded.