Forums | Mahara Community

Support /
"Medical problems & conditions" Plugin / FATAL: XML file is not well formed!


anonymous profile picture
Account deleted
Posts: 73

21 August 2009, 9:20

Hi Nigel,

I just installed the latest Mahara 1.2.0beta1.
After this I tried to install the "Medical problems & conditions" plugin by copying the files (i.e the "pc" folder) into the "artefact" folder of Mahara.
Then I enabled the plugin under "Administer Extensions / Plugin Administration" and got the following error meassage:

>>>

FATAL: XML file is not well formed! Please consult Mahara's error log for more information
Call stack (most recent first):
PluginArtefactPc::resync_conditions() at /var/www/vhosts/mydomain/httpdocs/maharabeta/artefact/pc/lib.php:56
PluginArtefactPc::postinst(0) at Unknown:0
call_user_func_array(array(size 2), array(size 1)) at /var/www/vhosts/mydomain/httpdocs/maharabeta/lib/mahara.php:1013
call_static_method("PluginArtefactPc", "postinst", 0) at /var/www/vhosts/mydomain/httpdocs/maharabeta/lib/upgrade.php:504
upgrade_plugin(object(stdClass)) at /var/www/vhosts/mydomain/httpdocs/maharabeta/admin/upgrade.json.php:92

<<<
 
 
What might be wrong?

BR, Peer
anonymous profile picture
Account deleted
Posts: 1643

22 August 2009, 1:34

Hi - I think you have to copy sample_conditions.xml to conditions.xml for it to work. I'll get Elliot to add a README to the repository Wink
anonymous profile picture
Account deleted
Posts: 73

22 August 2009, 4:28

Hi Nigel,

you are right! :)
I copied the  "sample_conditions.xml" to "conditions.xml" and enabled the PC plugin w/o any problem!

Many thanks! Peer 

anonymous profile picture
Account deleted
Posts: 73

22 August 2009, 12:22

Hi Nigel,

how do I share "My Case Note"?

I found the option "Share this note" at the bottom of a case note. However, although checked I could not find any way to add a "My Case Note" as a blocktype to a view(?).

BR, Peer 

anonymous profile picture
Account deleted
Posts: 12

24 August 2009, 0:52

Hi Peer,

The only way to view casenotes is through the 'My Case Note' section of the site.  It would be nice for case notes to be able to be added to views, however this work has not been funded yet.

Cheers,

Elliot

anonymous profile picture
Account deleted
Posts: 13

18 November 2009, 14:39

Hello - 

I'm  very interested in the "Medical problems & condition" plugin, but can't seem to find where it lives on this (or another site).  Who is the best person to talk to about it. 

 

I found a mahara wiki page, but even when logged in, don't have access to it. 

Who is the contact for this plugin?

 

thanks!

 

- Jesse 

 

anonymous profile picture
Account deleted
Posts: 1643

18 November 2009, 16:24

Hi - it got taken down because it's not quite ready for prime time just yet, though the source code is still at http://git.mahara.org/ (in plugins, it's the 'pc' artefact plugin).

Hopefully it'll be ready soon though, we're still working on it. 

Ali Hastie's profile picture
Posts: 145

07 December 2009, 7:46

Hi

I installed Medical problems and conditions within Mahara v1.2 with no problems by copying the said .xml file.

When I go to add a case note page and when I click on the Problems and conditions Add button nothing happens. I have a error on page which states:

 Line: 170

Char: 13

Error: 'childnodes' is null or not an object

 ERROR LOGS:

[WAR] c5 (artefact/pc/form/elements/conditionselector.php:117) call_user_func(PluginPc) [function.call-user-func]: First argument is expected to be a valid callback, referer: http://testmahara.barony.ac.uk/artefact/pc/

Call stack (most recent first):, referer: http://testmahara.barony.ac.uk/artefact/pc/

* log_message("call_user_func(PluginPc) [function.call-user-func]...", 8, true, true, "/data/httpdata/v-hosts/testmahara.barony.ac.uk/htd...", 117) at /data/httpdata/v-hosts/testmahara.barony.ac.uk/htdocs/lib/errors.php:446, referer: http://testmahara.barony.ac.uk/artefact/pc/

* error(2, "call_user_func(PluginPc) [<a href='function.call-u...", "/data/httpdata/v-hosts/testmahara.barony.ac.uk/htd...", 117, array(size 2)) at Unknown:0, referer: http://testmahara.barony.ac.uk/artefact/pc/

