Errors
Permalink Browser Info Environment
The template works for most pages.
However, about 30% of the time, I get an error message about an "invalid argument in foreach on line 71"
The first of the lines is 71.
<?php foreach ($files as $fObj) :
$sizes = @getimagesize($fObj->getPath());
$img_thumb_size = $i->getThumbnail($fObj,$thumbWidth,$thumbHeight == 'auto' ? $thumbWidth : $thumbHeight, true);
//var_dump($img_thumb_size['width']);
if (!$img_thumb_size->src) continue;
The standard Page List template works fine. Any thoughts?
When using the standard Fileset Template, the following displays:
{"bID":"1076","aID":"696","arHandle":"Main","error":false,"cID":"370"}
This may be due to an issue of using a fileset for an individual image. However, it was unclear how to setup for individual images.
However, about 30% of the time, I get an error message about an "invalid argument in foreach on line 71"
The first of the lines is 71.
<?php foreach ($files as $fObj) :
$sizes = @getimagesize($fObj->getPath());
$img_thumb_size = $i->getThumbnail($fObj,$thumbWidth,$thumbHeight == 'auto' ? $thumbWidth : $thumbHeight, true);
//var_dump($img_thumb_size['width']);
if (!$img_thumb_size->src) continue;
The standard Page List template works fine. Any thoughts?
When using the standard Fileset Template, the following displays:
{"bID":"1076","aID":"696","arHandle":"Main","error":false,"cID":"370"}
This may be due to an issue of using a fileset for an individual image. However, it was unclear how to setup for individual images.
Type: | Discussion |
---|---|
Status: | New |