[TYPO3] tx_yafi - Fatal Error
Marc Weigand
info at marcweigand.de
Thu Sep 25 11:31:03 CEST 2008
> -v does the magic thing.
> Too obvious for me I guess :s
>
> Anyways the output was the same.
>
> /var/www/web/typo3/cli_dispatch.phpsh yafi import -p 93 -v
> Fatal error: Cannot use string offset as an array in
> /var/www/web/typo3conf/ext/yafi/importers/class.tx_yafi_ttnews_importer.php
> on line 100
I figured out that yafi still imports the feeds that were already
there but if I add new ones they won't be imported. last_import and
last_import_localtime in tx_yafi_feed are still 0. I'm not getting
this. Why would it it keep importing the old stuff with the cronjob
but not the news ones. And why does it tell me that the following is
wrong?
foreach is the specific line:
function importStart(tx_yafi_feed_info $feedInfo, $xmlConf) {
$conf = t3lib_div::xml2array($xmlConf);
$this->conf = array();
foreach ($conf['data']['sDEF']['lDEF'] as $field => $valArray) {
$this->conf[$field] = trim($valArray['vDEF']);
}
if ($this->conf['archivePeriod'] == '' ||
($this->conf['archivePeriod'] =
strtotime($this->conf['archivePeriod'], time())) > time()) {
$this->conf['archivePeriod'] = 0;
}
if ($this->conf['categories']) {
$this->conf['categories'] =
array_unique(t3lib_DB::cleanIntArray(t3lib_div::trimExplode(',',
$this->conf['categories'], 0)));
}
else {
$this->conf['categories'] = array();
}
$this->catCount = count($this->conf['categories']);
}
More information about the TYPO3-english
mailing list