[Xerte-dev] Re: upgraded test install error

Ron Mitchell ronm at mitchellmedia.co.uk
Sat Oct 4 20:08:07 BST 2014


Ok have tested further but still not working :-(

Neither of your upload.php files have resolved the issue Tom

json 1.2.1 is showing as enabled and appears to be the same on xampp as it
is on the test server

it doesn't appear to be due to permissions on the editor folder as files are
getting written there (see below)

The following files have been written to the editor folder:

decoded_local_refs_preview.txt
decoded_local_refs_publish.txt
decoded_unprocessed_preview.txt
decoded_unprocessed_publish.txt
local_refs_preview.txt
local_refs_publish.txt
unprocessed_preview.txt
unprocessed_publish.txt

Not sure what to try next?

Ron


-----Original Message-----
From: xerte-dev-bounces at lists.nottingham.ac.uk
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John
Sent: 03 October 2014 10:24
To: For Xerte technical developers
Subject: [Xerte-dev] Re: upgraded test install error

Strange that OpenSuse doesn't mind them then but Ubuntu does...

As a guess i'd say that they're probably escaped in the xml coming in but
not being properly unescaped...

Regards,

John Smith | Learning Technologist
Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow
Caledonian University Cowcaddens Road | Glasgow | G4 0BA

Please address ALL support requests to hlsblt at gcu.ac.uk where one of the
School Learning Technologists will pick up the job. This will ensure that
all jobs are completed as promptly as possible.
________________________________________
From: xerte-dev-bounces at lists.nottingham.ac.uk
[xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Tom Reijnders
[reijnders at tor.nl]
Sent: 03 October 2014 10:01
To: For Xerte technical developers
Subject: [Xerte-dev] Re: upgraded test install error

Yeah, I saw that, but that's not the issue.

The issue is that somehow \' characters end up in the json string and that's
not accepted by json_decode.

Tom

Smith, John schreef op 3-10-2014 10:42:
> Hi all,
>
> Sorry, i'm reading these posts but unable to contribute much to them until
I get better but read this and thought I should pipe in...
>
> There is an issue with Ubuntu PHP not having JSON included
http://www.thedevshack.com/ubuntu-13-10-issue-call-to-undefined-function-jso
n_decode/ so you may want to explore that avenue...
>
> phpinfo should reveal whether its there or not..
>
> Regards,
>
> John Smith | Learning Technologist
> Room A250, Govan Mbeki Building | School of Health & Life Sciences | 
> Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA
>
> Please address ALL support requests to hlsblt at gcu.ac.uk where one of the
School Learning Technologists will pick up the job. This will ensure that
all jobs are completed as promptly as possible.
> ________________________________________
> From: xerte-dev-bounces at lists.nottingham.ac.uk 
> [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Tom Reijnders 
> [reijnders at tor.nl]
> Sent: 03 October 2014 09:24
> To: For Xerte technical developers
> Subject: [Xerte-dev] Re: upgraded test install error
>
> Yes. There was still a lot of debugging code in upload.php (which tries to
write files to the folder <inst>/editor. Perhaps that is what caused it.
>
> Another thing, is that the code works on my OpenSuSE server, but it didn't
work on an Ubuntu server.
> I am working on it. It has to do with json_decode in that case.
>
> Tom
>
> Ron Mitchell schreef op 3-10-2014 9:38:
> Hi Tom
> I can't check right now but I downloaded a copy of the install I was using
and set that up via xamp and that now works even with the original
upload.php from develop. So although I can't check until tonight thinking
about the differences between latest develop code with new editor etc and
previous working 2.1 install are there any differences in terms of
permissions or server dependencies/settings? e.g. same code works via xampp
but not on live server.
> Cheers
> Ron
>
> From: 
> xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at list
> s.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] 
> On Behalf Of Tom Reijnders
> Sent: 03 October 2014 07:36
> To: For Xerte technical developers
> Subject: [Xerte-dev] Re: upgraded test install error
>
> And this one.
>
> Tom
> Ron Mitchell schreef op 2-10-2014 23:01:
> Hi Tom
> just quickly tried this but still not working. Will try again at some
point tomorrow.
> Cheers
> Ron
>
> From: 
> xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at list
> s.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] 
> On Behalf Of Tom Reijnders
> Sent: 02 October 2014 21:22
> To: For Xerte technical developers
> Subject: [Xerte-dev] Re: upgraded test install error
>
> Please try this version, and let me know if this works for you.
>
> If not, there will be a number of debugging files in the editor folded of
the installation.
>
> Tom
> Ron Mitchell schreef op 2-10-2014 20:45:
> Thanks Pat
> error reporting is on but I'm not entirely sure what to look for. The 
> log generates a load of lines like
/xot/website_code/php/database_library.php146Running : select login_id from
logindetails where username = ?
> or ending with select folder_id from folderdetails where login_id= ? AND
folder_name = ?
> or INSERT INTO templatedetails (template_id, creator_id, 
> template_type_id, date_created, date_modified, number_of_uses, 
> access_to_whom, template_name, extra_flags) VALUES (?, ?, ?, ?, ?, ?, 
> ?, ?, ?)
>
> are those question marks correct or should there be actual values instead?
>
> Cheers
> Ron
>
> BTW are you at FOTE tomorrow at any point?
>
>
>
> From: 
> xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at list
> s.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] 
> On Behalf Of Pat L (pgogy)
> Sent: 02 October 2014 16:23
> To: For Xerte technical developers
> Subject: [Xerte-dev] Re: upgraded test install error
>
> Ron,
> a PHP 500 error suggests a bug in running the php in the page
>
> Try turning on error reporting and hitting the URL directly
>
> On Thu, Oct 2, 2014 at 3:08 PM, Ron Mitchell
<ronm at mitchellmedia.co.uk<mailto:ronm at mitchellmedia.co.uk>> wrote:
> Been testing further.
> Console error on publish
> POST http://domainremoved/xot/editor/upload.php 500 (Internal Server 
> Error) jquery.js:9597send jquery.js:9597b.extend.ajax 
> jquery.js:9597publish tree.js:168(anonymous function) 
> tree.js:63b.event.dispatch jquery.js:9593v.handle
>
> console error on play
> treeroot: 3 children tree.js:106
> ID_7036018245<tel:7036018245>: 0 children tree.js:106
> ID_5585580228: 0 children tree.js:106
> ID_3148587715<tel:3148587715>: 0 children tree.js:106 POST 
> http://domainremoved/xot/editor/upload.php 500 (Internal Server Error) 
> jquery.js:9597send jquery.js:9597b.extend.ajax jquery.js:9597preview 
> tree.js:137(anonymous function) tree.js:63b.event.dispatch 
> jquery.js:9593v.handle
>
> From: 
> xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at list
> s.nottingham.ac.uk> 
> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-boun
> ces at lists.nottingham.ac.uk>] On Behalf Of Ron Mitchell
> Sent: 02 October 2014 13:48
> To: 'For Xerte technical developers'
> Subject: [Xerte-dev] upgraded test install error
>
> Hi has anyone tried an upgrade with the latest develop code?
>
> I guess this might be a question for Tom. I've upgraded a test install and
existing projects play ok but using the new editor I can't play or preview
or save changes. Via browser console I'm getting the following error:
>
> Failed to load resource: the server responded with a status of 500 
> (Internal Server Error) 
> http://vle.jisctechdis.ac.uk/xot/editor/upload.php
> treeroot: 2 children tree.js:106
> ID_3068040163<tel:3068040163>: 0 children tree.js:106
> ID_0573572314: 0 children
>
> Any ideas?
> Cheers
> Ron
>
>
> 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.
>
>
>
> 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<mailto: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<mailto:Xerte-dev at lists.nottingham.ac.
> uk>
>
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
>
>
>
> --
>
> --
>
>
>
> Tom Reijnders
>
> TOR Informatica
>
> Chopinlaan 27
>
> 5242HM Rosmalen
>
> Tel: 073 5226191
>
> Fax: 073 5226196
>
>
>
>
> 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.
>
>
>
> 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<mailto:Xerte-dev at lists.nottingham.ac.
> uk>
>
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
>
>
> --
>
> --
>
>
>
> Tom Reijnders
>
> TOR Informatica
>
> Chopinlaan 27
>
> 5242HM Rosmalen
>
> Tel: 073 5226191
>
> Fax: 073 5226196
>
>
>
>
> 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.
>
>
>
> 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<mailto:Xerte-dev at lists.nottingham.ac.
> uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
>
>
> --
> --
>
> Tom Reijnders
> TOR Informatica
> Chopinlaan 27
> 5242HM Rosmalen
> Tel: 073 5226191
> Fax: 073 5226196
>
>
>
>
> 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.
>
> Glasgow Caledonian University is a registered Scottish charity, number 
> SC021474
>
> _______________________________________________
> 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.
>
>
>
>
>

--
--

Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196


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





Glasgow Caledonian University is a registered Scottish charity, number
SC021474

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







More information about the Xerte-dev mailing list