Re: [PHP] No errors gets displayed, just a blank page
At 7:04 PM + 12/8/10, Ashley Sheridan wrote: I'd also check any errors logs for this site made by Apache, as that will tell you where PHP is falling over. If you have access to the whole server run a 'tail -f' command in a terminal and go to your site again in the browser, that way, you'll see the new error messages as they come in. Thanks, Ash Ash: Oddly enough, I just learned of that within this last year or two. Most of my past host did not have errors logs placed in a convenient and obvious place for me to notice them. However, when I started hosting with Daniel Brown (great host BTW) I noticed errors logs appearing in my on-line working folders. Not really knowing what they were, I looked and now they became something I rely upon. So, if your host provides them, then look for errors within. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] No errors gets displayed, just a blank page
On Wed, 2010-12-08 at 13:16 -0500, tedd wrote: > At 2:07 AM +0100 12/8/10, Rico Secada wrote: > >Hi. > > > >What can cause that no parse error gets displayed (blank page/no output > >at all) even though error reporting is set to "-1"? > > > >I have run the script through php lint on the console and it comes up > >with no errors. > > > >I have run into this problem the last couple of days making debugging a > >nightmare. > > > >Anyone with experience in this behavior? > > > >Thanks and best regards > > > >Rico > > Rico: > > You probably have an error. > > So, start with a blank page that contains echo('aaa'); and see if it > runs. If it does, then 'aaa' will be printed. > > Then start adding your code in small portions and run same until you > don't see 'aaa' appear. From there, figure out what portion of your > code doesn't work. > > That is a "sure fire" way to find all errors. > > Cheers, > > tedd > > -- > --- > http://sperling.com/ > I'd also check any errors logs for this site made by Apache, as that will tell you where PHP is falling over. If you have access to the whole server run a 'tail -f' command in a terminal and go to your site again in the browser, that way, you'll see the new error messages as they come in. Thanks, Ash http://www.ashleysheridan.co.uk
Re: [PHP] No errors gets displayed, just a blank page
At 2:07 AM +0100 12/8/10, Rico Secada wrote: Hi. What can cause that no parse error gets displayed (blank page/no output at all) even though error reporting is set to "-1"? I have run the script through php lint on the console and it comes up with no errors. I have run into this problem the last couple of days making debugging a nightmare. Anyone with experience in this behavior? Thanks and best regards Rico Rico: You probably have an error. So, start with a blank page that contains echo('aaa'); and see if it runs. If it does, then 'aaa' will be printed. Then start adding your code in small portions and run same until you don't see 'aaa' appear. From there, figure out what portion of your code doesn't work. That is a "sure fire" way to find all errors. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] No errors gets displayed, just a blank page
wats the setting of display_errors php.net/display_errors ? if you are not getting any output it might be because of a simple parse error (mismatched brackets, misplaced semicolon etc) or an exit/die command Kranthi. http://goo.gl/e6t3 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] No errors gets displayed, just a blank page
Hi. What can cause that no parse error gets displayed (blank page/no output at all) even though error reporting is set to "-1"? I have run the script through php lint on the console and it comes up with no errors. I have run into this problem the last couple of days making debugging a nightmare. Anyone with experience in this behavior? Thanks and best regards Rico -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] no errors ?
GOT IT, basically in a script like this php treats these as contants, and issues a notice saying that undefined constants are being used. The default setting for the php.ini file is : error_reporting = E_ALL &~E_NOTICE thus all notices are not displayed. setting error_reporting to E_ALL solves this thx everybody gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] no errors ?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, Check these three ini settings, log_errors display_errors error_log My guess is the you have log_errors on, display_errors off, & error_log as your apache access log. HTH! ~Pauly On Thursday 03 October 2002 04:20 am, gamin wrote: > Yes, > >Short tags should be On, cause > > phpinfo(); > ?> > > results in the exptected page. > > Still unable to understand why this is happening, here are some of the > following code snippets with the errors: > > somejunk; > somemorejunk; > anotherlineofjunk; > ?> > > NO ERROR REPORTED FROM PHP > > [results in the Apache/access.log] 127.0.0.1 - - [03/Oct/2002:13:33:49 > +0530] "GET /real/1.php HTTP/1.1" 200 5 > --- > somejunk; > somemorejunk; > anotherlineofjunk; > ?> > > Parse error: parse error, unexpected T_STRING in c:\program files\apache > group\apache\htdocs\real\1.php on line 2 > > [results in the Apache/access..log] 127.0.0.1 - - [03/Oct/2002:13:36:08 > +0530] "GET /real/1.php HTTP/1.1" 200 161 > --- > I hope this provides enough information to someone who can tell what is > going wrong. > > thx > > gamin. - -- ~Paul Nicholson Design Specialist @ WebPower Design "The webthe way you want it!" [EMAIL PROTECTED] "It said uses Windows 98 or better, so I loaded Linux!" Registered Linux User #183202 using Register Linux System # 81891 -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9nF+5DyXNIUN3+UQRAoHwAKCFSQRiKmtqoK/JpH8sjzES4SergQCeJsG+ ixl5HmQnDPeKopG2T6IyKuU= =jz2k -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] no errors ?
Yes, Short tags should be On, cause results in the exptected page. Still unable to understand why this is happening, here are some of the following code snippets with the errors: NO ERROR REPORTED FROM PHP [results in the Apache/access.log] 127.0.0.1 - - [03/Oct/2002:13:33:49 +0530] "GET /real/1.php HTTP/1.1" 200 5 --- Parse error: parse error, unexpected T_STRING in c:\program files\apache group\apache\htdocs\real\1.php on line 2 [results in the Apache/access..log] 127.0.0.1 - - [03/Oct/2002:13:36:08 +0530] "GET /real/1.php HTTP/1.1" 200 161 --- I hope this provides enough information to someone who can tell what is going wrong. thx gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] no errors ?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, Is short_tags on? ~Pauly On Wednesday 02 October 2002 05:51 pm, gamin wrote: > hi, > > i'm running PHP 4.0.6 with apache on RedHat 7.2 , error_reporing is set > to default(2039) in the php.ini file : > my script is as follows : > > qwe; > > > dsf > ?> > > But i dont get even a parse error or anything > > Any clues to what is going wrong ? > > thx > > gamin. - -- ~Paul Nicholson Design Specialist @ WebPower Design "The webthe way you want it!" [EMAIL PROTECTED] "It said uses Windows 98 or better, so I loaded Linux!" Registered Linux User #183202 using Register Linux System # 81891 -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9m3xHDyXNIUN3+UQRAn1NAJ0S3zXi7JQ9OPg2/m9B1Vx4NHu/wQCeJQwR 8KACs0TmgDXQunDdRI7DHT4= =b7S7 -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] no errors ?
I noticed that by default, my display_errors was actually OFF, and the only way to see my errors was through Apache's error.log file I don't know if that's already been checked, but... figured I'd try to help. -Jason Gamin wrote: > Yes, > > On both my development machine and implmetation machine i have the same > error_reporting. >error_reporing = 2039 (that is what phpinfo() gives me ) is equivalent > to E_ALL^E_NOTICE. And still i cant seem to get any error, even on a winxp > system running Apache and PHP 4.2.1 (from the php.ini file) - > > error_reporting = E_ALL & ~E_NOTICE > > I still cant understand why PHP is not complaining ? > > thx > > gamin. > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] no errors ?
Yes, On both my development machine and implmetation machine i have the same error_reporting. error_reporing = 2039 (that is what phpinfo() gives me ) is equivalent to E_ALL^E_NOTICE. And still i cant seem to get any error, even on a winxp system running Apache and PHP 4.2.1 (from the php.ini file) - error_reporting = E_ALL & ~E_NOTICE I still cant understand why PHP is not complaining ? thx gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] no errors ?
Shot in the dark that may or may not help... Look into display_errors and log_errors. I think those are the names. They control where error output goes. Cheers, Rob. gamin wrote: > > hi, > > i'm running PHP 4.0.6 with apache on RedHat 7.2 , error_reporing is set to > default(2039) in the php.ini file : > my script is as follows : > > qwe; > > dsf > ?> > > But i dont get even a parse error or anything > > Any clues to what is going wrong ? > > thx > > gamin. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109 | :--: | Website : http://www.webmotion.com | | Fax : (613) 260-9545 | `--' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] no errors ?
Check ur php.ini, there are settings to display showing absolutly any error, warning, and message. they are probaly set to not show them. error_reporting = E_ALL & ~E_NOTICE thats what i use, only displays what i need Jason Reid [EMAIL PROTECTED] -- AC Host Canada www.achost.ca - Original Message - From: "gamin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 02, 2002 3:51 PM Subject: [PHP] no errors ? > hi, > > i'm running PHP 4.0.6 with apache on RedHat 7.2 , error_reporing is set to > default(2039) in the php.ini file : > my script is as follows : > > qwe; > > > dsf > ?> > > But i dont get even a parse error or anything > > Any clues to what is going wrong ? > > thx > > gamin. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] no errors ?
hi, i'm running PHP 4.0.6 with apache on RedHat 7.2 , error_reporing is set to default(2039) in the php.ini file : my script is as follows : But i dont get even a parse error or anything Any clues to what is going wrong ? thx gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php