[Xerte-dev] Re: moodle fix

Pat Lockley patrick.lockley at googlemail.com
Wed Dec 5 09:38:23 GMT 2012


the problem in new template was that for some reason moodle is leaving or
creating another database link so when toolkits sends the request to the
database it fails as the code is now pointing at the wrong database.

Added in another database_connect call to fix this

the problem in new folder creation was two require_once("config.php") being
used. Removed one and it works.

Why these would only affect moodle 1.9? No idea.


On Wed, Dec 5, 2012 at 7:49 AM, Ron Mitchell <ronm at mitchellmedia.co.uk>wrote:

> Hi Pat****
>
> thanks - from tests so far those files have certainly improved things!****
>
> ** **
>
> What did you find/change? What was the main cause of the problem?****
>
> ** **
>
> I've tested creating new projects and folders, moving and deleting
> projects all of which were a problem previously so looking hopeful.****
>
> ** **
>
> One problem/difference at the moment which I don't think was there before
> is that with a moodle 1.9 integration path I can now create a new project
> without the workspace refreshing and it appears etc but if I then try to
> create a second project clicking create to create another Xerte Online
> Toolkit project doesn't do anything. I have to refresh the browser before I
> can create another project. Clicking to create an RSS project does work
> without refresh and with moodle 2 configured I can create a second and
> third template etc without problem.****
>
> ** **
>
> I've only tested this locally so far will test on the techdis server
> next...****
>
> ** **
>
> Cheers****
>
> Ron****
>
> ** **
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Pat Lockley
> *Sent:* 05 December 2012 00:29
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] moodle fix****
>
> ** **
>
> try swapping these files ****
>
>
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20121205/f4d2beb4/attachment.html>


More information about the Xerte-dev mailing list