• Resolved Ibukun Alesinloye

    (@highb33kay)


    I get a “publishing fail” error when I try to create a course or import demo courses.

    Then my site went into recovery mode and I had to remove the plugin.

    I would like to reinstall but I need help.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @highb33kay ,

    > I get a “publishing fail” error when I try to create a course or import demo courses.

    Would you link us to a screenshot of the error you’re seeing?

    I’d make sure you have enough memory allocated to WordPress: https://docs.woocommerce.com/document/increasing-the-wordpress-memory-limit/ , where your memory should be at least 512M.

    If that doesn’t help, the next thing I’d try is checking for any sort of plugin or theme conflict. Reinstall Sensei, then check.

    Basically you’ll leave Sensei activated, but deactivated every other plugin. Turn them on one by one as you test by attempting to import or create a course. When you run into an error, that’s likely the plugin causing the conflict.

    There are instructions for doing checking for conflicts here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    Best,
    Cena

    I am also having problems with this. I de-activated plugins one-by-one, cleared all caches, and still I can’t save updates to a Course. The problem happens only when I use the course outline block. I can save a course without the block in the course (but then no lessons display on the course page so that is not a viable workaround).

    With thanks

    Laura

    Perhaps some of the following is helpful….?

    2021-01-03T17:42:10+00:00 CRITICAL Uncaught TypeError: Argument 1 passed to Sensei_Course_Structure::instance() must be of the type int, null given, called in /var/www/wp-content/plugins/sensei-lms/includes/blocks/class-sensei-course-outline-block.php on line 190 and defined in /var/www/wp-content/plugins/sensei-lms/includes/class-sensei-course-structure.php:41
    Stack trace:
    #0 /var/www/wp-content/plugins/sensei-lms/includes/blocks/class-sensei-course-outline-block.php(190): Sensei_Course_Structure::instance(NULL)
    #1 /var/www/wp-content/plugins/sensei-lms/includes/blocks/class-sensei-course-outline-block.php(260): Sensei_Course_Outline_Block->get_block_structure()
    #2 /var/www/wp-includes/class-wp-block.php(221): Sensei_Course_Outline_Block->render_course_outline_block(Array, ‘\n\n’, Object(WP_Block))
    #3 /var/www/wp-includes/blocks.php(722): WP_Block->render()
    #4 /var/www/wp-includes/blocks.php(760): render_block(Array)
    #5 /var/www/wp-includes/class-wp-hook.php(287): do_blocks(‘<!– wp:paragra…’)
    #6 /var/www/wp-includes/plugin.php(212): WP_Hoo in /var/www/wp-content/plugins/sensei-lms/includes/class-sensei-course-structure.php on line 41

    ### WordPress Environment ###

    WordPress address (URL): https://futurefocuscoaching.org
    Site address (URL): https://futurefocuscoaching.org
    WC Version: 4.8.0
    REST API Version: ? 4.8.0
    WC Blocks Version: ? 3.8.1
    Action Scheduler Version: ? 3.1.6
    WC Admin Version: ? 1.7.3
    Log Directory Writable: ?
    WP Version: 5.6
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_GB
    External object cache: –

    ### Server Environment ###

    Server Info: Apache
    PHP Version: 7.3.12
    PHP Post Max Size: 8 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.45.0
    OpenSSL/1.0.1e

    ### Active Plugins (40) ###

    WP AutoTerms: by WP AutoTerms – 2.4.4
    CoBlocks: by GoDaddy – 2.5.3
    Conditional Menus: by Themify – 1.1.9
    Contact Widgets: by GoDaddy – 1.7.0
    Site Kit by Google: by Google – 1.23.0
    Host Google Fonts Locally: by Fonts Plugin – 1.0.3
    iframe: by webvitaly – 4.5
    Jetpack by WordPress.com: by Automattic – 9.2.1
    Login-Logout: by webvitaly – 3.8
    Mailchimp for WooCommerce: by Mailchimp – 2.5.0
    Ninja Forms: by Saturday Drive – 3.4.33
    Fonts Plugin | Google Fonts Typography: by Fonts Plugin – 2.3.9
    Say What?: by Lee Willis – 1.9.6
    BuddyPress for Sensei: by BuddyBoss – 1.2.3
    Sensei LMS Certificates: by Automattic – 2.0.7
    Sensei LMS: by Automattic – 3.6.0
    Sensei LMS Media Attachments: by Automattic – 2.0.3
    Sensei-video-protection free: by Yonghoon Lee – 1.0
    Simple Cookie Control: by SumaPress – 1.0.3
    Simple Scroll to Top Button: by Space X-Chimp – 4.42
    Simple Social Buttons: by WPBrigade – 3.2.1
    Sucuri Security – Auditing, Malware Scanner and Hardening: by Sucuri Inc. – 1.8.24
    Unsplash: by Unsplash – 1.0.1
    UpdraftPlus – Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 1.16.43

    Hello @highb33kay and @laurareturner.

    We’ve just released Sensei LMS 3.6.1 which fixes this exact error on sites that are using the Yoast SEO plugin.

    @laurareturner, although I don’t see that particular plugin in the list you provided, I suspect 3.6.1 might still resolve the issue for you. If not, I’d recommend doing what Cena suggested above and deactivating plugins one by one until you find the plugin that Sensei LMS is conflicting with. Once we know which plugin it is, we can look into a possible solution, as we did with Yoast SEO.

    Hope that helps.

    Donna, brilliant, thanks! This fixed the publishing/saving error in Sensei. And it means I could go live my first Course for a cohort tomorrow morning, just in time.

    With thanks to the whole team.

    Laura

    Great to hear Laura. Thanks for letting me know!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘I get a publishing fail when I try to create a course or import demo courses’ is closed to new replies.