<div dir="ltr"><div></div><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;white-space:normal">Hi Pat,</span></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;white-space:normal">Followed you instructions, and t</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;white-space:normal">he Error message (box) displays with the make_refs_local function commented out and the additional line inserted. </span></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;white-space:normal">It doesn't like the additional line, re: 'print_r($relreffedjsonstr)'</span><br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;white-space:normal">Thanks,</span></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;white-space:normal">Naveed</span><br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><span style="font-family:arial,sans-serif">------------------------------------------------------------------</span><br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Digging
try commenting out the lines in make_refs_local (which is lower down in
upload.php)
It looks benign as a function.
Try changing
$relreffedjsonstr = make_refs_local(urldecode($lo_data),
$_POST['absmedia']);
to
$relreffedjsonstr = make_refs_local(urldecode($lo_data),
$_POST['absmedia']);
print_r($relreffedjsonstr);
and then checking console view again
Pat</pre></div><div class="gmail_extra"><br><div class="gmail_quote">On 14 April 2016 at 09:41, Naveed Hashmi <span dir="ltr"><<a href="mailto:Naveed.Hashmi@bristol.ac.uk" target="_blank">Naveed.Hashmi@bristol.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Pat,<div><br></div><div>I've followed your instructions and the error is throw when the following line in upload.php is encountered :-</div><div><br></div><div><div>$relreffedjsonstr = make_refs_local(urldecode($lo_data), $_POST['absmedia']);</div></div><div><br></div><div>Many thanks,</div><div><br></div><div>Naveed</div><div><br></div><div>-----------------------------------------------------------------------------------------------------------------------------</div><div><br></div>Hi Naveed, <div><br></div><div>This is outside the debug.log feature, this is getting the site to throw errors. </div><div><br></div><div>Bring up editor/upload.php in a text editor Comment out everything bar "echo true"; </div><div><br></div><div>Uncomment a line from the top (or a larger part if there is an if loop or so on) </div><div><br></div><div>Click play </div><div><br></div><div>keep doing this until you hit error </div><div><br></div><div>Which line does error return on </div><div><br></div><div>At the moment it looks like it fails very early on </div><div><br></div><div>Pat</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 13 April 2016 at 15:42, Naveed Hashmi <span dir="ltr"><<a href="mailto:Naveed.Hashmi@bristol.ac.uk" target="_blank">Naveed.Hashmi@bristol.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Pat,<div><br></div><div>The debug.log only shows the following (SELECT) when either clicking Play or Publish<br><div><br></div><div><div>2016-04-13 14:34:18 /var/www/html/website_code/php/database_library.php175Running : SELECT * FROM sitedetails</div></div><div><br></div></div><div>A successful 'play' should go further and show something like ..</div><div><br></div><div><div>1. 2016-04-13 08:13:38 /var/www/html/website_code/php/database_library.php175Running : SELECT * FROM sitedetails </div><div>2. 2016-04-13 08:13:38 /var/www/html/website_code/php/database_library.php175Running : SELECT * FROM sitedetails</div><div>3. 2016-04-13 08:13:38 /var/www/html/website_code/php/database_library.php175Running : </div><div>select otd.template_name, ld.username, otd.template_framework, tr.user_id, tr.folder, tr.template_id, td.access_to_whom, td.extra_flags </div><div>from originaltemplatesdetails otd, templaterights tr, templatedetails td, logindetails ld </div><div>where td.template_type_id = otd.template_type_id and td.creator_id = ld.login_id and tr.template_id = td.template_id and tr.template_id=2 and role='creator'</div><div>4. 2016-04-13 08:13:38 /var/www/html/website_code/php/database_library.php175Running : select * from templaterights where user_id=? AND template_id = ?</div><div>5. 2016-04-13 08:13:38 /var/www/html/website_code/php/xmlInspector.php125Trying to simplexml_load_file : USER-FILES/2-isnsh-Nottingham/preview.xml</div></div><div><br></div><div>Thanks,</div><div><br></div><div>Naveed</div><div><br></div><div>--------------------------------------------------------------------------------------------------</div><div><br></div>Hello <div>Sorry - misread Ok, this means the page throws an error and PHP dies. If you've set development to true in config.php, I would expect a PHP error if a 500 code comes up. Could you try that for me? </div><div><br></div><div>Thanks </div><div><br></div><div>Pat </div><div><br></div><div><br></div><div><div><br></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>