partial page loading problem

This is a discussion on partial page loading problem within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I am working on a PHP project and having a partial page loading problem randomly. The PHP module 4.4....


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-12-2006
tony
 
Posts: n/a
Default partial page loading problem

I am working on a PHP project and having a partial page loading problem
randomly. The PHP module 4.4.0 is running on apache server 1.3.33, with
database connection to oracle 10g. The problem happens randomly with
partial or blank page loaded. Refresh will get a complete page in most
of time. I checked the error log and seems there is no specific error
message corresponding to this problem. Anybody has the similar
experience? Any suggestion/advice is appreciated.
Reply With Quote
  #2 (permalink)  
Old 10-12-2006
Gleep
 
Posts: n/a
Default Re: partial page loading problem

On Thu, 12 Oct 2006 10:31:24 -0400, tony <fzhang05@vt.edu> wrote:

>I am working on a PHP project and having a partial page loading problem
>randomly. The PHP module 4.4.0 is running on apache server 1.3.33, with
>database connection to oracle 10g. The problem happens randomly with
>partial or blank page loaded. Refresh will get a complete page in most
>of time. I checked the error log and seems there is no specific error
>message corresponding to this problem. Anybody has the similar
>experience? Any suggestion/advice is appreciated.


I've had this happen occasionally . It's usually a code problem. Typically when your mixing php in
with HTML. There probably is a typo or bad variable being passed somewhere.

The best thing to do. I identify where in the code the page is being cut off. From that point, if
you have php code like if then statements or you are generating html stop the flow at the point
with

echo " $variableA $vaiableB $sql ";
exit;

print out the current variable and see if that is what your expecting. If it's a random issue I
suspect you are passing an empty or null value, maybe a var is not being passed correctly from
another form, something is being over written. it's hard to say since you did not post any of your
code. But at least this is a start to figure out what is going on.

Also if you are dealing wiht somthing that is long an complex, it helps to make a copy of that
section and past it into test.php and just test that section, class or function to weed out
errors.

Reply With Quote
  #3 (permalink)  
Old 10-12-2006
tony
 
Posts: n/a
Default Re: partial page loading problem

Gleep wrote:
> On Thu, 12 Oct 2006 10:31:24 -0400, tony <fzhang05@vt.edu> wrote:
>
>> I am working on a PHP project and having a partial page loading problem
>> randomly. The PHP module 4.4.0 is running on apache server 1.3.33, with
>> database connection to oracle 10g. The problem happens randomly with
>> partial or blank page loaded. Refresh will get a complete page in most
>> of time. I checked the error log and seems there is no specific error
>> message corresponding to this problem. Anybody has the similar
>> experience? Any suggestion/advice is appreciated.

>
> I've had this happen occasionally . It's usually a code problem. Typically when your mixing php in
> with HTML. There probably is a typo or bad variable being passed somewhere.
>
> The best thing to do. I identify where in the code the page is being cut off. From that point, if
> you have php code like if then statements or you are generating html stop the flow at the point
> with
>
> echo " $variableA $vaiableB $sql ";
> exit;
>
> print out the current variable and see if that is what your expecting. If it's a random issue I
> suspect you are passing an empty or null value, maybe a var is not being passed correctly from
> another form, something is being over written. it's hard to say since you did not post any of your
> code. But at least this is a start to figure out what is going on.
>
> Also if you are dealing wiht somthing that is long an complex, it helps to make a copy of that
> section and past it into test.php and just test that section, class or function to weed out
> errors.
>


Thanks for your reply. I will try what you suggested. We also did some
test. The frequency is about 3-4 times every 1000 url calls for the same
page. Is there any possibility related to memory setup in php.ini?
Reply With Quote
  #4 (permalink)  
Old 10-12-2006
Gleep
 
Posts: n/a
Default Re: partial page loading problem

On Thu, 12 Oct 2006 15:51:27 -0400, tony <fzhang05@vt.edu> wrote:

