[Xerte-dev] Re: moodle integration
Ron Mitchell
ronm at mitchellmedia.co.uk
Sun Apr 29 21:58:15 BST 2012
Hi David
The last change you made to autoloader seems to have fixed that problem but
as you say I haven't tested everything. However once this was working I have
tested the moodle authentication...
Installed a fresh install inside a moodle directory
added the path to moodle config.php as integration path during install
commented out //$xerte_toolkits_site->authentication_method = 'Guest';
uncommented $xerte_toolkits_site->authentication_method = "Moodle";
Visited the correct url, get prompted to login to moodle and then returned
to XOT
So seems to work well.
I will have a look at adding some commented options inside
\library\Xerte\Authentication\Moodle.php because it's cropping up more and
more to restrict the moodle guest access or restrict by roles or a specific
user profile field. I have all that working for 1.7 installs but will test
with this new code tomorrow or Tuesday.
Cheers
Ron
-----Original Message-----
From: xerte-dev-bounces at lists.nottingham.ac.uk
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David Goodwin
Sent: 29 April 2012 21:53
To: For Xerte technical developers
Subject: [Xerte-dev] Re: moodle integration
>
>
> on line 317 of \library\Zend\Locale.php you have require_once
> 'Zend/Locale/Data/Translation.php';
> but that file is already inside Zend so shouldn't that either be
> require_once 'Locale/Data/Translation.php'; or a root relative path?
>
No. The include_path contains 'c:\path\to\library'
When it does an require_once('Zend/Blah/Bah.php); it ought to go to -
c:\path\to\library\Zend\Blah\Bah.php
I'm not sure why it isn't though - but I also haven't developed PHP on
windows, so perhaps there is something really simple I'm overlooking.
Removing the 'require_once' will make it go away, and stuff work - because
the autoload function I've defined in autoloader.php will kick in - and
presumably does it's job correctly.
Annoyingly the Zend Framework is littered with require_once's - so while
it's solved your immediate problem, it's likely something else will break
elsewhere.
Does the moodle integration work?
thanks,
David.
> Changing it to require_once 'Locale/Data/Translation.php'; makes the
> error disappear and workspace appear correctly.
>
>
> -----Original Message-----
> From: xerte-dev-bounces at lists.nottingham.ac.uk
> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David
> Goodwin
> Sent: 29 April 2012 21:21
> To: For Xerte technical developers
> Subject: [Xerte-dev] Re: moodle integration
>
> Ah, I see my problem... 'silly' windows needs a ';' between include
> path elements, and not ':'.
>
> David.
>
> On 29 Apr 2012, at 20:37, Ron Mitchell wrote:
>
>> Just updated from svn e.g. autoloader.php and functions.php
>>
>> Now get the following: string(54)
>> ".;\xampp\php\PEAR:C:\xampp\htdocs\xottrunktest\library" xx
>>
>> Yes testing locally on a Windows Xampp install.
>>
>> -----Original Message-----
>> From: xerte-dev-bounces at lists.nottingham.ac.uk
>> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David
>> Goodwin
>> Sent: 29 April 2012 20:26
>> To: For Xerte technical developers
>> Subject: [Xerte-dev] Re: moodle integration
>>
>> Do you have any locally modified files ? (svn status)
>>
>> I would expect your error if :
>>
>> 1. There isn't a library directory at trunk/library
>>
>> 2. trunk/library doesn't contain autoloader.php
>>
>> 3. autoloader.php doesn't contain something setting the include path
>> to include library.
>>
>>
>> Could you edit library/autoloader.php and put a
>> 'var_dump(ini_get('include_path')) && die('xx'); ' at the top and let
>> me know what it returns.
>>
>> Are you using windows?
>>
>>
>> thanks
>> David.
>>
>>
>> On 29 Apr 2012, at 20:09, Ron Mitchell wrote:
>>
>>> did svn update
>>> cleared existing test install directory re-ran setup which worked ok
>>> but now get:
>>>
>>> Warning: require_once(Zend/Locale/Data/Translation.php)
>>> [function.require-once]: failed to open stream: No such file or
>>> directory in C:\xampp\htdocs\xottrunktest\library\Zend\Locale.php on
>>> line 317
>>>
>>> Fatal error: require_once() [function.require]: Failed opening
>>> required 'Zend/Locale/Data/Translation.php'
>>> (include_path='.;\xampp\php\PEAR:C:\xampp\htdocs\xottrunktest\library'
>>> ) in C:\xampp\htdocs\xottrunktest\library\Zend\Locale.php on line
>>> 317
>>>
>>> HTH
>>> Ron
>>>
>>> -----Original Message-----
>>> From: xerte-dev-bounces at lists.nottingham.ac.uk
>>> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David
>>> Goodwin
>>> Sent: 29 April 2012 19:53
>>> To: For Xerte technical developers
>>> Subject: [Xerte-dev] Re: moodle integration
>>>
>>> Oh, and run 'svn update' in trunk.
>>>
>>> David.
>>>
>>> Pale Purple Ltd. (Company No: 5580814) 'Business Web Application
>>> Development and Training in PHP'
>>>
>>> http://www.palepurple.co.uk
>>> Office: 0845 0046746 Mobile: 07792380669
>>>
>>> Follow us on Twitter: @PalePurpleLtd
>>>
>>>
>>> _______________________________________________
>>> Xerte-dev mailing list
>>> Xerte-dev at lists.nottingham.ac.uk
>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>>
>>> This message and any attachment are intended solely for the
>>> addressee and may contain confidential information. If you have
>>> received this
>> message in
>>> error, please send it back to me, and immediately delete it. Please do
>> not
>>> use, copy or disclose the information contained in this message or
>>> in any attachment. Any views or opinions expressed by the author of
>>> this email do not necessarily reflect the views of the University of
>> Nottingham.
>>>
>>> This message has been checked for viruses but the contents of an
>>> attachment may still contain software viruses which could damage
>>> your
>> computer system:
>>> you are advised to perform your own checks. Email communications
>>> with the University of Nottingham may be monitored as permitted by
>>> UK
>> legislation.
>>>
>>>
>>>
>>> _______________________________________________
>>> Xerte-dev mailing list
>>> Xerte-dev at lists.nottingham.ac.uk
>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>
>> Pale Purple Ltd. (Company No: 5580814) 'Business Web Application
>> Development and Training in PHP'
>>
>> http://www.palepurple.co.uk
>> Office: 0845 0046746 Mobile: 07792380669
>>
>> Follow us on Twitter: @PalePurpleLtd
>>
>>
>> _______________________________________________
>> Xerte-dev mailing list
>> Xerte-dev at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>
>>
>> _______________________________________________
>> Xerte-dev mailing list
>> Xerte-dev at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> Pale Purple Ltd. (Company No: 5580814) 'Business Web Application
> Development and Training in PHP'
>
> http://www.palepurple.co.uk
> Office: 0845 0046746 Mobile: 07792380669
>
> Follow us on Twitter: @PalePurpleLtd
>
>
>
>
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
Pale Purple Ltd. (Company No: 5580814)
'Business Web Application Development and Training in PHP'
http://www.palepurple.co.uk
Office: 0845 0046746 Mobile: 07792380669
Follow us on Twitter: @PalePurpleLtd
_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
More information about the Xerte-dev
mailing list