The error comes up because the server doesn’t even have a SCRIPT_URI index in the array. You can solve the error by replacing the serve_static function in the file router.cls.php with this:
public static function serve_static()
{
if( array_key_exists('SCRIPT_URI', $_SERVER)) {
if ( strpos( $_SERVER[ 'SCRIPT_URI' ], LITESPEED_STATIC_URL . '/' ) !== 0 ) {
return ;
}
$path = substr( $_SERVER[ 'SCRIPT_URI' ], strlen( LITESPEED_STATIC_URL . '/' ) ) ;
$path = explode( '/', $path, 2 ) ;
}
if ( empty( $path[ 0 ] ) || empty( $path[ 1 ] ) ) {
return ;
}
switch ( $path[ 0 ] ) {
case 'avatar' :
Avatar::get_instance()->serve_satic( $path[ 1 ] ) ;
break ;
case 'cssjs' :
Optimize::get_instance()->serve_satic( $path[ 1 ] ) ;
break ;
default :
break ;
}
}
If you don’t want to edit code, just replace the whole router.cls.php file with this: https://pastebin.com/gtbbJ006
-
This reply was modified 4 years, 6 months ago by needforbeans.