[Xerte-dev] Re: moodle integration

David Goodwin david at palepurple.co.uk
Sun Apr 29 21:53:08 BST 2012


> 
> 
> 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








More information about the Xerte-dev mailing list