Problems with Elementor and a Theme
-
I’m using the Woffice theme:
When using its “Projects” extension and making a project task post, the post will take effect, but will present a spinning wheel until changing pages. Apache logs report:
“[Wed Jul 25 11:42:53.159107 2018] [php7:error] [pid 4112] [client 10.0.0.67:54131] PHP Fatal error: Uncaught TypeError: Argument 2 passed to Elementor\\TemplateLibrary\\Source_Local::on_save_post() must be an instance of WP_Post, null null given, called in /var/www/html/wp-includes/class-wp-hook.php on line 288 and defined in /var/www/html/wp-content/plugins/elementor/includes/template-library/sources/local.php:1018\nStack trace:\n#0 /var/www/html/wp-includes/class-wp-hook.php(288): Elementor\\TemplateLibrary\\Source_Local->on_save_post(145, NULL)\n#1 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)\n#2 /var/www/html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)\n#3 /var/www/html/wp-content/themes/woffice/framework-customizations/extensions/woffice-projects/hooks.php(184): do_action(‘save_post’, 145, NULL, true)\n#4 /var/www/html/wp-includes/class-wp-hook.php(286): woffice_todos_update(”)\n#5 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)\n#6 /var/www/html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)\n#7 /var/www/html/wp-admin/admin in /var/www/html/wp-content/plugins/elementor/includes/template-library/sources/local.php on line 1018, referer: http://testsite/index.php/project/test-project-2/”
I’ve confirmed the behavior goes away when Elementor is deactivated.
Elementor 2.1.4
System Info
Server Environment
Operating System: Linux
Software: Apache/2.4.6 (CentOS) PHP/7.1.20
MySQL version: 5.5.56
PHP Version: 7.1.20
PHP Max Input Vars: 1000
PHP Max Post Size: 400M
GD Installed: Yes
ZIP Installed: Yes
WordPress Environment
Version: 4.9.7
Theme
Name: Woffice Child
Version:
Author: Alkaweb Team
Child Theme: Yes
Parent Theme Name: Woffice
Parent Theme Version: 2.7.2.1
Parent Theme Author: Alkaweb TeamTheme URL: https://themeforest.net/item/woffice-intranetextranet-wordpress-theme/11671924
The topic ‘Problems with Elementor and a Theme’ is closed to new replies.