The third parameter is expected to be an array, but a string is passed instead. This produces a depreciation notice throughout wp-admin.
It’s very easy to fix thanks to Query Monitor – just edit one line.
In wpengine-geoip/class-geoip.php, line 177 has a call to wp_localize_script().
Wrapping the third parameter in an array fixes it.
So it should read:
wp_localize_script( self::TEXT_DOMAIN . ‘-admin-js’, ‘nonce’, array(wp_create_nonce( self::TEXT_DOMAIN ) ));
If that change gets pushed to the repo, then all users of the plugin will benefit when the php8 switchover happens.
Like many others are reporting, my php error log file is being filled with the following messages.
[10-Oct-2024 20:13:11 UTC] Automattic\WooCommerce\Admin\Features\Navigation\Menu::add_plugin_item is deprecated since 9.3 with no alternative. Navigation classes will be removed in WooCommerce 9.4
[10-Oct-2024 20:13:11 UTC] Automattic\WooCommerce\Admin\Features\Navigation\Screen::register_post_type is deprecated since 9.3 with no alternative. Navigation classes will be removed in WooCommerce 9.4
I have turned off and on all my plugins and isolated it to the the WooCommerce Subscriptions plugin.
Considering the Subscriptions plugin is developed by WooCommerce it would be great if you could get it playing nicely with WooCommerce.
All my plugins are up to date.
If you have any advice to resolve this, or if you could quickly roll out an update, it would be great.
]]>Automattic\WooCommerce\Admin\Features\Navigation\Menu::add_plugin_item is deprecated since 9.3 with no alternative. Navigation classes will be removed in WooCommerce 9.4
I hope somebody can help. Thank you
I did a site status and got the following details:
System Status Report
### WordPress Environment ###
WordPress address (URL): [Redacted]
Site address (URL): [Redacted]
WC Version: 9.3.1
Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.
Action Scheduler Version: ✔ 3.8.1
Log Directory Writable: ✔
WP Version: 6.6.2
WP Multisite: –
WP Memory Limit: 524 MB
WP Debug Mode: –
WP Cron: ✔
Language: en_US
External object cache: –
### Server Environment ###
Server Info: Apache
PHP Version: 8.1.29
PHP Post Max Size: 512 MB
PHP Time Limit: 300
PHP Max Input Vars: 1000
cURL Version: 8.9.1
OpenSSL/1.1.1w
SUHOSIN Installed: –
MySQL Version: 10.3.39-MariaDB
Max Upload Size: 200 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔
### Database ###
[REDACTED]
### Post Type Counts ###
ai1ec_event: 14
amn_mi-lite: 2
asp-products: 1
attachment: 1782
calp_event: 1
custom-css-js: 1
custom_css: 1
destination: 1
espresso_attendees: 457
espresso_events: 36
espresso_venues: 1
event: 1
feedback: 41
flamingo_contact: 1044
flamingo_inbound: 4884
gce_feed: 1
genesis_custom_block: 1
giftcard: 4
gift_card: 17
location: 3
mep_events: 1
mep_events_attendees: 1
nav_menu_item: 109
nf_sub: 161
oembed_cache: 660
page: 77
post: 129
postman_sent_mail: 250
post_grid: 1
product: 124
product_variation: 116
pt_view: 7
revision: 14
shop_coupon: 1
shop_order: 249
shop_order_refund: 8
simple-pay: 1
tour: 1
tribe_events: 1
tribe_organizer: 1
tribe_venue: 1
tss_slider: 1
w4pl: 2
wapf_product: 1
wcpa_pt_forms: 2
woo_discount: 3
woo_discount_cart: 1
wpcode: 3
wpforms: 2
wpm-testimonial: 51
wp_block: 2
wp_global_styles: 1
wp_navigation: 1
### Security ###
Secure connection (HTTPS): ✔
Hide errors from visitors: ✔
### Active Plugins (39) ###
Shield Security: by Shield Security – 20.0.8
Advanced Product Fields for WooCommerce: by StudioWombat – 1.6.10
Akismet Anti-spam: Spam Protection: by Automattic - Anti-spam Team – 5.3.3
Child Theme Configurator: by Lilaea Media – 2.6.6
Content Slider Block: by bPlugins LLC – 3.1.4
CookieYes | GDPR Cookie Consent: by CookieYes – 3.2.6
Genesis Blocks: by StudioPress – 3.1.5
Genesis Connect for WooCommerce: by StudioPress – 1.1.2
Genesis Custom Blocks: by Genesis Custom Blocks – 1.7.0
Genesis Simple Edits: by StudioPress – 2.3.1
Genesis Widget Column Classes: by Jory Hogeveen – 1.3.1
Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 9.0.1
reCaptcha by BestWebSoft: by BestWebSoft – 1.75
Site Kit by Google: by Google – 1.135.0
Gutenberg: by Gutenberg Team – 19.2.0
Health Check & Troubleshooting: by The www.ads-software.com community – 1.7.1
WPCode Lite: by WPCode – 2.2.1
Mailchimp for WooCommerce: by Mailchimp – 4.4
Ninja Forms: by Saturday Drive – 3.8.15
Payment Methods by Product & Country for WooCommerce: by WPFactory – 1.7.17
Post Views Counter: by dFactory – 1.4.7
Really Simple SSL: by Really Simple Plugins – 8.3.0.1
Redirection: by John Godley – 5.5.0
Shortcodes Ultimate: by Vova Anokhin – 7.2.2
Simple Social Icons: by OsomPress – 3.2.5
Strong Testimonials: by WPChill – 3.1.20
Spectra: by Brainstorm Force – 2.15.2
UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
DavidAnderson – 1.24.4
Product Customer List for WooCommerce: by Kokomo – 3.1.7
Discount Rules Core: by Flycart – 2.6.6
WooCommerce.com Update Manager: by Automattic – 1.0.3
WooCommerce Checkout Manager: by QuadLayers – 7.5.8
WooCommerce Coupon Shortcodes: by itthinx – 2.6.0
WooCommerce Stripe Gateway: by WooCommerce – 8.6.1
WooCommerce: by Automattic – 9.3.1
Yoast SEO: by Team Yoast – 23.4
WP-Optimize - Clean, Compress, Cache: by David Anderson
Ruhani Rabin
Team Updraft – 3.6.0
Smush: by WPMU DEV – 3.16.6
YITH WooCommerce Gift Cards: by YITH – 4.17.0
### Inactive Plugins (0) ###
### Dropin Plugins () ###
advanced-cache.php: advanced-cache.php
maintenance.php: maintenance.php
### Must Use Plugins (1) ###
Health Check Troubleshooting Mode: by – 1.9.0
### Settings ###
Legacy API Enabled: –
Force SSL: ✔
Currency: USD ($)
Currency Position: left
Thousand Separator: ,
Decimal Separator: .
Number of Decimals: 2
Taxonomies: Product Types: external (external)
flycart-gift-card (flycart-gift-card)
gift-card (gift-card)
grouped (grouped)
pw gift card (pw-gift-card)
simple (simple)
subscription (subscription)
variable (variable)
variable subscription (variable-subscription)
wgm_gift_card (wgm_gift_card)
Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
exclude-from-search (exclude-from-search)
featured (featured)
outofstock (outofstock)
rated-1 (rated-1)
rated-2 (rated-2)
rated-3 (rated-3)
rated-4 (rated-4)
rated-5 (rated-5)
Connected to WooCommerce.com: ✔
Enforce Approved Product Download Directories: –
HPOS feature enabled: –
Order datastore: WC_Order_Data_Store_CPT
HPOS data sync enabled: –
### Logging ###
Enabled: ✔
Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2
Retention period: 30 days
Level threshold: –
Log directory size: 19 KB
### WC Pages ###
Shop base: #3624 - /shop/
Cart: #3625 - /cart/ - Contains the [woocommerce_cart] shortcode
Checkout: #3626 - /checkout/ - Contains the [woocommerce_checkout] shortcode
My account: #3627 - /my-account/
Terms and conditions: #12811 - /sales-terms/
### Theme ###
Name: Magazine Pro
Version: 3.7.0
Author URL: https://www.studiopress.com/
Child Theme: ✔
Parent Theme Name: Genesis
Parent Theme Version: 3.5.0
Parent Theme Author URL: https://www.studiopress.com/
WooCommerce Support: ✔
### Templates ###
Overrides: –
### Admin ###
Enabled Features: activity-panels
analytics
product-block-editor
coupons
core-profiler
customize-store
customer-effort-score-tracks
import-products-task
experimental-fashion-sample-products
shipping-smart-defaults
shipping-setting-tour
homescreen
marketing
mobile-app-banner
navigation
onboarding
onboarding-tasks
pattern-toolkit-full-composability
product-custom-fields
remote-inbox-notifications
remote-free-extensions
payment-gateway-suggestions
printful
shipping-label-banner
subscriptions
store-alerts
transient-notices
woo-mobile-welcome
wc-pay-promotion
wc-pay-welcome-page
launch-your-store
Disabled Features: experimental-blocks
minified-js
product-pre-publish-modal
settings
async-product-editor-category-field
product-editor-template-system
blueprint
reactify-classic-payments-settings
Daily Cron: ✔ Next scheduled: 2024-09-16 20:36:32 -07:00
Options: ✔
Notes: 217
Onboarding: completed
### Action Scheduler ###
Complete: 159
Oldest: 2024-08-16 13:04:02 -0700
Newest: 2024-09-16 11:45:57 -0700
Failed: 90
Oldest: 2020-04-15 04:03:04 -0700
Newest: 2024-06-18 11:38:15 -0700
Pending: 1
Oldest: 2024-09-16 14:14:50 -0700
Newest: 2024-09-16 14:14:50 -0700
### Status report information ###
Generated at: 2024-09-16 11:55:03 -07:00
]]>I’m using the last version of your plugin with Vikinger Theme, but I encounter these errors :
Deprecated: Creation of dynamic property BP_Verified_Member_Meta_Box::$name is deprecated in /home/hake4936/vridayorg/wp-content/plugins/bp-verified-member/admin/meta-box/class-bp-verified-member-meta-box.php on line 26
Deprecated: Creation of dynamic property BP_Verified_Member_Meta_Box::$nonce_name is deprecated in /home/hake4936/vridayorg/wp-content/plugins/bp-verified-member/admin/meta-box/class-bp-verified-member-meta-box.php on line 27
Deprecated: Creation of dynamic property BP_Verified_Member_Meta_Box::$nonce_action is deprecated in /home/hake4936/vridayorg/wp-content/plugins/bp-verified-member/admin/meta-box/class-bp-verified-member-meta-box.php on line 28
Deprecated: Creation of dynamic property BP_Verified_Member_Meta_Box::$meta_keys is deprecated in /home/hake4936/vridayorg/wp-content/plugins/bp-verified-member/admin/meta-box/class-bp-verified-member-meta-box.php on line 30
[08-Aug-2024 23:37:25 UTC] All-in-One Event Calendar: Creation of dynamic property Ai1ec_Scheduling_Utility::$_updated is deprecated @ /myhome/www/html/wp-content/plugins/all-in-one-event-calendar/lib/scheduling/utility.php:45 #8192
[08-Aug-2024 23:37:25 UTC] All-in-One Event Calendar: Creation of dynamic property lessc::$formatterName is deprecated @ /myhome/www/html/wp-content/plugins/all-in-one-event-calendar/vendor/lessphp/lessc.inc.php:1952 #8192
[08-Aug-2024 23:37:26 UTC] All-in-One Event Calendar: Creation of dynamic property Ai1ec_Http_Request::$_registry is deprecated @ /myhome/www/html/wp-content/plugins/all-in-one-event-calendar/lib/http/request.php:22 #8192
[08-Aug-2024 23:37:26 UTC] All-in-One Event Calendar: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated @ /myhome/www/html/wp-content/plugins/all-in-one-event-calendar/lib/query/helper.php:156 #8192
[08-Aug-2024 23:37:26 UTC] All-in-One Event Calendar: Return type of Ai1ec_Abstract_Query::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice @ /myhome/www/html/wp-content/plugins/all-in-one-event-calendar/lib/http/request/abstract.php:198 #8192
[08-Aug-2024 23:37:26 UTC] All-in-One Event Calendar: Return type of Ai1ec_Abstract_Query::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice @ /myhome/www/html/wp-content/plugins/all-in-one-event-calendar/lib/http/request/abstract.php:208 #8192
[08-Aug-2024 23:37:26 UTC] All-in-One Event Calendar: Return type of Ai1ec_Abstract_Query::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice @ /myhome/www/html/wp-content/plugins/all-in-one-event-calendar/lib/http/request/abstract.php:215 #8192
[08-Aug-2024 23:37:26 UTC] All-in-One Event Calendar: Return type of Ai1ec_Abstract_Query::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice @ /myhome/www/html/wp-content/plugins/all-in-one-event-calendar/lib/http/request/abstract.php:222 #8192
]]>I have a php error: The woocommerce_get_weight function is deprecated since version 3.0. Replace with wc_get_weight.
Where can I find the file to make the needed correction? I downloaded a new WC file thinking it would correct it, but I was wrong.
]]>The following three items should have appropriate guardrails for null parameters.
1. The function wp_normalize_path( $path) in wp-includes\functions.php can throw the following message for str_replace() if the $path parameter passed to the function happends to be null.
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in wp-includes/functions.php on line 2192
2. The function wp_is_stream( $path ) in wp-includes\functions.php can also throw a similar depreciated message for strpos() if the $path parameter passed to the function happends to be null.
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in wp-includes/functions.php on line 7296
A quick fix to both os these functions could be to add a test for $path
if ($path == null) { return ; }
3. The function plugin_basename( $file ) in in wp-includes\plugin.php can also throw a similar depreciated message if the $file parameter passed to the function happends to be null. Likewise a test for null can stop such depreciated messages being generated when preg_replace is called.
]]>[01-Feb-2024 21:36:58 UTC] PHP Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in .../wp-content/plugins/google-site-kit/includes/Modules/Analytics_4/Report.php on line 112
Thanks so much!
]]>when loading a category or product page, I’m getting the following php notice:
Deprecated: Creation of dynamic property Alg_WC_PQ_Core::$is_wc_version_below_3 is deprecated in /nas/content/live/devukbambooltd/wp-content/plugins/product-quantity-for-woocommerce/includes/class-alg-wc-pq-core.php on line 2643
This is appearing despite disabling wp_debug. Do you have a fix for this to endure it’s fully compatible with PHP 8.2?
]]>Working on a new site and upgraded to PHP8.2 and getting the following in admin
Deprecated: Creation of dynamic property EM_Event::$status_array is deprecated in /home/XXX/public_html/XXX/wp-content/plugins/events-manager/classes/em-event.php on line 503
I realize I have errors enabled as it’s a dev site, but does anyone know anything about this?
Link to overview of issue: https://php.watch/versions/8.2/dynamic-properties-deprecated
Thanks
Daveed
]]>