Jānis Elmeris
Forum Replies Created
-
That other plugin is just updating a blog setting (the title and description) using the built-in function
update_option()
.Elementor is the one that’s hooked into this action and produces the fatal error because cannot find some post ID.
It looks more like the other plugin has no control over how Elementor is acting, so I’m here so you would troubleshoot your plugin instead (or “as well”).
- This reply was modified 2 years, 10 months ago by Jānis Elmeris.
Forum: Themes and Templates
In reply to: [OceanWP] Ocean WP – fatal error on demo importIt doesn’t solve the fatal error, but I discovered there is another error when saving site settings on step 3 when importing a demo (since September 2020).
The blog title and description in
save_ocean_customize
gets passed throughsanitize_hex_color
and thus almost always the demo importer sets those values to NULL instead of what the user has filled in.Has the development stopped on Ocean WP and it becomes a rather out-dated theme, or is it still safe to use it for setting up new WordPress sites?
Forum: Themes and Templates
In reply to: [OceanWP] Ocean WP – fatal error on demo importI increased the log message length and did it all again. This is the full error message:
[Sat Jan 15 12:58:36.545656 2022] [php7:error] [pid 23] [client 172.21.0.1:43356] PHP Fatal error: Uncaught Exception: Invalid post. in /var/www/html/wp-content/plugins/elementor/core/settings/page/manager.php:101 Stack trace: #0 /var/www/html/wp-content/plugins/elementor/core/base/document.php(1506): Elementor\\Core\\Settings\\Page\\Manager->ajax_before_save_settings(Array, NULL) #1 /var/www/html/wp-content/plugins/elementor/core/base/document.php(711): Elementor\\Core\\Base\\Document->save_settings(Array) #2 /var/www/html/wp-content/plugins/elementor/core/kits/manager.php(236): Elementor\\Core\\Base\\Document->update_settings(Array) #3 /var/www/html/wp-content/plugins/elementor/core/kits/manager.php(394): Elementor\\Core\\Kits\\Manager->update_kit_settings_based_on_option('site_name', '') #4 /var/www/html/wp-includes/class-wp-hook.php(305): Elementor\\Core\\Kits\\Manager->Elementor\\Core\\Kits\\{closure}('Tikai v\\xC4\\x93l vien...', '') #5 /var/www/html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #6 /var/www/html/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #7 /var/www/html/wp-includes/option.php(521): do_action('update_option_b...', 'Tikai v\\xC4\\x93l vien...', '', 'blogname') #8 /var/www/html/wp-content/plugins/ocean-extra/includes/wizard/wizard.php(831): update_option('blogname', '') #9 /var/www/html/wp-content/plugins/ocean-extra/includes/wizard/wizard.php(653): Ocean_Extra_Theme_Wizard->save_ocean_customize() #10 /var/www/html/wp-content/plugins/ocean-extra/includes/wizard/wizard.php(368): Ocean_Extra_Theme_Wizard->ocean_customize_setup(Object(Ocean_Extra_Theme_Wizard)) #11 /var/www/html/wp-content/plugins/ocean-extra/includes/wizard/wizard.php(320): Ocean_Extra_Theme_Wizard->setup_wizard_content() #12 /var/www/html/wp-includes/class-wp-hook.php(303): Ocean_Extra_Theme_Wizard->ocean_wizard_setup('') #13 /var/www/html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #14 /var/www/html/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #15 /var/www/html/wp-admin/admin.php(175): do_action('admin_init') #16 {main} thrown in /var/www/html/wp-content/plugins/elementor/core/settings/page/manager.php on line 101, referer: https://localhost:8583/wp-admin/admin.php?page=owp_setup&step=customize
Forum: Themes and Templates
In reply to: [OceanWP] Ocean WP – fatal error on demo importHere is the system info.
I’ve also attached configuration for Docker Compose (use your own file paths, of course), so you can easily set up the same environment yourselves.== Server Environment == Operating System: Linux Software: Apache/2.4.51 (Debian) MySQL version: mariadb.org binary distribution v10.6.5 PHP Version: 7.4.27 PHP Max Input Vars: 1000 PHP Max Post Size: 8M GD Installed: Yes ZIP Installed: Yes Write Permissions: All right Elementor Library: Connected == WordPress Environment == Version: 5.8.3 Site URL: https://localhost:8583 Home URL: https://localhost:8583 WP Multisite: No Max Upload Size: 2 MB Memory limit: 128M Permalink Structure: Plain Language: lv-LV Timezone: Europe/Riga Admin Email: janis@localhost Debug Mode: Inactive == Theme == Name: OceanWP Version: 3.1.2 Author: OceanWP Child Theme: No == User == Role: administrator WP Profile lang: lv User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0 == Active Plugins == Elementor Version: 3.5.3 Author: Elementor.com Ocean Extra Version: 1.9.2 Author: OceanWP WPForms Lite Version: 1.7.2 Author: WPForms == Elementor Experiments == Optimized DOM Output: Active by default Improved Asset Loading: Active by default Improved CSS Loading: Active by default Inline Font Icons: Inactive by default Accessibility Improvements: Active by default Import Export Template Kit: Active by default Additional Custom Breakpoints: Active by default Hide native WordPress widgets from search results: Active by default Landing Pages: Active by default Color Sampler: Active by default Favorite Widgets: Active by default Admin Top Bar: Active by default == Log == PHP: showing 2 of 2PHP: 2022-01-09 23:47:03 [error X 1][/var/www/html/wp-content/plugins/elementor/core/settings/page/manager.php::101] Uncaught Exception: Invalid post. in /var/www/html/wp-content/plugins/elementor/core/settings/page/manager.php:101 Stack trace: #0 /var/www/html/wp-content/plugins/elementor/core/base/document.php(1506): Elementor\Core\Settings\Page\Manager->ajax_before_save_settings(Array, NULL) #1 /var/www/html/wp-content/plugins/elementor/core/base/document.php(711): Elementor\Core\Base\Document->save_settings(Array) #2 /var/www/html/wp-content/plugins/elementor/core/kits/manager.php(236): Elementor\Core\Base\Document->update_settings(Array) #3 /var/www/html/wp-content/plugins/elementor/core/kits/manager.php(394): Elementor\Core\Kits\Manager->update_kit_settings_based_on_option('site_name', '') #4 /var/www/html/wp-includes/class-wp-hook.php(305): Elementor\Core\Kits\Manager->Elementor\Core\Kits\{closure}('Mirandas nometn...', '') #5 /var/www/html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #6 /var/www/html/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #7 /var/www/html/wp-includes/option.p [array ( 'trace' => ' #0: Elementor\Core\Logger\Manager -> shutdown() ', )] PHP: 2022-01-09 23:49:15 [error X 1][/var/www/html/wp-content/plugins/elementor/core/settings/page/manager.php::101] Uncaught Exception: Invalid post. in /var/www/html/wp-content/plugins/elementor/core/settings/page/manager.php:101 Stack trace: #0 /var/www/html/wp-content/plugins/elementor/core/base/document.php(1506): Elementor\Core\Settings\Page\Manager->ajax_before_save_settings(Array, NULL) #1 /var/www/html/wp-content/plugins/elementor/core/base/document.php(711): Elementor\Core\Base\Document->save_settings(Array) #2 /var/www/html/wp-content/plugins/elementor/core/kits/manager.php(236): Elementor\Core\Base\Document->update_settings(Array) #3 /var/www/html/wp-content/plugins/elementor/core/kits/manager.php(398): Elementor\Core\Kits\Manager->update_kit_settings_based_on_option('site_descriptio...', '') #4 /var/www/html/wp-includes/class-wp-hook.php(305): Elementor\Core\Kits\Manager->Elementor\Core\Kits\{closure}('Tikai v\xC4\x93l vien...', '') #5 /var/www/html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #6 /var/www/html/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #7 /var/www/html/wp-in [array ( 'trace' => ' #0: Elementor\Core\Logger\Manager -> shutdown() ', )] == Elementor - Compatibility Tag ==
docker-compose.yml:
version: "3.1" services: wordpress: image: "wordpress:5.8.3-php7.4-apache" depends_on: - "mysql" ports: - "8583:80" environment: WORDPRESS_DB_HOST: "mysql" WORDPRESS_DB_NAME: "wpdb" WORDPRESS_DB_USER: "wpuser" WORDPRESS_DB_PASSWORD: "w07389dc45z8V" TZ: "Europe/Riga" volumes: - "/data/wordpress582/mounted/files:/var/www/html" mysql: image: "mariadb:10.6" environment: MYSQL_ROOT_PASSWORD: "example" MYSQL_USER: "wpuser" MYSQL_DATABASE: "wpdb" MYSQL_PASSWORD: "w07389dc45z8V" volumes: - "/data/wordpress582/mounted/db:/var/lib/mysql"
Forum: Themes and Templates
In reply to: [OceanWP] Ocean WP – fatal error on demo importThis happened to me as well.
I set up a completely new WordPress 5.8.3 using the Docker image and after logging in to the admin account, went straight to the themes, installed and activated OceanWP, then Ocean Extras, as was prompted. After that I got a button to start the theme setup wizard.
I selected a demo to import (Yoga), confirmed installing all the plugins that were requested during the process, except the sticky header plugin, filled in the site title, logos, left the colour settings intact. Saving this page lead to an error page where “Welcome”, “Choosing demo”, “Customize” are blue, “Ready” is grey, and a text is displayed about a critical error having occured.
The error log contains these details:
PHP Fatal error: Uncaught Exception: Invalid post. in /var/www/html/wp-content/plugins/elementor/core/settings/page/manager.php:101\nStack trace:\n#0 /var/www/html/wp-content/plugins/elementor/core/base/document.php(1506): Elementor\\Core\\Settings\\Page\\Manager->ajax_before_save_settings(Array, NULL)\n#1 /var/www/html/wp-content/plugins/elementor/core/base/document.php(711): Elementor\\Core\\Base\\Document->save_settings(Array)\n#2 /var/www/html/wp-content/plugins/elementor/core/kits/manager.php(236): Elementor\\Core\\Base\\Document->update_settings(Array)\n#3 /var/www/html/wp-content/plugins/elementor/core/kits/manager.php(398): Elementor\\Core\\Kits\\Manager->update_kit_settings_based_on_option('site_descriptio...', '')\n#4 /var/www/html/wp-includes/class-wp-hook.php(305): Elementor\\Core\\Kits\\Manager->Elementor\\Core\\Kits\\{closure}('Tikai v\\xC4\\x93l vien...', '')\n#5 /var/www/html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array)\n#6 /var/www/html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)\n#7 /var/www/html/wp-in in /var/www/html/wp-content/plugins/elementor/core/settings/page/manager.php on line 101, referer: https://localhost:8583/wp-admin/admin.php?page=owp_setup&step=customize
The site is using the theme, but I suppose that _something_ has not finished installing. If I go into the admin, I get the OceanWP prompt to “Run the Setup Wizard”. If I try to do it all over again (the custom settings were back to the default ones), the same result happens.
OK, thanks!
Yes, maybe we’ll increase it to 192M from 128M.The requests I meant was when I open product list, product page, add products to cart, check out. Maybe not all, but many.
Those returns you probably mean are included in a conditional block that does not execute for me because
$_SERVER['USER'] == 'www-data'
. Why is there such condition added, that$_SERVER['USER']
must be empty?- This reply was modified 2 years, 10 months ago by Jānis Elmeris.
Porto support replied with a generic instructions on how to debug problems by disabling plugins and clearing caches.
So, we’ll leave it at that, no meaningful action on their part is expected apparently. We’ll keep the QuickView disabled.
Thank you for the reply!
- This reply was modified 3 years, 1 month ago by Jānis Elmeris.
Yes, we do not use any additional plugins. I’ll tell this to the theme developers, we’ll see what they say.
This is an URL to a product, but we’re switched off the quick view so you won’t be able to see it. We cannot allow products be added to cart without the extra field. https://juristavards.lv/veikals/produkts/mazais/
Forum: Plugins
In reply to: [Loco Translate] How to utilize the both modes of the Sync function?Thank you for the prompt reply! I’d missed the cog, I see it now. Great, thanks!
Forum: Plugins
In reply to: [YOP Poll] Vote results bar colorOh, the colour of each answer seperately. Thank you for the pointer!
Forum: Plugins
In reply to: [Recent Posts Widget With Thumbnails] Choose to include also pagesThanks for the link! Looks good.
- This reply was modified 5 years ago by Jānis Elmeris.
Forum: Themes and Templates
In reply to: [Virtue] The style of “heading 1” passed on to misc elementsThanks for the tip!