• When installing a new WordPress site, on Local By FlyWheel, I deploy the OceanWP theme in its latest version, and I am offered to install the Ocean Extra plugin, I launch the installation wizard.

    When choosing a demo content, I select “Architect”, I click on the “Install a demo” button, then “Install now” for the plugins “Ocean Social Sharing”, “Elementor”, “WPForms” and I leave all checked at the level of “SELECT WHAT YOU WANT TO IMPORT:” before clicking on “IMPORT”.

    I do not modify anything in the logo, site title, slogan, … configuration step and I click on “CONTINUE”, which results in a critical error: “Fatal error: Uncaught Exception: Invalid post. In /wp-content/plugins/elementor/core/settings/page/manager.php on line 101”.

    “Exception: Invalid post. in /wp-content/plugins/elementor/core/settings/page/manager.php on line 101”

    ——-

    
    ### wp-core ###
    
    version: 5.8.2
    site_language: fr_FR
    user_language: fr_FR
    timezone: +00:00
    permalink: /%postname%/
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: open
    environment_type: local
    user_count: 1
    dotorg_communication: true
    
    ### wp-paths-sizes ###
    
    wordpress_path: /Users/mickaelmaury/Local Sites/testelementorerror/app/public
    wordpress_size: 46,62 Mo (48883666 bytes)
    uploads_path: /Users/mickaelmaury/Local Sites/testelementorerror/app/public/wp-content/uploads
    uploads_size: 0,00 o (0 bytes)
    themes_path: /Users/mickaelmaury/Local Sites/testelementorerror/app/public/wp-content/themes
    themes_size: 26,85 Mo (28149149 bytes)
    plugins_path: /Users/mickaelmaury/Local Sites/testelementorerror/app/public/wp-content/plugins
    plugins_size: 28,00 o (28 bytes)
    database_size: 2,16 Mo (2260992 bytes)
    total_size: 75,62 Mo (79293835 bytes)
    
    ### wp-active-theme ###
    
    name: OceanWP (oceanwp)
    version: 3.1.1
    author: Nick
    author_website: https://oceanwp.org/about-me/
    parent_theme: none
    theme_features: core-block-patterns, widgets-block-editor, align-wide, wp-block-styles, responsive-embeds, editor-styles, editor-style, menus, post-formats, title-tag, automatic-feed-links, post-thumbnails, custom-header, custom-logo, html5, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, customize-selective-refresh-widgets, widgets
    theme_path: /Users/mickaelmaury/Local Sites/testelementorerror/app/public/wp-content/themes/oceanwp
    auto_update: Désactivé
    
    ### wp-themes-inactive (3) ###
    
    Twenty Nineteen: version: 2.1, author: L’équipe WordPress, Mises à jour auto désactivées
    Twenty Twenty: version: 1.8, author: L’équipe WordPress, Mises à jour auto désactivées
    Twenty Twenty-One: version: 1.4, author: L’équipe WordPress, Mises à jour auto désactivées
    
    ### wp-plugins-active (1) ###
    
    Ocean Extra: version: 1.9.1, author: OceanWP, Mises à jour auto désactivées
    
    ### wp-media ###
    
    image_editor: WP_Image_Editor_GD
    imagick_module_version: Non disponible
    imagemagick_version: Non disponible
    imagick_version: Non disponible
    file_uploads: File uploads is turned off
    post_max_size: 1000M
    upload_max_filesize: 300M
    max_effective_size: 300 Mo
    max_file_uploads: 20
    gd_version: bundled (2.1.0 compatible)
    gd_formats: GIF, JPEG, PNG, BMP
    ghostscript_version: not available
    
    ### wp-server ###
    
    server_architecture: Darwin 21.1.0 x86_64
    httpd_software: nginx/1.16.0
    php_version: 7.3.5 64bit
    php_sapi: fpm-fcgi
    max_input_variables: 4000
    time_limit: 1200
    memory_limit: 512M
    max_input_time: 600
    upload_max_filesize: 300M
    php_post_max_size: 1000M
    curl_version: 7.54.0 LibreSSL/2.6.5
    suhosin: false
    imagick_availability: false
    pretty_permalinks: true
    htaccess_extra_rules: false
    
    ### wp-database ###
    
    extension: mysqli
    server_version: 8.0.16
    client_version: mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $
    
    ### wp-constants ###
    
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /Users/mickaelmaury/Local Sites/testelementorerror/app/public/wp-content
    WP_PLUGIN_DIR: /Users/mickaelmaury/Local Sites/testelementorerror/app/public/wp-content/plugins
    WP_MEMORY_LIMIT: 512M
    WP_MAX_MEMORY_LIMIT: 256M
    WP_DEBUG: true
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: false
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_LOCAL_DEV: undefined
    DB_CHARSET: utf8
    DB_COLLATE: undefined
    
    ### wp-filesystem ###
    
    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    
    
