[Xerte] Re: ERROR: insufficient editing privileges

Dave Burnett d_b_burnett at hotmail.com
Wed Dec 11 22:40:03 GMT 2013

My shot in the dark:
$buffer = file_get_contents($string_for_flash_xml);
$buffer is empty, possibly the file has not loaded yet.

From: knowledgeware at kccsoft.com
To: xerte at lists.nottingham.ac.uk
Date: Wed, 11 Dec 2013 14:22:38 -0800
Subject: [Xerte] ERROR: insufficient editing privileges

I’m still on XOT 1.8 (trying to move to 2) and running into intermittent ‘ERROR: Insufficient Editing Priviliges’ issues when trying to edit a LO.  This error message is in ‘EDIT.PHP’ and the trigger is on Line 234 as below in pink/yellow. It appears that the LO I’m trying to edit does not have ‘Editable=True’ set, however this problem is intermittent and only appears occaisonally. For instance, this morning I logged in as per usual and got the error (windows did multiple updates last night, not sure if that had any effect). Then I logged in as another user and it went away, when I logged in as the original user it was OK and the error did not appear.  I’m not good with PHP, can anyone tell me in plain language what this error is telling me, and when it happens how I might be able to overcome it? Thanks!RonM2BTW: almost done with a parts/modules html menu for XOT2, will wait for John’s page events to deal with dbase communications. From EDIT.PHP:                                                }else{                                                    /*                                                * Wiki mode - check to see if template allows anonymous editing.                                                */                                                                $string_for_flash_xml = $xerte_toolkits_site->users_file_area_short . $row_edit['template_id'] . "-" . $row_username['username'] . "-" . $row_edit['template_name'] . "/data.xml";                                                                $buffer = file_get_contents($string_for_flash_xml);                                                                if(strpos($buffer,"editable=true")==false){
                echo "<h3>ERROR: Insufficient Editing Privileges</h3>\n";                                                                                                                                                /*                                                                * Wiki mode not set        ????????  WHAT DOES THIS MEAN  ??????                                                                */                                                                           
                                                }else{                                                                /*                                                                * Wiki mode set                                                                */                            

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20131211/49beb977/attachment-0001.html>

More information about the Xerte mailing list