[Xerte] Re: Fwd: Re: Error message when playing/publishing content of type Text
Pat Lockley (Pgogy)
info at pgogywebstuff.com
Thu Apr 14 14:08:11 BST 2016
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
On 2016-04-14 14:03, Pat Lockley (Pgogy) wrote:
> Dear list,
>
> Problem in make_refs_local?
>
> -----------------------
> Hi,
>
> $relreffedjsonstr = make_refs_local(urldecode($lo_data),
> $_POST['absmedia']);
>
> The above calls the function "make_refs_local($json, $media)", however
> uncommenting this (curly brackets only or the contents of the function
> one line at a time ) and clicking 'play' displays a box with 'This
> project does not contain any pages.'
>
> Hence I think the source of problem is triggered before the call to the
> make_refs_local function, i.e. in the above line.
>
> See attached my upload.php as it currently stands, this generates the
> error.
>
> Thanks,
>
> Naveed
>
> On 14 April 2016 at 11:17, Pat L (pgogy) <info at pgogywebstuff.com>
> wrote:
>
>> No problem
>> Let me know if i can help more
>>
>> -------- Original message --------
>> From: Naveed Hashmi <Naveed.Hashmi at bristol.ac.uk>
>> Date: 14/04/2016 11:01 (GMT+00:00)
>> To: Pat Lockley <info at pgogywebstuff.com>
>> Subject: Re: Error message when playing/publishing content of type
>> Text
>>
>> Hi Pat
>>
>> Ignore message below, the problem lies somewhere within the
>> make_refs_local function, which I need to uncomment one line at a time
>> ...
>>
>> Thanks,
>>
>> Naveed
>>
>> On 14 April 2016 at 09:41, Naveed Hashmi <Naveed.Hashmi at bristol.ac.uk>
>> wrote:
>>
>> 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
>
>
>
> --
> Pgogy Webstuff
> pgogywebstuff.com
>
>
>
> 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 mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
--
Pgogy Webstuff
pgogywebstuff.com
More information about the Xerte
mailing list