Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multisite with wpml on clear cache raises warning #340

Open
sissibieber opened this issue May 14, 2024 · 0 comments
Open

multisite with wpml on clear cache raises warning #340

sissibieber opened this issue May 14, 2024 · 0 comments

Comments

@sissibieber
Copy link

I have a multisite installation, where all sites except 1 are using wpml, and others not. When I update a plugin (I have selected the option to delete the cache when a plugin is updated), I get the following warning - strange enough for the blog id 3 which has wpml not active. I also raised this issue with wpml support
wpml has a filter on "url_to_postid()" function, which should not be triggered when the plugin is not active.
latest version of cache-enabler, wpml and wp

[13-May-2024 13:24:58 UTC] PHP Warning: Trying to access array offset on value of type bool in /usr/www/users/client/content/plugins/sitepress-multilingual-cms/inc/absolute-links/absolute-links.class.php on line 109 [13-May-2024 13:24:58 UTC] Backtrace (BlogId: 3, PostId: 0) from warning 'Trying to access array offset on value of type null' at /usr/www/users/client/content/plugins/sitepress-multilingual-cms/inc/absolute-links/absolute-links.class.php 109: /usr/www/users/client/content/plugins/sitepress-multilingual-cms/sitepress.class.php 4267 calling _process_generic_text() | /usr/www/users/client/cms/wp-includes/class-wp-hook.php 324 calling url_to_postid() | /usr/www/users/client/cms/wp-includes/plugin.php 205 calling apply_filters() | /usr/www/users/client/cms/wp-includes/rewrite.php 502 calling apply_filters() | /usr/www/users/client/content/plugins/cache-enabler/inc/cache_enabler_disk.class.php 232 calling url_to_postid() | /usr/www/users/client/content/plugins/cache-enabler/inc/cache_enabler.class.php 2175 calling cache_iterator() | /usr/www/users/client/content/plugins/cache-enabler/inc/cache_enabler.class.php 1995 calling clear_page_cache_by_url() | /usr/www/users/client/content/plugins/cache-enabler/inc/cache_enabler.class.php 1617 calling clear_page_cache_by_site() | /usr/www/users/client/content/plugins/cache-enabler/inc/cache_enabler.class.php 612 calling clear_site_cache() | /usr/www/users/client/content/plugins/cache-enabler/inc/cache_enabler.class.php 1592 calling each_site() | /usr/www/users/client/content/plugins/cache-enabler/inc/cache_enabler.class.php 185 calling clear_complete_cache() | /usr/www/users/client/cms/wp-includes/class-wp-hook.php 324 calling on_upgrade() | /usr/www/users/client/cms/wp-includes/class-wp-hook.php 348 calling apply_filters() | /usr/www/users/client/cms/wp-includes/plugin.php 517 calling do_action() | /usr/www/users/client/cms/wp-admin/includes/class-plugin-upgrader.php 421 calling do_action() | /usr/www/users/client/cms/wp-admin/update.php 51 calling bulk_upgrade() | /usr/www/users/client/cms/wp-admin/network/update.php 17 calling require()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant