Social forum

XML configuration problems

 
Picture of ilias choutopoulos
XML configuration problems
by ilias choutopoulos - Monday, 4 June 2007, 12:35 PM
 
Hello there.

I'm trying to create a presentation with autoview. I follow these steps.

1. upload my swf file to the server, do i need to upload it in a specific directory?
2. create an instance of autoview activity inside a specific course
3. I enter the name of the autoview and the name for the xml file.

Now , when i try to browse the contents of the autoview activity in order to start editing my presentation I don 't see anything at all. I only get the buttons "switch on editing mode" and "update this autoview".

When I look at the contents of the xml file created, I don't see anything in there pointing to the test.swf file, isn't it supposed to do that automatically?

thanks
Picture of Tim Williams
Re: XML configuration problems
by Tim Williams - Monday, 4 June 2007, 2:47 PM
 
This is the correct behaviour, you need to click the "Switch on editing mode" button to start adding slide and video sources.

Have you read the 'how to use this module' page and watched the screencast videos ? These demonstrate the process.
Picture of ilias choutopoulos
Re: XML configuration problems
by ilias choutopoulos - Monday, 4 June 2007, 2:54 PM
 
When I press switch on editing mode I get nothing at all. I did read the howto more than once :). I thought it was xslt support in the beginning but I've seen in phpinfo that this is already enabled:

'--with-dom-xslt=/usr' '--with-dom-exslt=/usr'
Picture of Tim Williams
Re: XML configuration problems
by Tim Williams - Monday, 4 June 2007, 6:22 PM
 
That probably is the XSLT issue, the current release version only supports the XSLT methods in PHP 4, not PHP 5, so if you have PHP 5 this will not work even if XSLT is active.

This will be resolved with the next beta release, which should be out in the next few days.
Picture of ilias choutopoulos
Re: XML configuration problems
by ilias choutopoulos - Tuesday, 5 June 2007, 7:39 AM
 
I got php4.3.9 running on CentOS4.4 black eye
Picture of Tim Williams
Re: XML configuration problems
by Tim Williams - Tuesday, 5 June 2007, 11:45 AM
 
I've just checked our server and the PHP 4 compile options that enable XSLT are

--enable-xslt --with-xslt-sablot=

I've not seen the --with-dom-xslt option before so I assumed it must be PHP 5 (which i've never actually compiled myself). However, i've done some diggging and it looks like it was another XSLT variant supplied with PHP 4, that has been removed in PHP 5. When you hunt for XSLT in the PHP docs it tells you to use the sablot based methods for PHP 4 stuff, so I never noticed this one. I'll see what I can do regarding support for these methods, shouldn't be too difficult, but no promises.


If you have a dig in the apache error logs, see if you can find any error messages relating to the following php methods :

xslt_create
xslt_process
xslt_free

These are the three PHP 4 methods which the module needs to function. The next release of the module should put up a message in your browser if XSLT support is missing, so it will be easier to spot the problem. I'm also going to add some notes on the complie options to the readme/website so that it is easier to spot what you need installed.
Picture of Tim Williams
Re: XML configuration problems
by Tim Williams - Tuesday, 5 June 2007, 1:30 PM
 
OK, that was easy, i've managed to add support for the other PHP 4 XSL library, so this will be in the next release alongside the PHP 5 support. Don't you just love consistent API's !
Picture of ilias choutopoulos
Re: XML configuration problems
by ilias choutopoulos - Tuesday, 5 June 2007, 1:37 PM
 
cool, thanks! i'm looking forward for the next release.surprise