[Xerte] Fwd: Re: Error message when playing/publishing content of type Text
Pat Lockley (Pgogy)
info at pgogywebstuff.com
Thu Apr 14 14:03:49 BST 2016
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: upload.php
Type: application/x-httpd-php
Size: 7083 bytes
Desc: not available
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20160414/922f92e3/attachment.bin>
More information about the Xerte
mailing list