AyeCode / geodirectory

GeoDirectory is the leading Directory Plugin for WordPress. Compatible with Gutenberg and the most popular page builders such as Elementor, Oxygen, Beaver Builder and Divi. GeoDirectory is the only solution for WordPress that can scale to millions of listings and high traffic.
https://wpgeodirectory.com/
Other
40 stars 21 forks source link

Fatal Error in GeoDirectory v2.3.19+ When Elementor is Not Installed and using GeoDirectory List Manager #2498

Closed 0x4d4n closed 8 months ago

0x4d4n commented 9 months ago

Description When GeoDirectory List Manager is active with GeoDirectory version 2.3.19 or higher, and Elementor is not installed or activated, a PHP fatal error occurs, causing the page to fail to load.

Steps to Reproduce

  1. Ensure GeoDirectory v2.3.19 or higher is installed and active.
  2. Ensure the GeoDirectory List Manager is active.
  3. In Lists > Settings > Template Page Settings - Ensure Template Page Settings - Single Page is set to GD Single - Lists
  4. Ensure Elementor is not installed or deactivated.
  5. Visit a page that triggers the GeoDirectory functionality e.g. a Single List
  6. Observe the PHP fatal error.

Expected Behavior The plugin should handle the absence of Elementor gracefully without causing a fatal error.

Actual Behavior A PHP fatal error is triggered with the following message:

Fatal error: Uncaught Error: Class "Elementor\Plugin" not found in /wp-content/plugins/geodirectory/includes/class-geodir-elementor.php:1306

WordPress Environment

kprajapatii commented 8 months ago

List Manager v2.3.3 is released with actual fix. In GD core added some conditions too.

Thanks for spotting.