Page 1 of 1
Help with Undefined offset on line 0
Posted: Tue Mar 20, 2007 7:34 am
by andregenovese
Hi there,
How do you debug an error on line 0?
I am getting the following:
Undefined offset: 420 in /filename.php on line 0
however, since the parser is giving me line 0, I don't know where to start....what does line 0 mean?
Thanks,
A.
Posted: Tue Mar 20, 2007 7:39 am
by volka
Please try
Code: Select all
<?php
error_reporting(E_ALL);
ini_set('display_errors', true);
session_start();
echo 'auto_append_file: ', get_cfg_var('auto_append_file');
Posted: Tue Mar 20, 2007 8:32 am
by feyd
Could also be from auto_prepend_file.
Posted: Tue Mar 20, 2007 8:50 am
by volka
oops, actually I was thinking about auto_
prepend_file.
Code: Select all
<?php
error_reporting(E_ALL);
ini_set('display_errors', true);
session_start();
echo 'auto_prepend_file: ', get_cfg_var('auto_prepend_file'), "<br />\n";
echo 'auto_append_file: ', get_cfg_var('auto_append_file'), "<br />\n";
Thanks
Posted: Tue Mar 20, 2007 10:35 am
by andregenovese
Thanks for the prompt response....
The error magically disappeared (damn!!!), so I cannot debug it....the script imports values from an excel sheet and unfurtunately I lost the Excel sheet that was giving me problems and I cannot recreate the error!
Anyway, what would the lines of code provided have done?
Thanks a lot for your time!
Re: Thanks
Posted: Tue Mar 20, 2007 3:21 pm
by feyd
andregenovese wrote:Anyway, what would the lines of code provided have done?
You can still run them and find out.
Or look in the manual for the functions used...
Thanks
Posted: Tue Apr 03, 2007 1:14 pm
by andregenovese
Just a quick message to thank you all for your time...
A.