I am using ronneby theme by themeforest. Thanks to that theme, I can't modify almost all contents on the website admin. (BTW all was working some days ago) The front works OK. You can check it at www.probiocolageno.com but the backend gives me this errors:
PHP Notice: Undefined offset: 0 in /home/nutrafood/public_html/probiocolageno/wp-content/themes/ronneby/inc/cleanup.php on line 58
PHP Notice: Undefined offset: 0 in /home/nutrafood/public_html/probiocolageno/wp-content/themes/ronneby/inc/cleanup.php on line 59
The code in those lines is (this are lines 51 to 60):
/**
* Clean up output of stylesheet <link> tags
*/
function dfd_clean_style_tag($input)
{
preg_match_all("!<link rel='stylesheet'\s?(id='[^']+')?\s+href='(.*)' type='text/css' media='(.*)' />!", $input, $matches);
// Only display media if it's print
$media = $matches[3][0] === 'print' ? ' media="print"' : '';
return '<link rel="stylesheet" href="' . $matches[2][0] . '"' . $media . '>' . "\n";
}
Any clue from where to start will be appreciated
Edit: That function (dfd_clean_style_tag
) is also in the same file, lines before (line 34): add_filter('style_loader_tag', 'dfd_clean_style_tag');