PHP Warning: Creating default object from empty value
-
Hello,
My website is on WP 5.5, today I noticed many php warnings in WP error log about your plugin. It says
PHP Warning: Creating default object from empty value in /home/kriminalisty.ru/wp-content/plugins/disable-cart-fragments/disable-cart-fragments.php on line 111
I have to disable the plugin until the issue isn’t fixed because the error log grows very fast.
How to fix this? Thank you.The page I need help with: [log in to see the link]
-
Hi @premadeweb,
Can you go to the Info tab in your Tools > Site Health page (/wp-admin/site-health.php?tab=debug), click the “Copy site info to clipboard” button and paste it here?
Hi,
same here, tons of warnings:
HP Warning: Creating default object from empty value in […]/wp-content/plugins/disable-cart-fragments/disable-cart-fragments.php on line 111
Hosting is going nuts
m
Hi @marco1970,
Same thing I told @premadeweb earlier: Can you go to the Info tab in your Tools > Site Health page (/wp-admin/site-health.php?tab=debug), click the “Copy site info to clipboard” button and paste it here?
I really can’t help either of you if you don’t give me any details :).
Hi,
I am getting the same thing and below the error messages is the debug info you requested.
Thanks![26-Nov-2020 08:27:04 UTC] PHP Notice: Undefined index: wc-cart-fragments in /var/www/web25284762/html/wp-content/plugins/disable-cart-fragments/disable-cart-fragments.php on line 110
[26-Nov-2020 08:27:04 UTC] PHP Notice: Trying to get property ‘src’ of non-object in /var/www/web25284762/html/wp-content/plugins/disable-cart-fragments/disable-cart-fragments.php on line 110
[26-Nov-2020 08:27:04 UTC] PHP Warning: Creating default object from empty value in /var/www/web25284762/html/wp-content/plugins/disable-cart-fragments/disable-cart-fragments.php on line 111
[26-Nov-2020 08:29:05 UTC] PHP Notice: Undefined index: wc-cart-fragments in /var/www/web25284762/html/wp-content/plugins/disable-cart-fragments/disable-cart-fragments.php on line 110
[26-Nov-2020 08:29:05 UTC] PHP Notice: Trying to get property ‘src’ of non-object in /var/www/web25284762/html/wp-content/plugins/disable-cart-fragments/disable-cart-fragments.php on line 110
[26-Nov-2020 08:29:05 UTC] PHP Warning: Creating default object from empty value in /var/www/web25284762/html/wp-content/plugins/disable-cart-fragments/disable-cart-fragments.php on line 111
[26-Nov-2020 08:29:12 UTC] PHP Notice: Undefined index: wc-cart-fragments in /var/www/web25284762/html/wp-content/plugins/disable-cart-fragments/disable-cart-fragments.php on line 110
[26-Nov-2020 08:29:12 UTC] PHP Notice: Trying to get property ‘src’ of non-object in /var/www/web25284762/html/wp-content/plugins/disable-cart-fragments/disable-cart-fragments.php on line 110
[26-Nov-2020 08:29:12 UTC] PHP Warning: Creating default object from empty value in /var/www/web25284762/html/wp-content/plugins/disable-cart-fragments/disable-cart-fragments.php on line 111
[26-Nov-2020 08:29:38 UTC] PHP Notice: Undefined index: wc-cart-fragments in /var/www/web25284762/html/wp-content/plugins/disable-cart-fragments/disable-cart-fragments.php on line 110
[26-Nov-2020 08:29:38 UTC] PHP Notice: Trying to get property ‘src’ of non-object in /var/www/web25284762/html/wp-content/plugins/disable-cart-fragments/disable-cart-fragments.php on line 110
[26-Nov-2020 08:29:38 UTC] PHP Warning: Creating default object from empty value in /var/www/web25284762/html/wp-content/plugins/disable-cart-fragments/disable-cart-fragments.php on line 111
[26-Nov-2020 08:29:43 UTC] PHP Notice: Undefined index: wc-cart-fragments in /var/www/web25284762/html/wp-content/plugins/disable-cart-fragments/disable-cart-fragments.php on line 110
[26-Nov-2020 08:29:43 UTC] PHP Notice: Trying to get property ‘src’ of non-object in /var/www/web25284762/html/wp-content/plugins/disable-cart-fragments/disable-cart-fragments.php on line 110
[26-Nov-2020 08:29:43 UTC] PHP Warning: Creating default object from empty value in /var/www/web25284762/html/wp-content/plugins/disable-cart-fragments/disable-cart-fragments.php on line 111### wp-core ### version: 5.5.3 site_language: en_US user_language: en_US permalink: /%postname%/ https_status: false user_registration: 1 default_comment_status: open multisite: false user_count: 5 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /var/www/web25284762/html wordpress_size: 37.78 GB (40569669322 bytes) uploads_path: /var/www/web25284762/html/wp-content/uploads uploads_size: 12.56 GB (13491395675 bytes) themes_path: /var/www/web25284762/html/wp-content/themes themes_size: 12.18 MB (12771808 bytes) plugins_path: /var/www/web25284762/html/wp-content/plugins plugins_size: 296.94 MB (311364049 bytes) database_size: 330.27 MB (346307999 bytes) total_size: 50.97 GB (54731508853 bytes) ### wp-dropins (1) ### db.php: true ### wp-active-theme ### name: (flatsome) version: undefined author: Anonymous author_website: (undefined) parent_theme: none theme_features: core-block-patterns, post-thumbnails, woocommerce, title-tag, automatic-feed-links, customize-selective-refresh-widgets, sensei, html5, menus, post-formats, wc-product-gallery-lightbox, widgets theme_path: /var/www/web25284762/html/wp-content/themes/flatsome ### wp-mu-plugins (2) ### eos-deactivate-plugins.php: author: (undefined), version: (undefined) Health Check Troubleshooting Mode: author: (undefined), version: 1.7.1 ### wp-plugins-active (55) ### Advanced Custom Fields: version: 5.9.3, author: Elliot Condon Advanced Shipment Tracking for WooCommerce: version: 3.1.4, author: zorem (latest version: 3.1.5) Autoptimize: version: 2.7.8, author: Frank Goossens (futtta) Backup: version: 1.5.1, author: BackupGuard (latest version: 1.5.1.1) Better Categories: version: 1.2, author: CMS Expert Booster for WooCommerce: version: 5.3.5, author: Pluggabl LLC Category Order and Taxonomy Terms Order: version: 1.5.7.3, author: Nsp-Code Conditional Shipping for WooCommerce: version: 2.1.1, author: Lauri Karisola / WooElements.com Customer Manager: version: 2.3, author: phoeniixx Custom Order Numbers for WooCommerce: version: 1.2.11, author: Tyche Softwares DHL for WooCommerce: version: 2.3, author: DHL Disable Cart Fragments: version: 1.21, author: Optimocha ELEX Hide WooCommerce Shipping Methods (BASIC): version: 1.1.2, author: ELEXtensions EU VAT for WooCommerce: version: 2.2.2, author: WPWhale FedEx WooCommerce Extension (BASIC): version: 2.1.7, author: PluginHive Freesoul Deactivate Plugins: version: 1.8.0, author: Jose Mortellaro Geolocation IP Detection: version: 3.1.2, author: Yellow Tree (Benjamin Pick) Germanized for WooCommerce: version: 3.2.3, author: vendidero Grid/List View for WooCommerce: version: 1.1.0.8, author: BeRocket Health Check & Troubleshooting: version: 1.4.5, author: The www.remarpro.com community Increase Maximum Upload File Size: version: 2.0.4, author: Imagify Loco Translate: version: 2.4.6, author: Tim Whitlock Members: version: 3.1.3, author: MemberPress Memcached Redux: version: 0.1.7, author: Scott Taylor - uses code from Ryan Boren, Denis de Bernardy, Matt Martz, Mike Schroder, Mika Epstein, Mohammad Jangda Menu Icons: version: 0.12.5, author: ThemeIsle Ninja Forms: version: 3.4.32, author: Saturday Drive Password Protected: version: 2.4, author: Ben Huson Product Category Tree: version: 2.4, author: AWESOME TOGI Query Monitor: version: 3.6.5, author: John Blackbourn Redux: version: 4.1.23, author: Redux.io + Dovy Paukstys Relevanssi: version: 4.9.0, author: Mikko Saari Role Based Price For WooCommerce: version: 3.3.7, author: Varun Sridharan Simple Custom Post Order: version: 2.5.2, author: Colorlib Sliced Invoices: version: 3.8.12, author: Sliced Invoices Slider Revolution: version: 6.1.7, author: ThemePunch Smart Slider 3: version: 3.4.1.13, author: Nextend Smush: version: 3.7.3, author: WPMU DEV Smush Nonstop: version: 2.0.0, author: obiPlabon States, Cities, and Places for WooCommerce: version: 1.2.11, author: Kingsley Ochu TranslatePress - Disable Gettext Translation: version: 1.0.1, author: Cozmoslabs, Razvan Mocanu TranslatePress - Multilingual: version: 1.8.7, author: Cozmoslabs, Razvan Mocanu, Madalin Ungureanu, Cristophor Hurduban WC - APG Free Shipping: version: 2.4.1.2, author: Art Project Group WC - APG Weight Shipping: version: 2.3.2.2, author: Art Project Group Webcraftic Clearfy – WordPress optimization plugin: version: 1.8.0, author: Webcraftic <[email protected]> WooCommerce: version: 4.7.1, author: Automattic WooCommerce PDF Invoices & Packing Slips: version: 2.7.2, author: Ewout Fernhout Woo Invoices: version: 1.2.1, author: Sliced Invoices WP-Optimize - Clean, Compress, Cache: version: 3.1.4, author: David Anderson, Ruhani Rabin, Team Updraft WP Fastest Cache: version: 0.9.1.2, author: Emre Vona WP Mail SMTP: version: 2.5.1, author: WPForms WP Rollback: version: 1.7.1, author: Impress.org WP Sheet Editor (Premium): version: 2.22.0, author: WP Sheet Editor WP Sheet Editor - WC Role Based Price: version: 1.0.0, author: WP Sheet Editor WP Sitemap Page: version: 1.6.2, author: Tony Archambeau Yoast SEO: version: 15.2.1, author: Team Yoast (latest version: 15.3) ### wp-plugins-inactive (15) ### Alfahosting Sender Mail Plugin: version: 1.0, author: Alfahosting GmbH Conditional Payments for WooCommerce: version: 2.2.2, author: Lauri Karisola / WooElements.com Contact Form 7: version: 5.3, author: Takayuki Miyoshi Contact Form 7 - Dynamic Text Extension: version: 2.0.3, author: Chris Mavricos, SevenSpark Cool Tag Cloud: version: 2.21, author: WPKube (latest version: 2.22) Custom Taxonomy Order: version: 3.2.1, author: Marcel Pol DS Woocommerce Next Previous Category Products: version: 0.1, author: https://dotsquares.com/ Iks Menu: version: 1.8.8, author: IksStudio TranslatePress - Extra Languages Add-on: version: 1.0.1, author: Cozmoslabs, Razvan Mocanu TranslatePress - SEO Pack Add-on: version: 1.1.9, author: Cozmoslabs, Razvan Mocanu WooCommerce: Show Empty Categories: version: 1.1.5, author: Maje Media LLC WooCommerce Extra Product Sorting Options: version: 2.8.4, author: SkyVerge WooCommerce Payrexx Gateway: version: 1.6.28, author: Payrexx WP Post Nav: version: 0.1.2, author: jo4nny8 YITH WooCommerce Wishlist: version: 3.0.16, author: YITH ### wp-media ### image_editor: WP_Image_Editor_Imagick imagick_module_version: 1673 imagemagick_version: ImageMagick 6.8.9-9 Q16 x86_64 2019-12-29 https://www.imagemagick.org imagick_limits: imagick::RESOURCETYPE_AREA: 96 GB imagick::RESOURCETYPE_DISK: -1 imagick::RESOURCETYPE_FILE: 6144 imagick::RESOURCETYPE_MAP: 96 GB imagick::RESOURCETYPE_MEMORY: 48 GB imagick::RESOURCETYPE_THREAD: 1 gd_version: bundled (2.1.0 compatible) ghostscript_version: 9.26 ### wp-server ### server_architecture: Linux 4.15.18-13-pve x86_64 httpd_software: Apache php_version: 7.4.3 64bit php_sapi: cgi-fcgi max_input_variables: 1000 time_limit: 60 memory_limit: 512M max_input_time: 60 upload_max_size: 64M php_post_max_size: 8M curl_version: 7.38.0 OpenSSL/1.0.1t suhosin: false imagick_availability: true server-headers: date: Thu, 26 Nov 2020 09:19:32 GMT server: Apache pragma: no-cache expires: Wed, 11 Jan 1984 05:00:00 GMT cache-control: no-cache, must-revalidate, max-age=0 set-cookie: PHPSESSID=b6d96f62237dd122776eec2525946c58; path=/ vary: Accept-Encoding content-encoding: gzip content-type: text/html; charset=UTF-8 htaccess_extra_rules: true ### wp-database ### extension: mysqli server_version: 5.7.25 client_version: mysqlnd 7.4.3 ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /var/www/web25284762/html/wp-content WP_PLUGIN_DIR: /var/www/web25284762/html/wp-content/plugins WP_MAX_MEMORY_LIMIT: 512M WP_DEBUG: true WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: true SCRIPT_DEBUG: true WP_CACHE: false CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_LOCAL_DEV: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable mu-plugins: writable ### wp_mail_smtp ### version: 2.5.1 license_key_type: lite debug: No debug notices found. db_tables: wp530_wpmailsmtp_tasks_meta
- The topic ‘PHP Warning: Creating default object from empty value’ is closed to new replies.