[Xerte] Can't save work in browser based Xerte
Patrick Lockley
Patrick.Lockley at nottingham.ac.uk
Mon Nov 17 13:17:57 GMT 2008
Hi Stuart,
a php info page is
any php page with the following in
<?
phpinfo();
?>
XAMPP has one available from its control panel (usually
http://localhost/xampp/).
It basically dumps all your php settings to the screen
I've modified demo slightly (the original version generates a new user
id each time - this version below will mean everyone who uses demo.php
will get the same files).
$_SESSION['guest']==true;
$_SESSION['firstname'] = "Guest";
$_SESSION['surname'] = "User";
include $site->php_library_path . "database_library.php";
include $site->php_library_path . "user_library.php";
$mysql_id=database_connect("index.php database connect
success","index.php database connect fail");
$_SESSION['login_ldap'] = "GuestUser";
So these are the new lines 17-29.
Hope this helps
Pat
________________________________
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Harrod Stuart
Sent: 17 November 2008 13:11
To: Xerte discussion list
Subject: RE: [Xerte] Can't save work in browser based Xerte
Patrick
Here is my demo.php file attached. I have renamed it since, but
the code structure hasn't changed
I am not as technical as some so am in the dark a little with
this xampp and permissions stuff.
When you say run a php info page, what exactly do you mean?
Cheers
Stuart
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Patrick
Lockley
Sent: 14 November 2008 20:13
To: Xerte discussion list
Subject: RE: [Xerte] Can't save work in browser based Xerte
Its still in beta, so your errors are almost certainly my code
misbehaving.
However, "You don't have sufficient rights for this template" is
caused, usually by the session id expiring (assuming you are running
demo).
The 1--Nottingham suggests your session id isn't being set
properly as well.
usually the name of the folder in USERFILES is <<id
number>>-<<creator id>>-<<template type>>
COuld you email me your demo.php so I can see what you're
setting.
Also, could you run a php info page to make sure your PHP
install has sessions installed.
Thanks
________________________________
From: xerte-bounces at lists.nottingham.ac.uk on behalf of Harrod
Stuart
Sent: Fri 14/11/2008 16:11
To: Xerte discussion list
Subject: RE: [Xerte] Can't save work in browser based Xerte
Thanks for the quick response.
I have renamed the demo.php - thanks for the warning.
I can't access your links. Even though they are on my own server
I am getting: "You don't have sufficient rights for this template"
If I keep refreshing my browser I eventually get my old projects
I have created as it seems to have cached them, If I copy the edit link
from the properties dialogue box on one my projects, it doesn't work
For example, the project properties link section tells me that
the link for my project is: MailScanner has detected a possible fraud
attempt from "JavaScript" claiming to be
http://elearn.dewsbury.ac.uk/toolkits/edit_1
But if I type or copy this into a new browser window I get:
in this bit
Warning: file_get_contents(USER-FILES/1--Nottingham/data.xml)
[function.file-get-contents
<http://elearn.dewsbury.ac.uk/toolkits/function.file-get-contents> ]:
failed to open stream: No such file or directory in
C:\moodle\server\moodle\toolkits\edit.php on line 173
You don't have sufficient rights for this template
Sorry if this is obvious stuff, but I don't have a lot of
experience with setting up servers and permissions.
Thanks
Stuart Harrod
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Patrick
Lockley
Sent: 14 November 2008 15:04
To: Xerte discussion list
Subject: RE: [Xerte] Can't save work in browser based Xerte
Hello,
1) Please don't advertise the demo link!
2)MailScanner has detected a possible fraud attempt from
"JavaScript" claiming to be http://elearn.dewsbury.ac.uk/toolkits/play_2
works?
3)http://elearn.dewsbury.ac.uk/toolkits/play_11
I just made the bottom one, I am very proud of it :)
Pat
________________________________
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Harrod Stuart
Sent: 14 November 2008 12:55
To: xerte at lists.nottingham.ac.uk
Subject: [Xerte] Can't save work in browser based Xerte
Thanks to the responses to my Xerte installation problem
in Xampp. I have got it working now by installing it from the live
domain address instead of the localhost.
It is working at
http://elearn.dewsbury.ac.uk/toolkits/demo.php It seems to work fine,
but I can't save anything I do. Is this because it is a demo only. Is
there a way of saving a project that I create?
Regards
Stuart Harrod
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20081117/6724ba6e/attachment.html
More information about the Xerte
mailing list