[Xerte-dev] Re: HELP - can't create new projects on techdis install

Simon Atack Simon.Atack at nottingham.ac.uk
Thu Nov 29 13:24:26 GMT 2012


Ron,

I think the only easy way you are going to be able to track this down is using a debugger.

Set the remote server up to support xdebug (as you say the local setup works ok).  Run through the code with xdebug enabled and a breakpoint at the point just as its starting to create a new project step through each instruction looking at the variables that are set or not.

You can then compare the differences between them ahnd if needed check further back for what sets things wrong.

Jetbrains phpstorm allows this (I believe Julian gave a key out for the developers of Xerte to use for this) else notepad++ and even firefox have plugins for php xdebug support.

Simon

From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 29 November 2012 13:16
To: 'For Xerte technical developers'
Subject: [Xerte-dev] Re: HELP - can't create new projects on techdis install

It seems to me it failing if there's an incorrect value in the  database for integrationpath or if it does correctly point to moodle config as in this case it has always done.

If I create an empty php file and put the path to that in integration path creating new projects via guest or static still works.

With guest or static enabled creating new projects doesn't work if there's an incorrect value in that field or a correct value to moodle's config.php although this does work locally via xampp and has always worked previously on this server too.

I've lost the will to live with this!

From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 29 November 2012 12:20
To: For Xerte technical developers
Subject: [Xerte-dev] Re: HELP - can't create new projects on techdis install

> Could this be related to the LTI code? I've tried replacing that folder with previous version but is that called from somewhere else that might be causing the problem?

The problem here is that we don't really understand the integration stuff 'cos we've not used it, so Simon isn't too sure how he could rule out the LTI code as the cause of the problem... but I'd be keen to rule it out, so if you can explain succinctly what's what that would really help,

From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 29 November 2012 12:00
To: 'For Xerte technical developers'
Subject: [Xerte-dev] Re: HELP - can't create new projects on techdis install

Integration path is set in the db now for moodle integration and the code in config.php around line 64 doesn't seem to have changed?

What's confusing is that this works fine via xampp but not on the linux server and doesn't work even if the value in integration_path isn't to a proper file/location e.g. if it's to a file that doesn't exist or incorrect path it still causes the problem.

Could this be related to the LTI code? I've tried replacing that folder with previous version but is that called from somewhere else that might be causing the problem?

From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat Lockley
Sent: 29 November 2012 11:31
To: For Xerte technical developers
Subject: [Xerte-dev] Re: HELP - can't create new projects on techdis install

I didn't change integration path with my stuff?

Ah hold on.

If you use integration path it uses the moodle session right?

Where is integration path set?

I suspect it is moodle integration that is killing it - so the new bit I put into config.php might be killing the integration path session.

Try moving the integration path setting towards the top of config.php

On Thu, Nov 29, 2012 at 11:27 AM, Ron Mitchell <ronm at mitchellmedia.co.uk<mailto:ronm at mitchellmedia.co.uk>> wrote:
Hi all
this continues to be a nightmare but I tested some more very last night and again this morning and I think I've got a little closer to the issue.

I installed a brand new clean install elsewhere on the techdis server and tried that with both guest and static authentication and with those defaults creating new projects is fine.

However then I restored a database backup from the test installation we've been using, edited sitedetails and copied accross the use-files and creating new projects no longer worked. So same code but difference in db.

It seems the problem happens now when there is an integration_path in sitedetails regardless of the authentication method used. e.g. If i switch to guest access I can create new projects with integration path empty but I can't with a correct or incorrect value in integration_path.

What's confusing is that this works locally via xampp with an integration path. e.g. whether using guest, static or moodle authentication.

Also up to the point that uploading the code broke it the techdis test installation was working fine with the integration path configured for moodle integration. Prior to the update obviously creating new projects hasn't been a problem.

Pat - does that help narrow the issue?

Cheers
Ron

From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Ron Mitchell
Sent: 28 November 2012 23:37

To: 'For Xerte technical developers'
Subject: [Xerte-dev] Re: HELP - can't create new projects on techdis install

BTW I've noticed that deleting a project, dragging a project, creating a new folder all have the same affect of clearing the workspace (presumably killing the session) until refresh.

From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 28 November 2012 23:31

To: 'For Xerte technical developers'
Subject: [Xerte-dev] Re: HELP - can't create new projects on techdis install

Pat/David/John
thanks for all the responses and suggestions.
I've been trying to resolve this since early afternoon and still no progress so I'm calling it a night for now :-(

I've been updating the techdis install on practically a daily basis whenever commits are made and until today this problem simply hasn't materialised. e.g. after each previous update no problem creating new projects. Something has screwed it but I just can't find what.

Maybe a new day and fresh start tomorrow will shed some light.

But it would be really good if someone else could test the latest svn code on a linux setup rather than xampp.

Cheers
Ron

From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David Goodwin
Sent: 28 November 2012 22:49
To: For Xerte technical developers
Subject: [Xerte-dev] Re: HELP - can't create new projects on techdis install


You could also perhaps add an 'ob_start()' in near the top if your problem is actually one of spaces/the session being started too soon; this ought to stop PHP sending headers/etc before the session starts.


Jesus. That sentence is rubbish. Well, 'the session being started too soon' bit is at least.


'ob_start()' should delay PHP from sending any output to the browser - and therefore may help correct any problem related to sessions. I'm pretty sure there is an implicit 'ob_flush()' at the end of the request.

(I've rarely used ob_start()/ob_flush() so may be wrong).


David.


Also - check the Apache error log file - sometimes it has something of use.


David.


Pale Purple Ltd.  (Company No: 5580814)
'Business Web Application Development and Training in PHP'

http://www.palepurple.co.uk<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<mailto: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<mailto: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/20121129/54b9f2a2/attachment-0001.html>


More information about the Xerte-dev mailing list