>Gleep wrote:
>> On Thu, 12 Oct 2006 10:31:24 -0400, tony <fzhang05@vt.edu> wrote:
>>
>>> I am working on a PHP project and having a partial page loading problem
>>> randomly. The PHP module 4.4.0 is running on apache server 1.3.33, with
>>> database connection to oracle 10g. The problem happens randomly with
>>> partial or blank page loaded. Refresh will get a complete page in most
>>> of time. I checked the error log and seems there is no specific error
>>> message corresponding to this problem. Anybody has the similar
>>> experience? Any suggestion/advice is appreciated.

>>
>> I've had this happen occasionally . It's usually a code problem. Typically when your mixing php in
>> with HTML. There probably is a typo or bad variable being passed somewhere.
>>
>> The best thing to do. I identify where in the code the page is being cut off. From that point, if
>> you have php code like if then statements or you are generating html stop the flow at the point
>> with
>>
>> echo " $variableA $vaiableB $sql ";
>> exit;
>>
>> print out the current variable and see if that is what your expecting. If it's a random issue I
>> suspect you are passing an empty or null value, maybe a var is not being passed correctly from
>> another form, something is being over written. it's hard to say since you did not post any of your
>> code. But at least this is a start to figure out what is going on.
>>
>> Also if you are dealing wiht somthing that is long an complex, it helps to make a copy of that
>> section and past it into test.php and just test that section, class or function to weed out
>> errors.
>>

>
>Thanks for your reply. I will try what you suggested. We also did some
>test. The frequency is about 3-4 times every 1000 url calls for the same
>page. Is there any possibility related to memory setup in php.ini?



It's hard to say without seeing code or understanding what it is your code is doing.
Reply With Quote
  #5 (permalink)  
Old 10-13-2006
tony
 
Posts: n/a
Default Re: partial page loading problem

Gleep wrote:
> On Thu, 12 Oct 2006 15:51:27 -0400, tony <fzhang05@vt.edu> wrote:
>
>> Gleep wrote:
>>> On Thu, 12 Oct 2006 10:31:24 -0400, tony <fzhang05@vt.edu> wrote:
>>>
>>>> I am working on a PHP project and having a partial page loading problem
>>>> randomly. The PHP module 4.4.0 is running on apache server 1.3.33, with
>>>> database connection to oracle 10g. The problem happens randomly with
>>>> partial or blank page loaded. Refresh will get a complete page in most
>>>> of time. I checked the error log and seems there is no specific error
>>>> message corresponding to this problem. Anybody has the similar
>>>> experience? Any suggestion/advice is appreciated.
>>> I've had this happen occasionally . It's usually a code problem. Typically when your mixing php in
>>> with HTML. There probably is a typo or bad variable being passed somewhere.
>>>
>>> The best thing to do. I identify where in the code the page is being cut off. From that point, if
>>> you have php code like if then statements or you are generating html stop the flow at the point
>>> with
>>>
>>> echo " $variableA $vaiableB $sql ";
>>> exit;
>>>
>>> print out the current variable and see if that is what your expecting. If it's a random issue I
>>> suspect you are passing an empty or null value, maybe a var is not being passed correctly from
>>> another form, something is being over written. it's hard to say since you did not post any of your
>>> code. But at least this is a start to figure out what is going on.
>>>
>>> Also if you are dealing wiht somthing that is long an complex, it helps to make a copy of that
>>> section and past it into test.php and just test that section, class or function to weed out
>>> errors.
>>>

>> Thanks for your reply. I will try what you suggested. We also did some
>> test. The frequency is about 3-4 times every 1000 url calls for the same
>> page. Is there any possibility related to memory setup in php.ini?

>
>
> It's hard to say without seeing code or understanding what it is your code is doing.


Thanks again. I may not be able to show all the code as it is not clear
so far where is the problem and it is also not practical to post several
thousand lines of code here. This is not allowed by the rules of my
current project. However, I feel your experience and suggestion are very
helpful. I would say our code is not clean in terms of html as well as
data retrieving from oracle db. I will try to do what you suggested and
see if it is working. Thanks.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:19 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0