Viewing 14 replies - 1 through 14 (of 14 total)
  • Hello,

    Sorry to hear that you are experiencing the issue.

    Are you trying to import the demo on an existing site?
    If you will import a demo over an existing site, It will always end up with a mess. This is not specifically related to OceanWP, it functions with all themes and demos. Demos are not different themes so you can get easily rid of them, but sample content.

    For future reference, I suggest going through this doc: https://docs.oceanwp.org/article/728-how-to-switch-different-demo

    If you do want to start from scratch, I would suggest you perform a WordPress Reset (assuming you do not have any content of your own on that website). If you do, then all your posts/images, etc will be deleted forever.

    If you don’t, then you’re all good.

    This is the plugin you need to install to start from ground zero: https://www.ads-software.com/plugins/wp-reset/
    This video tutorial might be useful for reset: https://www.youtube.com/watch?v=SOzfUp37TKg

    After done with the reset, please install the required plugins first then, Try to import the demo manually, download the attached files from the repository and import them by following the below steps.
    https://github.com/oceanwp/oceanwp-sample-data
    ?
    1. ?Import sample-data.xml file from Tools > Import, and Run WordPress Importer from here and import the XML file.
    ?2. Import the oceanwp-export.dat file from the Theme Panel > Import/Export, and import the .dat file.
    ?3. Install the widget Import export plugin, Go to Tools > widget Importer & Exporter, from here import the widgets.wie file.

    Go to Settings > Reading, select the static home page and post page.
    ?
    ?and go to appearance > menu, and assign the menu to the main menu.

    I hope this helps!

    Thank you!

    This 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.

    Hello,

    Would you be so kind and go to Elementor > System Info and share the report with us so that we can take a look?

    Here 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"
    

    I 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

    It 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 through sanitize_hex_color and thus almost always the demo importer sets those values to NULL instead of what the user has filled in.

    https://github.com/oceanwp/ocean-extra/commit/28db178c633d1acd3a7bd6ff0e1f126028c0f3ad#diff-b4edb6d28a6f255bea5e66214c69ca1dab1739d24438aa5f3de8d176e1ae58feR717

    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?

    Elementor support says they’ll happily collaborate with you directly to resolve this issue: https://www.ads-software.com/support/topic/php-fatal-error-invalid-post-when-another-plugin-saves-a-wp-option/

    Hello,

    I would request you to please try to match the below parameters before installing and make sure to required plugins should be installed.
    Go to Elementor > System Info and check the below parameters.
    ?Make sure that you are using PHP version 7.3 and above, that your WordPress Memory Limit is set to 512M or above, and that your Upload Limit is set to 20MB or above.

    Also, make sure that GD Installed and ZIP Installed are both to YES and increase the max_execution time and check.
    https://thimpress.com/knowledge-base/how-to-increase-maximum-execution-time-for-wordpress-site/

    I would suggest you perform a WordPress Reset (assuming you do not have any content of your own on that website). If you do, then all your posts/images, etc will be deleted forever.

    If you don’t, then you’re all good.

    This is the plugin you need to install to start from ground zero: https://www.ads-software.com/plugins/wp-reset/

    This video tutorial might be useful for reset: https://www.youtube.com/watch?v=SOzfUp37TKg

    After done with the reset, please install the required plugins first then, Try to import the demo manually, download the attached files from the repository and import them by following the below steps.
    https://github.com/oceanwp/oceanwp-sample-data
    ?
    1. ?Import sample-data.xml file from Tools > Import, and Run WordPress Importer from here and import the XML file.
    ?2. Import the oceanwp-export.dat file from the Theme Panel > Import/Export, and import the .dat file.
    ?3. Install the widget Import export plugin, Go to Tools > widget Importer & Exporter, from here import the widgets.wie file.

    Go to Settings > Reading, select the static home page and post page.
    ?
    ?and go to appearance > menu, and assign the menu to the main menu.

    I hope this helps!

    Thank you!

    Thank you for the reply!

    I see that you haven’t really paid attention to my posts. Otherwise you would’ve known that I was doing completely fresh installs, and the resetting notes are irrelevant here. Are you just copying an answer template from somewhere?

    Your suggestions would probably work though. I’ve already realized that the import happens without problems if I have the dependency plugins (Elementor and WP Forms) installed before I’m attempting to do the demo import. So, yes, that is a work-around.

    Nevertheless, there is a problem with your theme set-up wizard, if a user runs it before installing Elementor and WP Forms. How should the user know they have to have those plugins installed beforehand?

    Even more, the Ocean WP set-up wizard presents the user with the option to install those plugins during the wizard process. So, if one installs them, the wizard should succeed, but it doesn’t and a fatal error occurs.

    So, yes, you’re giving me a work-around, but it does not change the fact that your theme set-up/demo import wizard has a bug. If you don’t want to fix bugs in your theme, it’s your choice, of course.

    Hello,

    I apologize again for the trouble.
    You are right and We found out the correct conditions under which ones the issues occur and it’s under review by the development team.

    For now, I will request you to please use the option Install demo via Theme Panel > Install demo, instead of using the setup wizard.

    Thank you for keeping patience with us.

    Hello,

    We have fixed the issue in the new version but have not yet been released.
    Here you can download the fixed version of the plugin and please try to test this version on a staging site and check if the issue is still happening. On our end, it’s all good.

    https://drive.google.com/file/d/113TRlmIoB0lVQuMxd8b-EDtITdBXHy5z/view?usp=sharing

    Hello!

    The plug-in you’re giving me is marked as version 1.7.5, although the latest plugin version (published 11 hours ago), is 1.9.3.

    I apologize for that, The issue has been resolved in the latest version of the plugin, please upgrade and check.

    https://docs.oceanwp.org/article/654-ocean-extra-changelog

    The new version still crashes.

    See this video for what I’m doing: https://www.youtube.com/watch?v=Hr55NtqTm7Y

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Ocean WP – fatal error on demo import’ is closed to new replies.