Re: [PHP] 'weird error' possibly related to APC... how to begin debugging?
On Tue, August 15, 2006 2:27 pm, Jochem Maas wrote: the error is this: PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0 I've seen messages like this in evaled code. I think I also saw something like this that was something really sick in the guts of PHP itself and it happened at startup from a buggy CVS version... I'm running APC version 3.0.8, I have tried running APC 3.0.10 but that gives me a plethora of segfaults that I'd rather not get into. does anyone have any idea as to what could be the cause? Is it feasible to try running without APC at all? If you can do that, and narrow down the problem to APC it would reduce your search space for the bug. Do you have any eval calls in your code? Precede them with time-stamped error_log of what you are about to eval() and then see if they correspond with your other error message. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] weird error, cookies??
Hi Angelo, This simply means that the redirection keeps going, like so: foo.php ?php header('Location: /bar.php'); ? bar.php ?php header('Location /foo.php'); ? Check the logic in your application that decides if the user gets redirected and make sure you're not making any incorrect assumptions. Cheers, David Grant Angelo Zanetti wrote: Hi guys. Been working on my site and then been trying to navigate through it, the once page redirects to another. then all of a sudden I get this weird popup (in mozilla) Redirection limit for this URL exceeded. Unable to load requested page Also IE seems to timeout. The page redirects from http to https. anyone come across this or know what the problem is? Thanks in advance. -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] weird error, cookies??
Angelo Zanetti wrote: Hi guys. Been working on my site and then been trying to navigate through it, the once page redirects to another. then all of a sudden I get this weird popup (in mozilla) Redirection limit for this URL exceeded. Unable to load requested page Also IE seems to timeout. The page redirects from http to https. yeah and I bet by the time the request comes back to your webserver it sees it as a HTTP request - ergo an infinite loop. are you using Squid per chance? or maybe doing something fancy with url rewriting in Apache? one of those is likely to be causing the infinite loop. anyone come across this or know what the problem is? I have been fighting the such a problem all today - a site that requires HTTPS for logged in customers (only), the site lives behind Squid (reverse proxy) and Squid hits Apache with HTTP requests... and if you try to hit the login page as http://mydomain/login.php it redirects to https://mydomain/login.php which is recieved by Squid which passes it to http://127.0.0.1/login.php - and the redirect occurs again - lots of fun really, and Squid configuration isn't mind numbingly painful either! hth to give you some possible insight :-/ Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] weird error, cookies??
Check your http access file to verify what david and jochem have said, you should see lines upon lines of access for the pages in question. Jochem Maas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Angelo Zanetti wrote: Hi guys. Been working on my site and then been trying to navigate through it, the once page redirects to another. then all of a sudden I get this weird popup (in mozilla) Redirection limit for this URL exceeded. Unable to load requested page Also IE seems to timeout. The page redirects from http to https. yeah and I bet by the time the request comes back to your webserver it sees it as a HTTP request - ergo an infinite loop. are you using Squid per chance? or maybe doing something fancy with url rewriting in Apache? one of those is likely to be causing the infinite loop. anyone come across this or know what the problem is? I have been fighting the such a problem all today - a site that requires HTTPS for logged in customers (only), the site lives behind Squid (reverse proxy) and Squid hits Apache with HTTP requests... and if you try to hit the login page as http://mydomain/login.php it redirects to https://mydomain/login.php which is recieved by Squid which passes it to http://127.0.0.1/login.php - and the redirect occurs again - lots of fun really, and Squid configuration isn't mind numbingly painful either! hth to give you some possible insight :-/ Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Weird Error Help
Thanks for your help guys... I can't seem to locate the culprut though... here is my line of code it refers to: echo /tr.$nav_bar_end; all it does is close a table though... i hate to blame this error on the PHP processor... but I am wondering if there could be a corrupt install of PHP on my web server this site has been up for about 6 months and all that brought it on was a server change... I also did try uploading the files file a couple different ftp clients... in binary and ascii... but i still get the intermitant error... I did add ob_start() and ob_flush() to the site... that seemed to reduce the occurance of the error though... Thanks! Joe On Thu, 17 Feb 2005 15:41:10 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: Joe Harman wrote: Hey has anyone had an error like this one? and have a solution --- Warning: Unexpected character in input: '' (ASCII=1) state=1 in **/_eid_page_functions.php on line 173 it appears to be very random... could be my PHP code... but the only thing that has happened since this error occured is that we moved the site to a new server Perhaps the file got garbled in the move... Check that there isn't an ASCII 1 character (control-A) in there in a hex editor or something. Also re-copy over some files using a different mechanism and do some diff to be SURE the files are the same. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Weird Error Help
On Thu, 17 Feb 2005 17:04:06 -0500, Joe Harman [EMAIL PROTECTED] wrote: Hey has anyone had an error like this one? and have a solution --- Warning: Unexpected character in input: '' (ASCII=1) state=1 in **/_eid_page_functions.php on line 173 it appears to be very random... could be my PHP code... but the only thing that has happened since this error occured is that we moved the site to a new server I saw an error like that once when I had a space at the end of a heredoc start tag. -- Greg Donald Zend Certified Engineer http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Weird Error Help
Joe Harman wrote: Hey has anyone had an error like this one? and have a solution --- Warning: Unexpected character in input: '' (ASCII=1) state=1 in **/_eid_page_functions.php on line 173 it appears to be very random... could be my PHP code... but the only thing that has happened since this error occured is that we moved the site to a new server Perhaps the file got garbled in the move... Check that there isn't an ASCII 1 character (control-A) in there in a hex editor or something. Also re-copy over some files using a different mechanism and do some diff to be SURE the files are the same. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] weird error, might be javascript?
I have had similar problems in the past Angelo and viewing the source of the HTML file usually helps identify and localise the problematic line. -- - Michael Mason Arras People www.arraspeople.co.uk - John Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Angelo Zanetti wrote: I have been working on a pretty big project over the last couple of months and then all of a sudden I started getting errors in my browser, the error in the bottom left corner with the yellow icon. anyway Im not sure what causes these errors. It says that it expects a ) on line 597 of that page. That's a JavaScript error. Look at line 597 of the HTML source, not the PHP source, to find the error. -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] weird error, might be javascript?SOLVED
Hi, Well I had to basically reconstruct my Javascript file by uncommenting a function and testing that it didnt give an error. I eventually found a small error. It was a really long process and the line numbers in the errrors didnt help. So, thanks to those that contributed anyway. Angelo Harlequin [EMAIL PROTECTED] 8/13/2004 1:36:35 PM I have had similar problems in the past Angelo and viewing the source of the HTML file usually helps identify and localise the problematic line. -- - Michael Mason Arras People www.arraspeople.co.uk - John Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Angelo Zanetti wrote: I have been working on a pretty big project over the last couple of months and then all of a sudden I started getting errors in my browser, the error in the bottom left corner with the yellow icon. anyway Im not sure what causes these errors. It says that it expects a ) on line 597 of that page. That's a JavaScript error. Look at line 597 of the HTML source, not the PHP source, to find the error. -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Disclaimer This e-mail transmission contains confidential information, which is the property of the sender. The information in this e-mail or attachments thereto is intended for the attention and use only of the addressee. Should you have received this e-mail in error, please delete and destroy it and any attachments thereto immediately. Under no circumstances will the Cape Technikon or the sender of this e-mail be liable to any party for any direct, indirect, special or other consequential damages for any use of this e-mail. For the detailed e-mail disclaimer please refer to http://www.ctech.ac.za/polic or call +27 (0)21 460 3911 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] weird error, might be javascript?
Angelo Zanetti wrote: I have been working on a pretty big project over the last couple of months and then all of a sudden I started getting errors in my browser, the error in the bottom left corner with the yellow icon. anyway Im not sure what causes these errors. It says that it expects a ) on line 597 of that page. That's a JavaScript error. Look at line 597 of the HTML source, not the PHP source, to find the error. -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] weird error, might be javascript?
yes but even If I take the page source, its not anywhere near 597 lines long...any other ideas? Sorry forgot to mention it in initial post. John Holmes [EMAIL PROTECTED] 8/11/2004 12:44:25 PM Angelo Zanetti wrote: I have been working on a pretty big project over the last couple of months and then all of a sudden I started getting errors in my browser, the error in the bottom left corner with the yellow icon. anyway Im not sure what causes these errors. It says that it expects a ) on line 597 of that page. That's a JavaScript error. Look at line 597 of the HTML source, not the PHP source, to find the error. -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Disclaimer This e-mail transmission contains confidential information, which is the property of the sender. The information in this e-mail or attachments thereto is intended for the attention and use only of the addressee. Should you have received this e-mail in error, please delete and destroy it and any attachments thereto immediately. Under no circumstances will the Cape Technikon or the sender of this e-mail be liable to any party for any direct, indirect, special or other consequential damages for any use of this e-mail. For the detailed e-mail disclaimer please refer to http://www.ctech.ac.za/polic or call +27 (0)21 460 3911 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] weird error, might be javascript?
Angelo Zanetti wrote: yes but even If I take the page source, its not anywhere near 597 lines long...any other ideas? Sorry forgot to mention it in initial post. Do you have a URL? It's a Javascript error, either way. -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] weird error, might be javascript?
Please do not top post. On Wednesday 11 August 2004 19:03, Angelo Zanetti wrote: yes but even If I take the page source, its not anywhere near 597 lines long...any other ideas? Sorry forgot to mention it in initial post. Depending on your browser and how you view the source the line reported and the line where you will (eventually) find the error may be different. So keep looking. Angelo Zanetti wrote: I have been working on a pretty big project over the last couple of months and then all of a sudden I started getting errors in my As it happened all of a sudden then just roll back your changes to before it happened then implement them step-by-step until it happens all of a sudden again. That should help you pinpoint where the problem is. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* To say phooey to a GUI is no hooey. -- Murphy's Law of GUIs */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] weird error, might be javascript?
On Wed, 11 Aug 2004 13:03:23 +0200, Angelo Zanetti [EMAIL PROTECTED] wrote: yes but even If I take the page source, its not anywhere near 597 lines long...any other ideas? Sorry forgot to mention it in initial post. How long is the JavaScript file? Look at line 597 in that file. If that also does not work, try using Mozilla FireFox. I find it much easier to use for JS debugging. John Holmes [EMAIL PROTECTED] 8/11/2004 12:44:25 PM Angelo Zanetti wrote: I have been working on a pretty big project over the last couple of months and then all of a sudden I started getting errors in my browser, the error in the bottom left corner with the yellow icon. anyway Im not sure what causes these errors. It says that it expects a ) on line 597 of that page. That's a JavaScript error. Look at line 597 of the HTML source, not the PHP source, to find the error. -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Disclaimer This e-mail transmission contains confidential information, which is the property of the sender. The information in this e-mail or attachments thereto is intended for the attention and use only of the addressee. Should you have received this e-mail in error, please delete and destroy it and any attachments thereto immediately. Under no circumstances will the Cape Technikon or the sender of this e-mail be liable to any party for any direct, indirect, special or other consequential damages for any use of this e-mail. For the detailed e-mail disclaimer please refer to http://www.ctech.ac.za/polic or call +27 (0)21 460 3911 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] weird error
Better if you use $_SERVER['REMOTE_ADDR'] and so on... pagongski wrote: Hi guys, I recently installed easy-php on my laptop so i could work on the go without having to upload my scripts to the server to test them out. The problem is that when i tried one of my scripts on it, i get some weird errors, and the script works fine on the online server. Here are some example errors: Notice: Use of undefined constant REMOTE_ADDR - assumed 'REMOTE_ADDR' in c:\win2kapp\easyphp1-7\www\index.php on line 35 Notice: Undefined variable: HTTP_REFERER in . I have register globals on. (was off so i turned them on thinking that might be the problem..didnt work either way) Big thanks. -- Miguel J. Jiménez ISOTROL, S.A. (Área de Internet) Avda. Innovación nº1, 3ª - 41020 Sevilla (ESPAÑA) mjjimenez AT isotrol DOT com --- http://www.isotrol.com ICQ# 12670750 TLFNO. 955036800 ext. 111 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] weird error
From: pagongski [EMAIL PROTECTED] Notice: Use of undefined constant REMOTE_ADDR - assumed 'REMOTE_ADDR' in c:\win2kapp\easyphp1-7\www\index.php on line 35 Notice: Undefined variable: HTTP_REFERER in . I have register globals on. (was off so i turned them on thinking that might be the problem..didnt work either way) The second error shows you did not turn on register globals. Look at a phpinfo() page to confirm you edited the right php.ini. You must restart your webserver after the change, also. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] weird error
John W. Holmes wrote: From: pagongski [EMAIL PROTECTED] Notice: Use of undefined constant REMOTE_ADDR - assumed 'REMOTE_ADDR' in c:\win2kapp\easyphp1-7\www\index.php on line 35 Notice: Undefined variable: HTTP_REFERER in . I have register globals on. (was off so i turned them on thinking that might be the problem..didnt work either way) The second error shows you did not turn on register globals. Look at a phpinfo() page to confirm you edited the right php.ini. You must restart your webserver after the change, also. ---John Holmes... Or he typed the url into the location bar, or selected a bookmark, or... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] weird error
On 03 June 2004 15:52, pagongski wrote: Hi guys, I recently installed easy-php on my laptop so i could work on the go without having to upload my scripts to the server to test them out. The problem is that when i tried one of my scripts on it, i get some weird errors, and the script works fine on the online server. Here are some example errors: Notice: Use of undefined constant REMOTE_ADDR - assumed 'REMOTE_ADDR' in c:\win2kapp\easyphp1-7\www\index.php on line 35 Notice: Undefined variable: HTTP_REFERER in . I have register globals on. (was off so i turned them on thinking that might be the problem..didnt work either way) These Notices will not prevent your script running to completion -- they merely point out places where your code can potentially be improved. Looks like error_reporting on your laptop is turned all the way up to E_ALL, whereas on on the server E_NOTICE level messages are excluded. This is actually a *good* configuration -- on your test server, you get to see all the nitty-gritty warnings about the minor errors that PHP will ignore or automatically correct for you, whilst on your live service they are suppressed. You can then decide, on a fully-informed basis, whether you want to adjust your code to be comletely notice-free, or whether you're prepared to leave them as is and let PHP take care of them. Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] weird error
From: Marek Kilimajer [EMAIL PROTECTED] The second error shows you did not turn on register globals. Look at a phpinfo() page to confirm you edited the right php.ini. You must restart your webserver after the change, also. Or he typed the url into the location bar, or selected a bookmark, or... True... That's what I get for ASSuming things. :) ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Weird error...
I notice you're incrementing the row offset. You shouldn't use mysql_result() to extract multiple fields like that. It will be much faster using mysql_fetch_array() once and then extracting any data you need from the resulting associative array as many times as you need. Mysql_result() is intended to be used when you need to extract the data in one field in one column. I can only think it has something to do with your $results_all. Perhaps there is a max size that it will accept? Doesn't make sense though. I tried this and it worked fine: ?php // open dbase not shown $query = SELECT * FROM montileaux_events; $result = mysql_query ($query, $db); $num = mysql_num_rows($result); for ($i=0; $i$num; $i++) { echo mysql_result($result, $i, event_location) . br; } ? For extracting multiple sets of data you should be using one of the mysql_fetch_XXX() functions instead. Example.. $row = mysql_fetch_array($result); echo $row[event_location]. br; -Kevin -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 9:27 AM To: [EMAIL PROTECTED] Subject: [PHP] Weird error... What does this error mean?? Fatal error: Allowed memory size of 8388608 bytes exhausted at zend_language_scanner.c:4248 (tried to allocate 9 bytes) in /blah/blah/afteradmin2.php on line 37 here is line #37... $usertemp = mysql_result($result_all, $i, username); THANKS!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Weird error...
DOH!!! I didn't mean to email the first part of my response below. I wrote it and then realized that I was mistaken. I thought I'd erased it. It is perfectly valid to do what you want with mysql_result(); :) -Kevin -Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 10:38 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Weird error... -- I notice you're incrementing the row offset. You shouldn't use mysql_result() to extract multiple fields like that. It will be much faster using mysql_fetch_array() once and then extracting any data you need from the resulting associative array as many times as you need. Mysql_result() is intended to be used when you need to extract the data in one field in one column. I can only think it has something to do with your $results_all. Perhaps there is a max size that it will accept? Doesn't make sense though. I tried this and it worked fine: ?php // open dbase not shown $query = SELECT * FROM montileaux_events; $result = mysql_query ($query, $db); $num = mysql_num_rows($result); for ($i=0; $i$num; $i++) { echo mysql_result($result, $i, event_location) . br; } ? For extracting multiple sets of data you should be using one of the mysql_fetch_XXX() functions instead. Example.. $row = mysql_fetch_array($result); echo $row[event_location]. br; -Kevin -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 9:27 AM To: [EMAIL PROTECTED] Subject: [PHP] Weird error... What does this error mean?? Fatal error: Allowed memory size of 8388608 bytes exhausted at zend_language_scanner.c:4248 (tried to allocate 9 bytes) in /blah/blah/afteradmin2.php on line 37 here is line #37... $usertemp = mysql_result($result_all, $i, username); THANKS!!! -- 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
Re: [PHP] Weird error...
Check your php.ini [SESSION] url_rewriter.tags = . Richard elias [EMAIL PROTECTED] wrote in message 9coco0$uq8$[EMAIL PROTECTED]">news:9coco0$uq8$[EMAIL PROTECTED]... For some reason, whenever i run my script for the first time in the browser, the static source file get parsed and produces errors My script have JavaScript in it, and also my script calls the session_start(); Now first time the script is beeing run, i view source and see in my static part of file: tdimg border=0 src=../images/slogo.gif?PHPSESSID=a969d3d42b6277125c9830a7e09d3cc2/td knowing that that previous line is a static part, why the ?PHPSESSID got appeneded to it? beside that, it changes my original javascript line from: tda href=../services/hosting/main.phpimg border=0 src=../images/shared1.gif onmouseover=JavaScript: imgmenu1.src='../images/shared1over.gif' onmouseout='JavaScript: imgmenu1.src=../images/shared1.gif' name=imgmenu1/a/td to: tda href=../services/hosting/main.php?PHPSESSID=a969d3d42b6277125c9830a7e09d3cc 2img border=0 src=../images/shared1.gif?PHPSESSID=a969d3d42b6277125c9830a7e09d3cc2 onmouseover=JavaScript: imgmenu1.src=../images/shared1over.gif onmouseout=JavaScript: imgmenu1.src=../images/shared1.gif name=imgmenu1/a/td As you notice, the JavaScript statment is now erroneous because the single quote got replaced with another double-quote. Can any one tell me what's wrong? and how can i overcome this problem? thanks. -elias http://www.eassoft.cjb.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]