Mobile Menu Not Working error in console
-
Hello
My mobile menu is not working. When I check the console in inspect this is the error I get. Can someone fix this?
drop-down-mobile-menu.min.js?ver=3.3.5:1 Uncaught ReferenceError: oceanwpLocalize is not defined at 1 (drop-down-mobile-menu.min.js?ver=3.3.5:1:526) at a (drop-down-mobile-menu.min.js?ver=3.3.5:1:245) at drop-down-mobile-menu.min.js?ver=3.3.5:1:279 at 3.../../constants (drop-down-mobile-menu.min.js?ver=3.3.5:1:5543) at a (drop-down-mobile-menu.min.js?ver=3.3.5:1:245) at o (drop-down-mobile-menu.min.js?ver=3.3.5:1:403) at drop-down-mobile-menu.min.js?ver=3.3.5:1:420
-
Hello @hellog00dbye,
Would you please share a live URL from your issue?
For troubleshooting, please do the following steps and let me know the results:
1- Head over to WP Dashboard > Plugin.
2- Deactivate all plugins.
3- Then, first activate the Ocean Extra plugin.
4- Check your issue.
5- Then, activate your plugins one by one
6- After activation of any plugins, check your issueNote: if you have any cache plugin or server cache(CDN / Browser Cache and Cookies and …), you need to clear its cache contents or disable them to see your changes. Also, don’t forget to click on the regenerate all assets file and data in Elementor > Tools.
Best Regards
Hello @skalanter
I turned off all plugins and the issue still persists.
I’m not using the Ocean Extra plugin.
The website is https://gardencrafted.com
I’ve turned the plugins back on.
What is Uncaught ReferenceError: oceanwpLocalize is not defined?
- This reply was modified 1 year, 6 months ago by hellog00dbye.
Hello @hellog00dbye,
Do you know how we can replicate your steps to arrive at the issue on a fresh WordPress installation? I fully examined the issue you have raised on this topic and could not see it on my end.
Since you may have enabled the CDN on your website, would you please recheck your issue without using the CDN? Please check this screenshot: https://i.postimg.cc/B67cmkyp/image.png.
Please keep us posted.
Best Regards
Hello @@skalanter
I tried disabling cloudflare and it still had the same issue. I changed themes and the hamburger menu works. I think it is the theme’s issue.
Hello @hellog00dbye,
Can you please explain to us step by step how we can reproduce the issue so we can recreate it somewhere other than your website? Could not replicate it on my end.
Also, please provide us with your system environment information. Please navigate to WP Dashboard > Tools > Site Health > Info Tab and click on the button Copy site info to clipboard. You can send the information as code here or upload them to http://pastebin.com/ and get an exclusive link.
Please keep us posted.
Best RegardsHello @skalanter
I don’t know how to replicate it. It just appeared like that or I noticed the hamburger menu was not working.
Below is the system environment information:
### wp-core ### version: 6.0.2 site_language: en_US user_language: en_US timezone: America/Los_Angeles permalink: /%postname%/ https_status: true multisite: false user_registration: 0 blog_public: 1 default_comment_status: undefined environment_type: production user_count: 2 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /www/wwwroot/gardencrafted.com wordpress_size: 617.57 MB (647570409 bytes) uploads_path: /www/wwwroot/gardencrafted.com/wp-content/uploads uploads_size: 194.14 MB (203572264 bytes) themes_path: /www/wwwroot/gardencrafted.com/wp-content/themes themes_size: 27.26 MB (28582833 bytes) plugins_path: /www/wwwroot/gardencrafted.com/wp-content/plugins plugins_size: 300.38 MB (314972208 bytes) database_size: 63.24 MB (66311534 bytes) total_size: 1.17 GB (1261009248 bytes) ### wp-dropins (1) ### advanced-cache.php: true ### wp-active-theme ### name: Neve (neve) version: 3.4.2 author: ThemeIsle author_website: https://themeisle.com parent_theme: none theme_features: core-block-patterns, hfg_support, widgets-block-editor, post-thumbnails, title-tag, automatic-feed-links, custom-logo, html5, customize-selective-refresh-widgets, custom-background, align-wide, editor-color-palette, fl-theme-builder-headers, fl-theme-builder-footers, fl-theme-builder-parts, header-footer-elementor, lifterlms-sidebars, lifterlms, service_worker, starter-content, menus, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, widgets theme_path: /www/wwwroot/gardencrafted.com/wp-content/themes/neve auto_update: Disabled ### wp-themes-inactive (1) ### OceanWP: version: 3.3.5, author: OceanWP, Auto-updates disabled ### wp-plugins-active (26) ### Ad Inserter: version: 2.7.2, author: Igor Funa (latest version: 2.7.18), Auto-updates disabled Advanced Shipment Tracking for WooCommerce: version: 3.4, author: zorem (latest version: 3.4.7), Auto-updates disabled Bloom: version: 1.3.11, author: Elegant Themes (latest version: 1.3.12), Auto-updates disabled Brave Payments Verification: version: 1.0.4, author: Brave Software Intl, Auto-updates disabled Duplicator Pro: version: 4.0.4.1, author: Snap Creek (latest version: 4.5.7), Auto-updates disabled Enhanced E-commerce for Woocommerce store: version: 4.0.1, author: Tatvic (latest version: 4.9.3), Auto-updates disabled i2 Pros & Cons: version: 1.3.1, author: Ibrar Hussain, Auto-updates disabled Imagify: version: 1.10, author: WP Media (latest version: 2.0), Auto-updates disabled Insert Amz Images: version: 0.45, author: AMZ Image (latest version: 0.45.1), Auto-updates disabled Ivory Search: version: 5.4.8, author: Ivory Search, Auto-updates disabled Link Whisper: version: 1.9.1, author: Link Whisper (latest version: 2.1.0), Auto-updates disabled Ninja Forms: version: 3.6.14, author: Saturday Drive, Auto-updates disabled Novashare: version: 1.1.3, author: forgemedia (latest version: 1.3.4), Auto-updates disabled Table of Contents Plus: version: 2106, author: Michael Tran, Auto-updates disabled The SEO Framework: version: 4.2.5, author: The SEO Framework Team, Auto-updates disabled UpdraftPlus - Backup/Restore: version: 2.22.22.25, author: UpdraftPlus.Com, DavidAnderson, Auto-updates disabled ValvePress Rankie: version: 1.7.4, author: ValvePress, Auto-updates disabled WooCommerce: version: 6.9.3, author: Automattic (latest version: 6.9.4), Auto-updates disabled WooCommerce Stripe Gateway: version: 5.3.0, author: WooCommerce (latest version: 6.8.0), Auto-updates disabled Wordfence Security: version: 7.6.2, author: Wordfence, Auto-updates disabled WP External Links: version: 2.50, author: WebFactory Ltd (latest version: 2.55), Auto-updates disabled WP Mail SMTP: version: 3.5.2, author: WPForms, Auto-updates disabled WP Rocket: version: 3.11.5, author: WP Media, Auto-updates disabled WPS Hide Login: version: 1.9.6, author: WPServeur, NicolasKulka, wpformation, Auto-updates disabled Yet Another Related Posts Plugin (YARPP): version: 5.27.8, author: YARPP, Auto-updates disabled ### wp-plugins-inactive (24) ### Akismet Anti-Spam: version: 4.1.6, author: Automattic (latest version: 5.0.1), Auto-updates disabled BackupBuddy: version: 8.7.3.0, author: iThemes, Auto-updates disabled Classic Editor: version: 1.6.2, author: WordPress Contributors, Auto-updates disabled Contact Form 7: version: 5.6.3, author: Takayuki Miyoshi, Auto-updates disabled Ezoic: version: 2.7.23, author: Ezoic Inc. (latest version: 2.8.5), Auto-updates disabled Facebook for WooCommerce: version: 2.3.2, author: Facebook (latest version: 2.6.24), Auto-updates disabled GAinWP Google Analytics Integration for WordPress: version: 5.4.6, author: IntelligenceWP, Auto-updates disabled Instant Indexing: version: 1.1.13, author: Rank Math (latest version: 1.1.16), Auto-updates disabled LiteSpeed Cache: version: 3.5.0.2, author: LiteSpeed Technologies (latest version: 5.2.1), Auto-updates disabled Mailchimp for WooCommerce: version: 2.5.1, author: Mailchimp (latest version: 2.7.5), Auto-updates disabled Mammoth .docx converter: version: 1.17.0, author: Michael Williamson (latest version: 1.20.0), Auto-updates disabled Max Mega Menu: version: 2.9.8, author: megamenu.com, Auto-updates disabled Mobile Menu: version: 2.8.2.7, author: Freshlight Lab, Auto-updates disabled Ocean Extra: version: 2.0.4, author: OceanWP, Auto-updates disabled Perfmatters: version: 1.6.8, author: forgemedia (latest version: 1.9.9), Auto-updates disabled Pin It Button On Image Hover And Post: version: 2.7.8, author: Weblizar (latest version: 3.6), Auto-updates disabled Shared Counts: version: 1.3.0, author: Bill Erickson & Jared Atchison (latest version: 1.4.0), Auto-updates disabled WooCommerce PayPal Checkout Gateway: version: 2.1.0, author: WooCommerce (latest version: 2.1.3), Auto-updates disabled Woocommerce Product Page Social Share: version: 2.0.1, author: Sajjad Hossain Sagor, Auto-updates disabled WooCommerce Shipping & Tax: version: 1.25.0, author: Automattic (latest version: 1.26.3), Auto-updates disabled WP-Optimize - Clean, Compress, Cache: version: 3.1.8, author: David Anderson, Ruhani Rabin, Team Updraft (latest version: 3.2.7), Auto-updates disabled WPForms Lite: version: 1.7.6, author: WPForms, Auto-updates disabled WP Product Feed Manager: version: 1.29.0, author: Michel Jongbloed (latest version: 1.43.0), Auto-updates disabled WP Table Builder: version: 1.3.3, author: WP Table Builder (latest version: 1.4.3), Auto-updates disabled ### wp-media ### image_editor: WP_Image_Editor_GD imagick_module_version: Not available imagemagick_version: Not available imagick_version: Not available file_uploads: File uploads is turned off post_max_size: 50M upload_max_filesize: 50M max_effective_size: 50 MB max_file_uploads: 20 gd_version: bundled (2.1.0 compatible) gd_formats: GIF, JPEG, PNG, WebP, BMP ghostscript_version: unknown ### wp-server ### server_architecture: Linux 5.4.17-2102.206.1.el8uek.aarch64 aarch64 httpd_software: Apache php_version: 7.4.30 64bit php_sapi: fpm-fcgi max_input_variables: 1000 time_limit: 300 memory_limit: 256M max_input_time: 60 upload_max_filesize: 50M php_post_max_size: 50M curl_version: 7.70.0 OpenSSL/1.0.2u suhosin: false imagick_availability: false pretty_permalinks: true htaccess_extra_rules: true ### wp-database ### extension: mysqli server_version: 5.7.39-log client_version: mysqlnd 7.4.30 max_allowed_packet: 1073741824 max_connections: 500 ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /www/wwwroot/gardencrafted.com/wp-content WP_PLUGIN_DIR: /www/wwwroot/gardencrafted.com/wp-content/plugins WP_MEMORY_LIMIT: 256M WP_MAX_MEMORY_LIMIT: 256M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: true CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_ENVIRONMENT_TYPE: Undefined DB_CHARSET: utf8mb4 DB_COLLATE: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable ### neve ### api: Yes child: No customizer_css: /*Hide Time & Date on Related Articles*/ /* li.meta.author.vcard::after { display: none; } */ /* li.meta.date.posted-on { display: none; } */ ### wp_mail_smtp ### version: 3.5.2 license_key_type: lite debug: No debug notices found. lite_install_date: Sep 27, 2022 @ 10:52pm
Hello @hellog00dbye,
Thank you for reaching out to us,
It seems you have changed the theme.Please create a staging website on your server from the current website, and share the staging website’s system environment information as a code or on the https://pastebin.com/ link and share site link.
If you want to create a staging site on your own, then you can use the following plugin: https://wordpress.org/plugins/wp-staging/.
Note: Please deactivate all cache plugins on the staging website.
Please keep us posted.
Best RegardsI have faced the same issue. After hours of analysis, I found out that EZOIC LEAP optimization settings caused this issue. I’m using EZOIC for serving ads. So, after turning off the “Script Delay” settings, it worked again. I hope it helps someone.
- The topic ‘Mobile Menu Not Working error in console’ is closed to new replies.