|
 Ghica van Emde Boas - 2005-09-29 12:22:35
I tried to run the scrips in the tests directory. However, most of them fail with a fatal arror saying the XML document must have only one top element.
Is there something wrong, or am I doing something wrong?
 Guilherme Blanco - 2005-09-29 20:17:15 - In reply to message 1 from Ghica van Emde Boas
I tested everything on IE and it worked okay.
I experienced an error in Mozilla (I tested in 3 versions and experienced only in one) and I'm trying to fix it. Probably you are using the same version that I had the bug.
I asked some people to run the tests in their browsers to check for compatibility. If possible, could you please tell me what does the error return and in which browser have you tested?
Best regards,
Guilherme Blanco
 Bob Snowdon - 2005-10-03 15:16:27 - In reply to message 1 from Ghica van Emde Boas
I ran the tests on both Firefox 1.0.7 and IE 6 on Windows XP Home SP2 using PHP 5.0.5 with XML DOMIT. Server is Apache 3.23 on localhost. Results as follows:
On Firefox.
-----------
basic_Timer: works.
client: Fails. Error is XML Parser Error. Only variables can be passed by reference in class.pAjaxParser.php on line 164
complex_structure : no error, but nothing happens!
errorhandler : Fails. Error is XML Parser Error. Only variables can be passed by reference in class.pAjaxParser.php on line 156.
events: works
inline_call : no errors but nothing happens.
inline_call2: calls, but then nothing
multiplier: works.
obj_call: Fails. Error is XML Parser Error. Only variables can be passed by reference in class.pAjaxParser.php on line 156.
server: Nothing happens
appz/autosuggest: Typing N into Us States box Fails:
Error Code: -1
FilePos : undefined
Line: 0
URL:
SRC Text: <b>Fatal error</b>. Only variables can be passed by reference in ... class.pAjaxParser.php on line 156.
Typing in html colours box, nothing happens at all.
on IE 6
-------
basic_Timer: works.
client: Fails. XML Parser Error. Only variables can be passed by reference in class.pAjaxParser.php on line 164. Reason: Only one top element is allowed in an XML Object.
complex_structure : Fails. XML Parser error, as in client above.
errorhandler : Fails. XML Parser Error, as in client above.
events: works
inline_call : no errors but nothing happens.
inline_call2: XML Parse error as above
multiplier: works.
obj_call: XML Parser Error as above.
server: Nothing happens
appz/autosuggest: Typing N into Us States box Fails:
Error Code: -1072896683
FilePos : undefined
Line: 2
URL:
SRC Text: <b>Fatal error</b>. Only variables can be passed by reference in ... class.pAjaxParser.php on line 156.
Reason: Only one top level element is allowed in an XML document.
Followed by IE error box about problems with page. Details then:
Line: 175
Char: 9
Error: XML Parse Error
Reason: Only one top level element is allowed in an XML document
Code:0
URL:http:localhost.../autosuggest/autosuggest.php
Typing in html colours box, get IE error box about page. Details then:
Line: 167
Char: 5
Error: 'parseError' is null or not an object
Reason: Only one top level element is allowed in an XML document
Code:0
URL:http:localhost.../autosuggest/autosuggest.php
Bob Snowdon
 Ghica van Emde Boas - 2005-10-03 17:38:18 - In reply to message 1 from Ghica van Emde Boas
Hi,
I am using IE on Win XP pro, SP2.
The pop-up error window says:
Detailed Description of XML Parse error:
Error Code: -1072896683
Pile Pos: undefined
Line: 2
Line Pos: undefined
URL:
SRC Text: <b>Fatal error</b>: Class 'DOMIT_Document' not found in
<b>C:\xampp\htdocs\phpclasses\pajax\class.pAjaxParser.php</b>on line <b>71</b><br/>
Reason: Only one top element is allowed in an XML document.
I am using PHP 5.0.3
 Guilherme Blanco - 2005-10-04 22:49:05 - In reply to message 3 from Bob Snowdon
I updated the class today. These errors should not exist anymore.
Regards,
 Guilherme Blanco - 2005-10-04 22:52:11 - In reply to message 4 from Ghica van Emde Boas
Ghica: You need to install DOMIT! XML Parser in the XMLSupport folder, as described in INSTALL.txt file.
Downlaod the new version (updated today) and follow the INSTALL.txt instructions.
 Ghica van Emde Boas - 2005-10-06 08:05:04 - In reply to message 6 from Guilherme Blanco
Hi Guillerme,
I am sorry that I read the install instructions badly. I am not so happy that I have to install yet another XML parser, but I will look at it later, in a few weeks time.
 D N - 2005-10-22 13:10:46 - In reply to message 7 from Ghica van Emde Boas
Love the class, just have a few problems.
On Firefox I get the following error running any test.
this.__xmlHttp__.responseXML is undefined
No error is issued on _p.errorOccurred, instead by looking at the console I find its undefined in Firefox, in IE 6, responseXML returns an object.
Also, I've tested pajax on Safari and it doesnt work.
 Guilherme Blanco - 2005-10-23 16:42:09 - In reply to message 8 from D N
I have an updated version of class in my laptop, but since it went to technical assistance, I could not update it yet.
The bug you experienced should be the same as Bob experienced when he mailed me. There's an issue with some PHP versions that points to 3 errors in pAjaxParser class.
I'll explain the bug just to notice you what is it... the updated version will be uploaded in 15 days (the deadline the assistance told me).
The error occurs because PHP doesn't understand referenced variables as return valoue of a function, and I do it 3 times in pAjaxParser. I removed these references and it worked well in PHP 5.0.3 and PHP 4.4.0.
For Safari, I'm running with a paralel project that will support it (and scheduled to be integrated in version 2.0). I'll try to spend more effort in this widget and solve this limitation as soon as possible.
Also, I have some project design issues in my class and I plan to solve it quickly, but some modifications in scripts will be necessary (a thing that I didn't like too much).
I recieved some suggestions too, basically from another similar projects to be incorporated. Maybe with this modifications I add some requested features (like shortcut for commom tasks (used in xajax), RPC extension (normalization/parse as XML-RPC notation), ...).
Mainly, this class is part of a framework written in PHP and JavaScript (DAO, GUI components, Handlers, ...). I removed the references from other classes and because of this I had some project design failures. Just to notice you =)
But anyway... I love to write long explanations. Since there's another project called pAjax, I'll have to change my class name to another one (due to copyright, etc). I still need to contact the another project author and discuss about it. I'll keep you in notice about any news.
Best regards,
|