• Resolved vishalthapar

    (@vishalthapar)


    Hi,

    I need help on this ASAP. I’m teaching a course in 16 hours. I have all my materials on the website vishalthapar.com/bioinformatics but as soon as I updated the coursepress, it now goes to “Fatal error: Can’t use function return value in write context in /home/content/66/13956866/html/bioinformatics/wp-content/plugins/coursepress/2.0/include/coursepress/data/shortcode/class-coursetemplate.php on line 425”

    I believe you have a fix for this via a zip file. The error is caused due to incompatibility with PHP 5.3/5.4. I’m on 5.3

    I am unable to download this file from the web. Could you please share this with me ASAP so that I can teach my class tomorrow before I migrate my site to PHP 5.6?

    Help.

    Thanks,

    Vishal

Viewing 5 replies - 1 through 5 (of 5 total)
  • Check that CoursePress is active. When I did the latest update I got an error and discovered the plugin somehow deactivated itself…

    I have had nothing but problems with CoursePress. It is hands down the worst quality plugin I have ever used. It is full of bugs and every update breaks something. My advice is to switch to something else. CoursePress is ridiculously overpriced given the quality… LearnPress is free for unlimited courses. WP Courseware is $100/yr for unlimited courses. Sensai, from Automattic (the company behind WordPress), is $129/site for unlimited courses. LearnDash is about $150/yr for unlimited courses. Then we get CoursePress — a ridiculous $600/yr for unlimited courses.

    Thread Starter vishalthapar

    (@vishalthapar)

    Thanks so much. I’ll switch to something else as soon as I can get to the console. Right now all I get is this error message on my page. How does one get to the WP console to deactivate in that case? My site is at vishalthapar.com/bioinformatics

    Best,
    -v

    Thread Starter vishalthapar

    (@vishalthapar)

    SO I made some changes in the file webroot / bioinformatics / wp-content / plugins / coursepress / 2.0 / include / coursepress / data / shortcode / class-coursetemplate.php
    line 422-433 as shown below. It got my site back but this is a hack and I’m sure it will make other things fail. I’ll now try to get my materials and other stuff and take it to a different plug in.

    /**
    * If there is no script, made a regular link instead of button.
    */
    //vishal if ( empty( wp_script_is( ‘coursepress-front-js’ ) ) ) {
    /**
    * fix button on shortcode
    */
    /*vishal if ( ‘enroll’ == $button_option ) {
    $button_option = ‘details’;
    } end vishal*/
    $buttons[ $button_option ][‘type’] = ‘link’;
    // vishal }

    Thanks,
    -v

    There’s no easy way to move your data out of CoursePress. There is an export option but it creates an archive for import to another site running CoursePress. It’s possible you’ll be able to work with those files, but you’ll probably have to do it the old fashioned way of copying and pasting.

    The best option for using a different LMS would be to set up a new staging site, configure it out how you want, set up the courses, and then make that your production site. I don’t know if that’s an option for you or not, but it would give you a clean start.

    My site owner wants to stick with CoursePress because she is comfortable with it, but I would change if it was an option for me.

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @vishalthapar,

    My apologies for the frustration this issue has caused.

    The hotfix is available for this version and the new CoursePress update will be out soon.

    Fot now please download the class-coursetemplate.php from to fix this issue
    Download link:
    https://ufile.io/2dd90

    Please put it at coursepress/2.0/include/coursepress/data/shortcode folder. Replace the current file there with the downloaded one.

    Let me know if you have any further questions!

    Kind regards,
    Nastia

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal Error after latest update’ is closed to new replies.