Support » Plugin: LearnPress - WordPress LMS Plugin » Error on save/update courses (also)

  • I’m on a brand new install of WP + Learnpress downloaded from WP repository ysterday (no upgrade)
    I see another have similar problem but I did not want to hijack his post.

    I have screenshots of the errors, should you wish to get them…
    Seems to be problem with the image uploader – after adding thumbnail I just get blank page (instead of getting back to the post to further edit) … Then when I want to update/publish I get the problem with errors.

    I do NOT get the errors when NOT using thumbnails (no featured image).

    Another error is that when I check the “paid” radiobutton and save (when no thumbnail) nothing happens.
    It keeps saying “If Paid be checked, An administrator will review then set course price and commission”.
    Even if I disable the option that an admin have to review (AM admin, so should be able to put in prices anyway, but…)

    Also, I cannot add course curriculum.
    When I press “select lessons” nothing happens…. And when I just plot in a name and press enter, I get the errors (as above with the thumbnail) again.

    Really hope you can help, Thank you 🙂

    Here’s the erros … And further down below my system info:

    Warning: Missing argument 1 for LP_Course_Post_Type::review_log(), called in /Users/clairemini/Documents/Websites/tidtilomtanke.dev/wp-content/plugins/learnpress/inc/custom-post-types/course.php on line 720 and defined in /Users/clairemini/Documents/Websites/tidtilomtanke.dev/wp-content/plugins/learnpress/inc/custom-post-types/course.php on line 666
    Call Stack
    # Time Memory Function Location
    1 0.0029 472304 {main}( ) ../post.php:0
    2 1.4009 101893840 edit_post( ) ../post.php:193
    3 1.4094 101948672 wp_update_post( ) ../post.php:369
    4 1.4097 101967936 wp_insert_post( ) ../post.php:3458
    5 1.4348 102145424 do_action( ) ../post.php:3385
    6 1.4411 102163984 call_user_func_array:{/Users/clairemini/Documents/Websites/tidtilomtanke.dev/wp-includes/plugin.php:525} ( ) ../plugin.php:525
    7 1.4411 102164280 RW_Meta_Box->save_post( ) ../plugin.php:525
    8 1.4414 102164728 do_action( ) ../meta-box.php:302
    9 1.4414 102166280 call_user_func_array:{/Users/clairemini/Documents/Websites/tidtilomtanke.dev/wp-includes/plugin.php:525} ( ) ../plugin.php:525
    10 1.4414 102166552 LP_Course_Post_Type->before_save_curriculum( ) ../plugin.php:525
    11 1.5001 102168688 LP_Course_Post_Type->review_log( ) ../course.php:720

    ( ! ) Warning: Missing argument 2 for LP_Course_Post_Type::review_log(), called in /Users/clairemini/Documents/Websites/tidtilomtanke.dev/wp-content/plugins/learnpress/inc/custom-post-types/course.php on line 720 and defined in /Users/clairemini/Documents/Websites/tidtilomtanke.dev/wp-content/plugins/learnpress/inc/custom-post-types/course.php on line 666
    Call Stack
    # Time Memory Function Location
    1 0.0029 472304 {main}( ) ../post.php:0
    2 1.4009 101893840 edit_post( ) ../post.php:193
    3 1.4094 101948672 wp_update_post( ) ../post.php:369
    4 1.4097 101967936 wp_insert_post( ) ../post.php:3458
    5 1.4348 102145424 do_action( ) ../post.php:3385
    6 1.4411 102163984 call_user_func_array:{/Users/clairemini/Documents/Websites/tidtilomtanke.dev/wp-includes/plugin.php:525} ( ) ../plugin.php:525
    7 1.4411 102164280 RW_Meta_Box->save_post( ) ../plugin.php:525
    8 1.4414 102164728 do_action( ) ../meta-box.php:302
    9 1.4414 102166280 call_user_func_array:{/Users/clairemini/Documents/Websites/tidtilomtanke.dev/wp-includes/plugin.php:525} ( ) ../plugin.php:525
    10 1.4414 102166552 LP_Course_Post_Type->before_save_curriculum( ) ../plugin.php:525
    11 1.5001 102168688 LP_Course_Post_Type->review_log( ) ../course.php:720

    ( ! ) Warning: Missing argument 3 for LP_Course_Post_Type::review_log(), called in /Users/clairemini/Documents/Websites/tidtilomtanke.dev/wp-content/plugins/learnpress/inc/custom-post-types/course.php on line 720 and defined in /Users/clairemini/Documents/Websites/tidtilomtanke.dev/wp-content/plugins/learnpress/inc/custom-post-types/course.php on line 666
    Call Stack
    # Time Memory Function Location
    1 0.0029 472304 {main}( ) ../post.php:0
    2 1.4009 101893840 edit_post( ) ../post.php:193
    3 1.4094 101948672 wp_update_post( ) ../post.php:369
    4 1.4097 101967936 wp_insert_post( ) ../post.php:3458
    5 1.4348 102145424 do_action( ) ../post.php:3385
    6 1.4411 102163984 call_user_func_array:{/Users/clairemini/Documents/Websites/tidtilomtanke.dev/wp-includes/plugin.php:525} ( ) ../plugin.php:525
    7 1.4411 102164280 RW_Meta_Box->save_post( ) ../plugin.php:525
    8 1.4414 102164728 do_action( ) ../meta-box.php:302
    9 1.4414 102166280 call_user_func_array:{/Users/clairemini/Documents/Websites/tidtilomtanke.dev/wp-includes/plugin.php:525} ( ) ../plugin.php:525
    10 1.4414 102166552 LP_Course_Post_Type->before_save_curriculum( ) ../plugin.php:525
    11 1.5001 102168688 LP_Course_Post_Type->review_log( ) ../course.php:720

    ( ! ) Warning: Cannot modify header information – headers already sent by (output started at /Users/clairemini/Documents/Websites/tidtilomtanke.dev/wp-content/plugins/learnpress/inc/custom-post-types/course.php:666) in /Users/clairemini/Documents/Websites/tidtilomtanke.dev/wp-includes/pluggable.php on line 1228
    Call Stack
    # Time Memory Function Location
    1 0.0029 472304 {main}( ) ../post.php:0
    2 1.6076 102353936 redirect_post( ) ../post.php:200
    3 1.6151 102478680 wp_redirect( ) ../post.php:1841
    4 1.6158 102488072 header ( ) ../pluggable.php:1228

    ### Begin System Info ###

    Child Theme: TidTilOmtanke

    Multi-site: No

    SITE_URL: http://tidtilomtanke.dev
    HOME_URL: http://tidtilomtanke.dev

    Headway Version: 3.8.7
    WordPress Version: 4.4.1

    PHP Version: 5.5.24
    MySQL Version: 5.6.24
    Web Server Info: Apache/2.4.12 (Unix) OpenSSL/1.0.1m PHP/5.5.24 mod_perl/2.0.8-dev Perl/v5.16.3
    GD Support: Yes

    PHP Memory Limit: 256M
    PHP Post Max Size: 128M

    WP_DEBUG: Disabled
    SCRIPT_DEBUG: Disabled
    Debug Mode: Disabled

    Show On Front: page
    Page On Front: 14954
    Page For Posts: 14952

    Number of Posts: ~32
    Number of Pages: ~75
    Number of Blocks: ~73

    Snapshots: 13 snapshots taking up 2.33MB of disk space.

    Responsive Grid: Enabled

    Caching Allowed: Yes
    Caching Enabled: Yes
    Caching Plugin: No caching plugin active

    SEO Plugin: No SEO plugin active

    Operating System: Mac
    Browser: Mozilla Firefox
    Browser Version: 43.0

    Full User Agent:
    Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:43.0) Gecko/20100101 Firefox/43.0

    WEB FONTS IN USE:
    google: Julius Sans One
    google: Source Sans Pro

    ACTIVE PLUGINS:
    AddToAny Share Buttons 1.6.11
    https://www.addtoany.com/

    BackupBuddy 6.3.3.0
    http://ithemes.com/purchase/backupbuddy/

    Instagram Feed 1.3.11
    http://smashballoon.com/instagram-feed

    LearnPress 0.9.19
    http://thimpress.com/learnpress

    LearnPress Course Review 0.9.1
    http://thimpress.com/learnpress

    LearnPress Courses Wishlist 0.9.2
    http://thimpress.com/learnpress

    Lightweight Social Icons 0.8
    http://generatepress.com/lightweight-social-icons

    Master Slider Pro 2.26.0
    http://codecanyon.net/item/masterslider-pro/7467925?ref=averta

    Simply Pinterest 1.2
    https://github.com/terriann/betterpinterestplugin

    Types 1.8.11
    http://wordpress.org/extend/plugins/types/

    WooCommerce 2.5.1
    http://www.woothemes.com/woocommerce/

    WooCommerce Multilingual 3.7.9
    http://wpml.org/documentation/related-projects/woocommerce-multilingual/

    WooCommerce Views 2.5.7
    http://wp-types.com/documentation/views-inside/woocommerce-views/

    WordPress Importer 0.6.1
    http://wordpress.org/extend/plugins/wordpress-importer/

    WordPress Video Plugin 0.759
    http://www.daburna.de/blog/2006/12/13/wordpress-video-plugin/

    WP Editor Widget 0.5.5
    https://github.com/feedmeastraycat/wp-editor-widget

    WP Google Maps 6.3.05
    http://www.wpgmaps.com

    WPML Media 2.1.19
    https://wpml.org/

    WPML Multilingual CMS 3.3.6
    https://wpml.org/

    WPML String Translation 2.3.6.1
    https://wpml.org/

    WPML Translation Management 2.1.5
    https://wpml.org/

    WP Views 1.11.1
    http://wp-types.com/?utm_source=viewsplugin&utm_campaign=views&utm_medium=plugins-list-full-version&utm_term=Visit plugin site

    YITH Essential Kit for WooCommerce #1 1.1.17
    https://wordpress.org/plugins/yith-essential-kit-for-woocommerce-1/

    ZillaLikes 1.1.1
    http://www.themezilla.com/plugins/zillalikes

    ### End System Info ###

    https://wordpress.org/plugins/learnpress/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi, designlabCPH,
    I ran into the exact same problem. And I think, I was able to solve it:
    There is a mistake in the code of the php file inc/custom-post-types/course.php The line 720 should be like this:

    $this->review_log($new_status, $old_status, $post->ID); // pk added the arguments (were missing in original source)

    With this change the course saves without problems.

    Good luck!

    So instead of
    $this->review_log();
    I plot in
    $this->review_log($new_status, $old_status, $post->ID);
    ?
    Will try 🙂

    Confirmed that this also works for me (with only LearnPress add-on plugins currently installed and enabled in my WP install).

    Unfortunately it only fixed the problem of not being able to add course curriculum – but not the rest of the problems … As it is for a client, I had to switch to another system :-/

    Plugin Author ThimPress

    (@thimpress)

    Hello,

    A new release will be available early next week to fix this issue as well as tons of improvements. Thanks for your report.

    LearnPress Team

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error on save/update courses (also)’ is closed to new replies.