Fatal error: Can't use function return value in write context in /home/mornin70/public_html/wp-

I updated the coursepress pro and this is the error. Please help I cannot get into the back end nor can students take a class.

Fatal error: Can't use function return value in write context in /home/mornin70/public_html/wp-content/plugins/coursepress/2.0/include/coursepress/data/shortcode/class-coursetemplate.php on line 425

  • Vaughan

    Hi Nancy,

    Hope you're well?

    This is a known bug and is because your PHP version is less than 5.5, we will hopefully be releasing a fix for this soon.

    For now, you can either ask your webhost to update PHP to the latest php 5.6 or php 7, or I can provide a patch file for you.

    Please find the attached zip.

    Unzip it to your desktop, then using FTP.

    Upload the enclosed class-coursetemplate.php to the following location;

    /wp-content/plugins/coursepress/2.0/include/coursepress/data/shortcode/

    That should fix the issue for you.

    Hope this helps

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.