• Our activity page broke, with the message below, when we tried to disable youtube lyte to figure out why Youtube videos, which were showing on the activity page, just suddenly disappeared. It was as if youtube video URLs were not there. And we did not update the plugin or our theme. We tried restoring the website to a previous time when it worked fine, but that did not help.

    Will appreciate any of your recommendation(s). Thanks

    Message
    call_user_func_array()expects parameter 1 to be a valid callback, function ‘lyte_parse’ not found or invalid function name in /home/eforreal/public_html/wp-includes/class-wp-hook.php on line 288

    Code with the marked line number 288

    // Avoid the array_slice if possible.
    if ( $the_[‘accepted_args’] == 0 ) {
    $value = call_user_func_array( $the_[‘function’], array() );
    } elseif ( $the_[‘accepted_args’] >= $num_args ) {
    $value = call_user_func_array( $the_[‘function’], $args );
    } else {
    $value = call_user_func_array( $the_[‘function’], array_slice( $args, 0, (int) $the_[‘accepted_args’] ) );
    }
    }
    } while ( false !== next( $this->iterations[ $nesting_level ] ) );

    unset( $this->iterations[ $nesting_level ] );
    unset( $this->current_priority[ $nesting_level ] );

    $this->nesting_level–; ——288

    return $value;
    }

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    In that case you have something (a couple of lines of code, maybe in functions.php or in a separate plugin or in a code snippet) that calls lyte_parse() which is provided by LYTE but is not available when LYTE is disabled?

    Thread Starter Kparth3000

    (@eforreal79)

    The error that is preventing the thumbnail from showing up, in the activity page, seem to be related to ly not being defined in autoptimize.

    I have added lyte-min.js, lyte.js to the JS comma-separated exclusion list, but it does not seem to solve the problem, even when the “Also aggregate inline JS?” is set to off.

    Would appreciate any help?

    Thanks again

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    if LYTE is not active, there is not lyte.min.js and there should be no code referring to ly.te() any more. but all of this is on JS level (in the browser), whereas your original error-message is at a PHP level (on the server). Pretty sure somewhere there’s custom code trying to call lyte_parse() which fails when LYTE is not active, but I can’t tell you where :-/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘When we tried to disable wpyoutubelyte’ is closed to new replies.