* call_user_func(array(size 2), object(stdClass)) at /data/httpdata/v-hosts/testmahara.barony.ac.uk/htdocs/artefact/pc/form/elements/conditionselector.php:117, referer: http://testmahara.barony.ac.uk/artefact/pc/

* get_data(object(stdClass)) at /data/httpdata/v-hosts/testmahara.barony.ac.uk/htdocs/artefact/pc/form/elements/conditionselector.php:54, referer: http://testmahara.barony.ac.uk/artefact/pc/

* pieform_element_conditionselector(object(Pieform), array(size 6)) at /data/httpdata/v-hosts/testmahara.barony.ac.uk/htdocs/lib/pieforms/pieform.php:1264, referer: http://testmahara.barony.ac.uk/artefact/pc/

* Pieform->build_element_html(array(size 6)) at /data/httpdata/v-hosts/testmahara.barony.ac.uk/htdocs/lib/pieforms/pieform.php:572, referer: http://testmahara.barony.ac.uk/artefact/pc/

* Pieform->build() at /data/httpdata/v-hosts/testmahara.barony.ac.uk/htdocs/lib/pieforms/pieform.php:171, referer: http://testmahara.barony.ac.uk/artefact/pc/

* Pieform::process(array(size 11)) at /data/httpdata/v-hosts/testmahara.barony.ac.uk/htdocs/lib/pieforms/pieform.php:71, referer: http://testmahara.barony.ac.uk/artefact/pc/

* pieform(array(size 11)) at /data/httpdata/v-hosts/testmahara.barony.ac.uk/htdocs/artefact/pc/editcasenote.php:144, referer: http://testmahara.barony.ac.uk/artefact/pc/

Could someone help please.

Ali

anonymous profile picture
Account deleted
Posts: 12

08 December 2009, 1:03

Hi Ali,

I'll look into your issue first chance I get tomorrow.

Looking at the error log you posted, it looks like the category plugin isn't getting called correctly, which suggests to me an error in the data/install.

Can you confirm what commit id the plugin was at when you grabbed it from git.mahara.org? Also, what browser are you using?

Cheers,

Elliot

Ali Hastie's profile picture
Posts: 145

08 December 2009, 6:31

Thanks Elliot

Richard provided this link for the install:

http://git.mahara.org/?p=contrib/plugin/artefact/pc.git;a=snapshot;sf=tgz

I started all over again and reinstalled the plug-in and received a different error within the logs:

[WAR] 46 (artefact/pc/form/elements/plugins/atoz.php:208) Undefined property: stdClass::$casenotes, referer: http://testmahara.barony.ac.uk/artefact/pc/

Call stack (most recent first):, referer: http://testmahara.barony.ac.uk/artefact/pc/

 * log_message("Undefined property: stdClass::$casenotes", 8, true, true, "/data/httpdata/v-hosts/testmahara.barony.ac.uk/htd...", 208) at /data/httpdata/v-hosts/testmahara.barony.ac.uk/htdocs/lib/errors.php:446, referer: http://testmahara.barony.ac.uk/artefact/pc/

 * error(8, "Undefined property: stdClass::$casenotes", "/data/httpdata/v-hosts/testmahara.barony.ac.uk/htd...", 208, array(size 16)) at /data/httpdata/v-hosts/testmahara.barony.ac.uk/htdocs/artefact/pc/form/elements/plugins/atoz.php:208, referer: http://testmahara.barony.ac.uk/artefact/pc/

* PluginPcAtoz::get_items(object(stdClass)) at /data/httpdata/v-hosts/testmahara.barony.ac.uk/htdocs/artefact/pc/form/elements/plugins/atoz.php:55, referer: http://testmahara.barony.ac.uk/artefact/pc/

* PluginPcAtoz::get_data(object(stdClass)) at Unknown:0, referer: http://testmahara.barony.ac.uk/artefact/pc/

 * call_user_func(array(size 2), object(stdClass)) at /data/httpdata/v-hosts/testmahara.barony.ac.uk/htdocs/artefact/pc/form/elements/conditionsbrowser.php:91, referer: http://testmahara.barony.ac.uk/artefact/pc/

 * get_data(object(stdClass)) at /data/httpdata/v-hosts/testmahara.barony.ac.uk/htdocs/artefact/pc/form/elements/conditionsbrowser.json.php:48, referer: http://testmahara.barony.ac.uk/artefact/pc/

I am using IE 7 and Firefox 3.5.

Is there any way that the student submit their case notes for assessment?

Cheers

Ali

24 results