Osclass Support Forums

Osclass plugin support => Cache Plugin => Topic started by: buninsan on January 13, 2019, 06:54:45 PM

Title: Warning: strtolower() expects parameter 1 to be string, array given
Post by: buninsan on January 13, 2019, 06:54:45 PM
Hello!
Sorry, I'm using Google translator.
Please tell me how to fix warnings on php7 and higher
Warning: strtolower() expects parameter 1 to be string, array given in /oc-content/plugins/cache/functions.php on line 277
Title: Re: Warning: strtolower() expects parameter 1 to be string, array given
Post by: MB Themes on January 13, 2019, 10:30:55 PM
Let me check that
Title: Re: Warning: strtolower() expects parameter 1 to be string, array given
Post by: MB Themes on January 14, 2019, 11:22:44 AM
@buninsan
In file:
oc-content/plugins/cache/functions.php

Find:
Code: [Select]
$output .= strtolower($n) . '-' . strtolower($v);
change to:
Code: [Select]
$output .= @strtolower($n) . '-' . @strtolower($v);
Title: Re: Warning: strtolower() expects parameter 1 to be string, array given
Post by: buninsan on January 16, 2019, 01:49:33 PM
Thank!