Donate Share

MyPhpMoney

Tracker: Bugs

5 Only one top level element is allowed in an XML - ID: 754091
Last Update: Comment added ( courou )

The software was working allright, but suddenly I am
getting the next message each time i call the script from
a browser:
------------

Only one top level element is allowed in an XML
document. Error processing
resource 'http://www.hillsbury.com/phpmoney/myphpmon
ey-1.3RC3/public_html/'. Line 2, Position 2


<b>Warning</b>: set_error_handler() expects
argument 1, 'ErrorHandler', to be a valid callback in
<b>/home/hillsbur/public_html/phpmoney/myphpmoney-
1.3RC3/public_html/config/vars.inc.php</b> on line
<b>64</b><br />
-^

------------
thanks


Nobody/Anonymous ( nobody ) - 2003-06-13 17:08

5

Open

Fixed

tobozo

Other

1.3RCxx

Public


Comments ( 7 )




Date: 2004-04-17 10:50
Sender: courou

Logged In: YES
user_id=71575

hello,

Try to cvs version
please , because the bug is fixed

A++
courou


Date: 2003-07-31 06:58
Sender: derrickloAccepting Donations

Logged In: YES
user_id=827735

Hi Tobozo,

Thanks for your solution on @set_error_handler. Program does
not display the warning anymore!

However, when I chose Options->Update the rates monetary
(Need a web connexion !)

I got an error dialog box saying I do not have a connection to
the Internet, although I am connected to the Internet. Error
message follows:

Warning: fsockopen(): php_hostconnect: connect failed in
public_html/class/tools.class on line 74

Thanks for your help again!

Best Wishes,
Derrick Lo




Date: 2003-07-30 17:15
Sender: nobody

Logged In: NO

you may try to alter the line 64 of var.inc.php like this :

if (!stristr(__DEBUG__,'OFF')) @set_error_handler
('ErrorHandler');

the '@' before the function call should make the warning more
silent.

I'll notify courou (our main developper) about this, he's been
quite busy IRL for the past few weeks..
All those little worries should be fixed on the next release.

be well

tobozo




Date: 2003-07-30 06:16
Sender: derrickloAccepting Donations

Logged In: YES
user_id=827735

Hi Tobozo,

Thanks for your solution on the XML error. Program works
except for the following

warning with every selection selection. Hope you can help :-)

Best Wishes,
Derrick Lo

--Warning--
Warning: set_error_handler() expects
argument, 'ErrorHandler', to be a valid

callback in public_html/config/vars.inc.php on line 64

--The code at line 64 is:--
/**
* FOR THE PERSONAL FUNCTION ERROR PHP - (DON'T
TOUCH)
*/
if (!stristr(__DEBUG__,'OFF')) set_error_handler
('ErrorHandler');



Date: 2003-07-24 16:59
Sender: nobody

Logged In: NO

FIX :
edit your header.tpl and remove the first line
(looks like : <?xml ..... )

be well

tobozo




Date: 2003-07-22 05:58
Sender: derrickloAccepting Donations

Logged In: YES
user_id=827735

Hi,

I have the same problem too! Anyone knows how to solve
this?

Thanks and Best Regards,
Derrick Lo

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct
the error and then click the Refresh button, or try again later.


------------------------------------------------------------
--------------------

Only one top level element is allowed in an XML document.
Error processing resource 'public_html/index.php'. Line 2,
Position 2

<b>Warning</b>: set_error_handler() expects argument
1, 'ErrorHandler', to be a valid callback in
<b>public_html/config/vars.inc.php</b> on line
<b>64</b><br />
-^



Date: 2003-07-11 02:20
Sender: nobody

Logged In: NO

It appears that my webserver got a PHP update. Could that
be the reason of the problem?

Thanks!


Log in to comment.




Attached File

No Files Currently Attached

Change ( 1 )

Field Old Value Date By
resolution_id None 2004-04-17 10:50 courou