Add check before strpos
-
File: /wp-content/plugins/wp-super-cache/wp-cache-base.php on line 20.
Error:PHP Warning: strpos(): Offset not contained in string in /var/www/vhosts/jcsuurmond.nl/httpdocs/wp-content/plugins/wp-super-cache/wp-cache-base.php on line 20
Solution: Add an extra check to the if statement. So instead of
if ( strpos( $request_uri, '/', 1 ) ) {}
this should be usedif ( $request_uri && strpos( $request_uri, '/', 1 ) ) {}
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Add check before strpos’ is closed to new replies.