Ciao a tutti,
ho caricato un sito in remoto momentaneamente posizionato momentaneamente in una cartella secondaria (www/new/) per essere testato. In alcune pagine appare questo messaggio:
Warning: Invalid argument supplied for foreach() in/public_html/new/plugins/k2/png4k2/png4k2.php on line 319
Dalla linea 319 del file png4k2.php parte questo codice:
$resultImages = glob (JPATH_SITE.DS.'media'.DS.'k2'.DS.'items'.DS.'cache'.DS.$md5.'_*');
if(count($resultImages)) {
foreach($resultImages as $resultImage) {
foreach($imgs as $imgChar=>$imgValue)
{
$pos = stripos($resultImage, $imgChar);
if ($pos !== false) {
$info = pathinfo($resultImage);
$item->$imgValue = JURI::root().'media/k2/items/cache/'.$md5.$imgChar.'.'.$info['extension'];
if ($params->get('imageTimestamp'))
{
$item->$imgValue .= $timestamp;
}
}
}
}
}
Qualcuno gentilmente può dirmi da cosa dipende questo problema?
Inoltre ho notato che se provo a scrivere un nuovo articolo su k2 dal backend appaiono questi messaggi:
Warning: Invalid argument supplied for foreach() in /public_html/new/plugins/k2/png4k2/png4k2.php on line 354Warning: Invalid argument supplied for foreach() in /public_html/new/plugins/k2/png4k2/png4k2.php on line 364Warning: Invalid argument supplied for foreach() in /public_html/new/plugins/k2/png4k2/png4k2.php on line 354Warning: Invalid argument supplied for foreach() in /public_html/new/plugins/k2/png4k2/png4k2.php on line 364Warning: Invalid argument supplied for foreach() in /public_html/new/plugins/k2/png4k2/png4k2.php on line 354Warning: Invalid argument supplied for foreach() in /public_html/new/plugins/k2/png4k2/png4k2.php on line 364Warning: Invalid argument supplied for foreach() in /public_html/new/plugins/k2/png4k2/png4k2.php on line 354Warning: Invalid argument supplied for foreach() in /public_html/new/plugins/k2/png4k2/png4k2.php on line 364Warning: Invalid argument supplied for foreach() in /public_html/new/plugins/k2/png4k2/png4k2.php on line 354Warning: Invalid argument supplied for foreach() in /public_html/new/plugins/k2/png4k2/png4k2.php on line 364Warning: Invalid argument supplied for foreach() in /public_html/new/plugins/k2/png4k2/png4k2.php on line 354Warning: Invalid argument supplied for foreach() in /public_html/new/plugins/k2/png4k2/png4k2.php on line 364Warning: Invalid argument supplied for foreach() in /public_html/new/plugins/k2/png4k2/png4k2.php on line 354Warning: Invalid argument supplied for foreach() in /public_html/new/plugins/k2/png4k2/png4k2.php on line 364
Vi ringrazio in anticipo per qualsiasi consiglio!