Hello,
Up until a few weeks ago my site was running great with this script, then it decided to stop working. It is a perl script which grabs data from my suppliers XML feed and imports it into my database. It used to import 2,000 products, update their stock level, add the category, image, price etc etc. I can't see a reason why it has stopped working, could it be because of possible Perl updates on the server?
I setup a cronjob to run the script, which starts fine but when checking the log file it throws the following error:
Done fetching feeds
Not an ARRAY reference at line 100
Append Descriptions
Starting foreach now
Line 100 and just after is this below:
elsif ( ref($PuckerLabRef) ) {
foreach ( @$PuckerLabRef ) {
if ( $_ ne '' ) {
$_ =~ s/\s+$//;
$$args{options_labels} .= "$_~";
}
}
}
&log($code, "(options: $$args{options_labels})") if $$args{options_labels} ne '';
Any idea what could be wrong? I contact the helpdesk here, but were unable to help and referred me to this forum.
Any help would be greatly appreciated.
Regards,
Dale