Not able to add through Panel anymore - troubleshooting qcodo?

thread: 11 messages  |  last: a year ago  |  started: sunday, february 7, 2010, 12:25 pm pst


#1  |  kingwithin (San Francisco, CA) United States of America
Sunday, February 7, 2010, 12:25 PM PST

This is two parts, one specific and one general:

General: how can I add more transparency when debugging?  Right now, I try to test adding an account and it just “hangs.”  No error, but it's clearly not working.

More specifically, this should be simple but it's been really hard to peel through what could be erroring out.  

I have a panel and all I want to do is to add an Account.  When the Account is added, I would like the account list to be updated ajax style.

Easy.  Can someone help me understand why this wouldn't work now?  Ruby on Rails has this type of capability using partials and makes it pretty transparent.

Here is the class (line 111 starts the adding accounts):

http://github.com/allyforce/AF-upload/blob/master/Library/Target1.class.php

#2  |  VexedPanda (Calgary, AB) Canada
Monday, February 8, 2010, 7:59 AM PST

Step one in troubleshooting QCodo seems to be to switch to server actions instead of ajax ones, or to debug in firefox.
QCubed has a fix to ensure ajax errors are properly displayed in all browsers.

#3  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Monday, February 8, 2010, 12:48 PM PST

It might be an issue with the output buffer... sometimes with really bad errors, the output buffer fails altogether and thus you get no output.

Which version of Qcodo are you using?  If you are using the more recent (0.4.x) versions, you can temporarily disable output buffering by commenting out the ob_start call in the QApplicationBase::InitializeOutputBuffering() method in QApplicationBase.class.php

If you are using the older (0.3.x) versions, I believe that same call is somewhere in qcodo.inc.php...

VexedPanda -- thanks for posting about the fix... do you have more information you can share about it?  It'd be great to get stuff like that back into the core Qcodo distribution.

#4  |  VexedPanda (Calgary, AB) Canada
Tuesday, February 9, 2010, 8:06 AM PST

Sorry, meant to post a link to that.
The patch can be found at:
http://trac.qcu.be/projects/qcubed/ticket/432

#5  |  kingwithin (San Francisco, CA) United States of America
Tuesday, February 9, 2010, 8:08 AM PST

Hi, I am using only Firefox is that still relevant for me?  Grr...still see no errors....

#6  |  kingwithin (San Francisco, CA) United States of America
Tuesday, February 9, 2010, 8:18 AM PST

You mean comment this out?

   // Start Output Buffering    
   function __ob_callback($strBuffer) {
       return QApplication::OutputPage($strBuffer);
   }
   ob_start('__ob_callback');

#7  |  kingwithin (San Francisco, CA) United States of America
Tuesday, February 9, 2010, 11:37 AM PST

Hi, I have posted what the output is in HTML generated by using code generation...still not getting any errors across Firebug:

http://stackoverflow.com/questions/2231939/submit-button-in-php-not-showing-anything-in-firebug  PLEASE HELP.

#8  |  Fernando Lordán (Barcelona, CAT, Spain) Spain
Tuesday, February 9, 2010, 1:12 PM PST

In order to debug the server side, you can look at your webserver log to see which error is PHP triggering. You can get a lot of information looking at your server logs (where the “movie action” is), more than expecting it in the client side (where you only get the resulting picture).

Additionally, if you look at your webserver log and positively see that no error is triggered (PHP simply fails silently), I suggest it may be a process memory exhaustion problem. Then I recommend to raise the PHP memory limit in PHP.INI and see if this solves the problem.

#9  |  kingwithin (San Francisco, CA) United States of America
Wednesday, February 10, 2010, 11:30 AM PST

Yep, checked the Apache logs...nothing coming up as an error other than two small .gif files being called in assets/ that aren't there.

#10  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Thursday, February 11, 2010, 4:12 PM PST

I'm really confused as to what error you are encountering...

At the top, you're saying that the application is “hanging” -- what is hanging?  The browser?  Does it crash?  Does PHP crash (e.g. you get a segfault)?  Do javascript events stop working altogether on the page?

Then I ask you to comment out the ob_start stuff, and then you post HTML of a form.

So what's the issue then?

I'm really confused as to (1) what you're trying to do on the page, (2) what your expected behavior is, and (3) what the actual behavior is.

I know that you're feeling frustrated with this issue that you're encountering -- but please understand that in order for others to help you with your issue, it would really help if you could be a lot more clear in your questions and in describing the issue at hand.

Unfortunately, simply posting a link to your entire codebase or an entire listing of a file makes it very difficult for anyone to help you debug the issue or problem...

Bottom line: Folks do want to help... and the easier you make it for others to help you, the better.



Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.