Images in JQuiz

Images in JQuiz

by Chris Delaney -
Number of replies: 5
Hi guys, relatively new to this whole thing - thanks for your patience.

Having trouble getting Quiz to show images. I've zipped up a folder with quiz and image, uploaded to my course files in moodle, then unzipped.

As you might see in the attached image - I can't see the image, shows this code

#x003C;img src= alt=skeleton_blank.gif title=Skeleton Blank width=298 height=605 style=float: left;#x003E;#x003C;/img#x003E;

and also the navigation buttons are not visible, they shows this code

=#x003C

I can see the image file in my course files, when I click on it, shows me the image and the location



which is identical to the source code.....

Hmmm - what do I do? Thanks in advance
Attachment Quiz_image.jpg
Average of ratings: -
In reply to Chris Delaney

Re: Images in JQuiz

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Chris,
I'm afraid I have some bad news for you. I think you need to recompile PHP with a different libxml, because your PHP is broken. As a result, the ampersands in the XML files are being zapped by PHP which causes the meaningless garble that we see on your screenshot.

I think this is the same problem that Rosemary had:

You can test that, by trying Rosemary's quiz and seeing if you get the same result she did. If so, you need to recompile PHP.

If you think that is not the problem, please upload the quiz to my server so I can have a look.

thanks (and good luck!)
Gordon

In reply to Gordon Bateson

Re: Images in JQuiz

by Chris Delaney -
Thanks for your reply Gordon, I have tried Rosemary's quiz and get the same problems.

Now working with my server admin people on the php thing.

I gave them your advice (from email below)

Just so you know, I went to 'server/admin/php info' within Moodle and got the following:

libXML support active
libXML Version 2.7.2
libXML streams enabled

Anyway, we'll see what they get back to me with...

Cheers

Chris

Email details

"Looks like PHP on our server might have a faulty xml library. Take a look at these URLs ..."

Images in JQuiz:
http://moodle.org/mod/forum/discuss.php?d=115625

Moodle bug report:
http://tracker.moodle.org/browse/MDL-17136

PHP bug report
http://bugs.php.net/bug.php?id=45996

"is there any chance that we could recompile PHP on our server with a different libxml? "


In reply to Chris Delaney

Re: Images in JQuiz

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers
Thanks for the update Chris.
libxml 2.7.2 is dysfunctional. That's the one which has to be replaced.

all the best !
Gordon
In reply to Gordon Bateson

Re: Images in JQuiz

by Chris Delaney -
Ok - if anyone else has this same problem.

Update to the most common PHP modules.. (or get the admin guys to sort it for you).

All done, thanks Gordon

Cheers

Chris
In reply to Chris Delaney

Re: Images in JQuiz

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers
Thanks Chris, that's good information to have.
Glad to hear you're up and running - approve

all the best
Gordon