<div dir="ltr">No that looks like a normal query (the ? should be rewritten)<div>But the fact it runs or logs that suggests the error is after that, which makes me think that an id or data isn't happening properly.</div><div>Put echos in the code and see what the console returns (click on the link then click on response)</div><div>Not at FOTE, sorry</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 2, 2014 at 7:45 PM, Ron Mitchell <span dir="ltr"><<a href="mailto:ronm@mitchellmedia.co.uk" target="_blank">ronm@mitchellmedia.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-GB" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks Pat<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">error reporting is on but I'm not entirely sure what to look for. The log generates a load of lines like<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">/xot/website_code/php/database_library.php146Running : select login_id from logindetails where username = ?<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">or ending with select folder_id from folderdetails where login_id= ? AND folder_name = ?<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">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 (?, ?, ?, ?, ?, ?, ?, ?, ?)<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">are those question marks correct or should there be actual values instead?<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Cheers<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ron<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">BTW are you at FOTE tomorrow at any point?<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Pat L (pgogy)<br><b>Sent:</b> 02 October 2014 16:23<br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Re: upgraded test install error<u></u><u></u></span></p></div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Ron,<u></u><u></u></p><div><p class="MsoNormal">a PHP 500 error suggests a bug in running the php in the page<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Try turning on error reporting and hitting the URL directly<u></u><u></u></p></div></div><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">On Thu, Oct 2, 2014 at 3:08 PM, Ron Mitchell <<a href="mailto:ronm@mitchellmedia.co.uk" target="_blank">ronm@mitchellmedia.co.uk</a>> wrote:<u></u><u></u></p><div><div><p class="MsoNormal"><span style="color:#1f497d">Been testing further…</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d">Console error on publish</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d">POST <a href="http://domainremoved/xot/editor/upload.php" target="_blank">http://domainremoved/xot/editor/upload.php</a> 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</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d">console error on play</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d">treeroot: 3 children tree.js:106</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d">ID_<a href="tel:7036018245" target="_blank">7036018245</a>: 0 children tree.js:106</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d">ID_5585580228: 0 children tree.js:106</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d">ID_<a href="tel:3148587715" target="_blank">3148587715</a>: 0 children tree.js:106</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d">POST <a href="http://domainremoved/xot/editor/upload.php" target="_blank">http://domainremoved/xot/editor/upload.php</a> 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</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d"> </span><u></u><u></u></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Ron Mitchell<br><b>Sent:</b> 02 October 2014 13:48<br><b>To:</b> 'For Xerte technical developers'<br><b>Subject:</b> [Xerte-dev] upgraded test install error</span><u></u><u></u></p></div></div><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Hi has anyone tried an upgrade with the latest develop code?<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">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:<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Failed to load resource: the server responded with a status of 500 (Internal Server Error) <a href="http://vle.jisctechdis.ac.uk/xot/editor/upload.php" target="_blank">http://vle.jisctechdis.ac.uk/xot/editor/upload.php</a><u></u><u></u></p><p class="MsoNormal">treeroot: 2 children tree.js:106<u></u><u></u></p><p class="MsoNormal">ID_<a href="tel:3068040163" target="_blank">3068040163</a>: 0 children tree.js:106<u></u><u></u></p><p class="MsoNormal">ID_0573572314: 0 children<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Any ideas?<u></u><u></u></p><p class="MsoNormal">Cheers<u></u><u></u></p><p class="MsoNormal">Ron<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p>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.<u></u><u></u></p><p>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.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p><p>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.<u></u><u></u></p><p>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.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_______________________________________________<br>Xerte-dev mailing list<br><a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p></div></div>
<br><p>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.</p><p>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.</p>
<br></div><br>_______________________________________________<br>
Xerte-dev mailing list<br>
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
<br></blockquote></div><br></div>