mcguffin / the-paste

Paste Images in WordPress from many applications and upload them to the media library.
https://wordpress.org/plugins/the-paste/
GNU General Public License v3.0
40 stars 11 forks source link

Fatal error when using Elementor Theme Builder #35

Closed wmacmill closed 1 year ago

wmacmill commented 1 year ago

When using Elementor we're getting a fatal error when The Paste is installed. To replicate:

Below are details:

An error of type E_ERROR was caused in line 129 of the file /home/nginx/domains//public/wp-content/plugins/the-paste/include/ThePaste/Admin/Admin.php. Error message: Uncaught Error: Call to a member function enqueue() on null in /home/nginx/domains//public/wp-content/plugins/the-paste/include/ThePaste/Admin/Admin.php:129 Stack trace:

0 /home/nginx/domains//public/wp-includes/class-wp-hook.php(308): ThePaste\Admin\Admin->enqueue_assets()

1 /home/nginx/domains//public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()

2 /home/nginx/domains//public/wp-includes/plugin.php(517): WP_Hook->do_action()

3 /home/nginx/domains//public/wp-includes/media.php(4747): do_action()

4 /home/nginx/domains//public/wp-content/plugins/elementor/app/modules/onboarding/module.php(460): wp_enqueue_media()

5 /home/nginx/domains//public/wp-includes/class-wp-hook.php(308): Elementor\App\Modules\Onboarding\Module->Elementor\App\Modules\Onboarding{closure}()

6 /home/nginx/domains//public/wp-inclu

mcguffin commented 1 year ago

fixed with #36