[wp-trac] [WordPress Trac] #62244: Just-in-time translation loading for plugins/themes not in the directory
WordPress Trac
noreply at wordpress.org
Wed Dec 4 01:14:37 UTC 2024
#62244: Just-in-time translation loading for plugins/themes not in the directory
--------------------------------------+-------------------------
Reporter: swissspidy | Owner: swissspidy
Type: enhancement | Status: reopened
Priority: normal | Milestone: 6.8
Component: I18N | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-dev-note | Focuses:
--------------------------------------+-------------------------
Comment (by peterwilsoncc):
@swissspidy [59479] is causing fatal errors for some plugins, I am seeing
it with WooCommerce subscriptions. On the WordPress/WordPress repo,
[https://github.com/WordPress/WordPress/commit/8f08a8e2e1ded9382ecb2072431e48d65e48f54b
8f08a8e2e1] (the prior commit) is running fine but once I checkout
[https://github.com/WordPress/WordPress/commit/789d1d9c2e9de0a82ab6bb59393c2a2dc829e11f
789d1d9c2e9] (the commit above), I am getting fatal errors
Stack trace is as follows:
{{{
[04-Dec-2024 01:10:47 UTC] PHP Fatal error: Uncaught Error: Call to
undefined function get_plugins() in /vagrant/content/plugins/woocommerce-
subscriptions/includes/class-wc-subscriptions-dependency-manager.php:109
Stack trace:
#0 /vagrant/content/plugins/woocommerce-subscriptions/includes/class-wc-
subscriptions-dependency-manager.php(73):
WC_Subscriptions_Dependency_Manager->get_woocommerce_active_version()
#1 /vagrant/content/plugins/woocommerce-subscriptions/includes/class-wc-
subscriptions-dependency-manager.php(45):
WC_Subscriptions_Dependency_Manager->is_woocommerce_version_supported()
#2 /vagrant/content/plugins/woocommerce-subscriptions/woocommerce-
subscriptions.php(39):
WC_Subscriptions_Dependency_Manager->has_valid_dependencies()
#3 /vagrant/wp-build/wp-settings.php(526):
include_once('/vagrant/conten...')
#4 phar:///usr/local/src/wp-cli/bin/wp/vendor/wp-cli/wp-
cli/php/WP_CLI/Runner.php(1374): require('/vagrant/wp-bui...')
#5 phar:///usr/local/src/wp-cli/bin/wp/vendor/wp-cli/wp-
cli/php/WP_CLI/Runner.php(1293): WP_CLI\Runner->load_wordpress()
#6 phar:///usr/local/src/wp-cli/bin/wp/vendor/wp-cli/wp-
cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#7 phar:///usr/local/src/wp-cli/bin/wp/vendor/wp-cli/wp-
cli/php/bootstrap.php(83):
WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
#8 phar:///usr/local/src/wp-cli/bin/wp/vendor/wp-cli/wp-cli/php/wp-
cli.php(32): WP_CLI\bootstrap()
#9 phar:///usr/local/src/wp-cli/bin/wp/php/boot-phar.php(20):
include('phar:///usr/loc...')
#10 /usr/local/src/wp-cli/bin/wp(4): include('phar:///usr/loc...')
#11 {main}
thrown in /vagrant/content/plugins/woocommerce-subscriptions/includes
/class-wc-subscriptions-dependency-manager.php on line 109
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62244#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list