Hi David
Can you shed any light on the following errors which are creating some very large error logs on our server. What can we do to stop this.
Chris
[Mon Dec 15 10:29:18 2008] [error] [client 85.233.190.121] PHP Notice: Undefined index: STOCKOPTION in /var/www/vhosts/OURSITE.co.uk/httpdocs/productsearch/musicshops/includes/MagicParser.php on line 1, referer: http://www.OURSITE.co.uk/productsearch/musicshops/admin/
[Mon Dec 15 11:31:41 2008] [error] [client 85.233.190.121] PHP Notice: Undefined index: MEDIA in /var/www/vhosts/OURSITE.co.uk/httpdocs/productsearch/musicshops/includes/MagicParser.php on line 1, referer: http://www.OURSITE.co.uk/productsearch/musicshops/admin/feeds_register_step2.php?filename=td_lovefilm.xml&useFormat=formatDetected&formatDetected=xml%7CPRODUCTS%2FPRODUCT%2F&formatSelected=
Hi David
Had a go at the first option and it worked great.
Many thanks
Chris
Hi Chris,
This is happening because your PHP installation is configured with the highest logging
level; combined with the situation in which some of the records in your feed do not
contain the same field as the original record.
The first thing I would try, is to add the following code
right at the top of includes/common.php (inside the opening PHP tag):
error_reporting(E_ERROR);
ini_set("log_errors","0");
If that doesn't stop the logging to your server's error log, a
similar change will need to be made in php.ini if you have
access to that - look for "log_errors" and change it to:
log_errors = Off
(note that Apache will need to be restarted before any changes
to PHP take effect)
Fingers crossed the code mod described above should do the trick.
Cheers,
David.