elementor / elementor

The most advanced frontend drag & drop page builder. Create high-end, pixel perfect websites at record speeds. Any theme, any page, any design.
https://elementor.com/
GNU General Public License v3.0
6.42k stars 1.39k forks source link

Double Menu Problem after Updates #27205

Open wharminda opened 2 weeks ago

wharminda commented 2 weeks ago

UPDATE 9-5-24

another site broken, same fix works.

Happy to give you access to a site that breaks frequently if you want to take a look.

UPDATE 7-5-24

I've had another site break and tested this SQL and it fixed the problem: UPDATE wp_options SET option_value = REPLACE(option_value, 'http', 'https') WHERE option_name = '_elementor_assets_data';

Which suggests that the below is indeed the issue.

Prerequisites

Description

The double menu problem, which is widely complained about, appears to be caused by the browser not finding this file: /wp-content/plugins/elementor-pro/assets/css/widget-nav-menu.min.css which is probably because it's listed as http instead of https:

This file location is stored in the database at: table = Options, column option_name = _elementor_assets_data

SQL to find it:

select * from wp_options WHERE option_name = '_elementor_assets_data ';

The data is either not being updated or, more likely, some part of the update process is adding the URL as http instead of https and the browser is blocking the mixed content OR some part of the code is looking for HTTPS instead of HTTP and not linking it in as required CSS (or something else is the problem).

See the BEFORE and AFTER relevant sections from the Option_Value column.

I changed only the http to https via phpMyAdmin Edit function and this fixed the issue. That might be because something realised there had been a db change and called some other process or it might be because that's all that caused the problem.

After changing to https, the site worked and I checked the data in the table again, and it had been updated with new versions, see the code below, so something triggered the update.

BEFORE s:8:"nav-menu";a:2:{s:7:"content";s:123:"";s:7:"version";s:6:"3.21.2";}s:7:"divider";a:2:{s:7:"content";s:4311:"