• Resolved itshanksgiving

    (@itshanksgiving)


    Hello,

    I am getting a Fatal error when activating the plug-in, could you please take a look at if for me? would appreciate it. I’ve included the fatal error details below for reference:

    Fatal error: Can’t use function return value in write context in /home/username/public_html/wp-content/plugins/masterstudy-lms-learning-management-system/lms/helpers.php on line 124

    Related code on line 124:
    if (!empty(intval($length))) {
    $w_length = mb_strlen($word);
    if ($w_length > $length) {
    $word = mb_strimwidth($word, 0, $length, $affix);

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @itshanksgiving,

    Please upgrade your PHP version on your site/server (at least PHP 5.6) and it will solve the problem.

    regards

    Hello, I have one fatal error :
    Fatal error: Can’t use function return value in write context in /var/www/censured.net/public_html/wp-content/plugins/masterstudy-lms-learning-management-system/lms/helpers.php on line 127
    _________________________________________________________________________________
    if (!empty(intval($length))) {
    $w_length = mb_strlen($word);
    if ($w_length > $length) {
    $word = mb_strimwidth($word, 0, $length, $affix);
    }
    }

    return sanitize_text_field($word);

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error When Activating plugin’ is closed to new replies.