[Xerte] Re: Error message when playing/publishing content of type Text
Naveed Hashmi
Naveed.Hashmi at bristol.ac.uk
Thu Apr 14 09:41:20 BST 2016
Hi Pat,
I've followed your instructions and the error is throw when the following
line in upload.php is encountered :-
$relreffedjsonstr = make_refs_local(urldecode($lo_data),
$_POST['absmedia']);
Many thanks,
Naveed
-----------------------------------------------------------------------------------------------------------------------------
Hi Naveed,
This is outside the debug.log feature, this is getting the site to throw
errors.
Bring up editor/upload.php in a text editor Comment out everything bar
"echo true";
Uncomment a line from the top (or a larger part if there is an if loop or
so on)
Click play
keep doing this until you hit error
Which line does error return on
At the moment it looks like it fails very early on
Pat
On 13 April 2016 at 15:42, Naveed Hashmi <Naveed.Hashmi at bristol.ac.uk>
wrote:
> Hi Pat,
>
> The debug.log only shows the following (SELECT) when either clicking Play
> or Publish
>
> 2016-04-13 14:34:18
> /var/www/html/website_code/php/database_library.php175Running : SELECT *
> FROM sitedetails
>
> A successful 'play' should go further and show something like ..
>
> 1. 2016-04-13 08:13:38
> /var/www/html/website_code/php/database_library.php175Running : SELECT *
> FROM sitedetails
> 2. 2016-04-13 08:13:38
> /var/www/html/website_code/php/database_library.php175Running : SELECT *
> FROM sitedetails
> 3. 2016-04-13 08:13:38
> /var/www/html/website_code/php/database_library.php175Running :
> select otd.template_name, ld.username, otd.template_framework, tr.user_id,
> tr.folder, tr.template_id, td.access_to_whom, td.extra_flags
> from originaltemplatesdetails otd, templaterights tr, templatedetails td,
> logindetails ld
> 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'
> 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 = ?
> 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
>
> Thanks,
>
> Naveed
>
>
> --------------------------------------------------------------------------------------------------
>
> Hello
> 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?
>
> Thanks
>
> Pat
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20160414/7161912a/attachment.html>
More information about the Xerte
mailing list