<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div>My shot in the dark:</div><div><br></div><div><span style="color: rgb(31, 73, 125);">$buffer = file_get_contents($string_for_flash_xml);</span></div><div><span style="color: rgb(31, 73, 125);"><br></span></div><div><span style="color: rgb(31, 73, 125);">$buffer is empty, possibly the file has not loaded yet.</span></div><div><br></div><div><br></div><div><hr id="stopSpelling">From: knowledgeware@kccsoft.com<br>To: xerte@lists.nottingham.ac.uk<br>Date: Wed, 11 Dec 2013 14:22:38 -0800<br>Subject: [Xerte] ERROR: insufficient editing privileges<br><br><style><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal {
font-size:11.0pt;
font-family:"Calibri","sans-serif";
}

.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink {
color:blue;
text-decoration:underline;
}

.ExternalClass span.ecxMsoHyperlinkFollowed {
color:purple;
text-decoration:underline;
}

.ExternalClass p.ecxmsochpdefault, .ExternalClass li.ecxmsochpdefault, .ExternalClass div.ecxmsochpdefault {
font-size:12.0pt;
font-family:"Calibri","sans-serif";
}

.ExternalClass span.ecxemailstyle17 {
font-family:"Calibri","sans-serif";
color:windowtext;
}

.ExternalClass span.ecxEmailStyle19 {
font-family:"Calibri","sans-serif";
color:#1F497D;
}

.ExternalClass .ecxMsoChpDefault {
font-size:10.0pt;
font-family:"Calibri","sans-serif";
}

.ExternalClass div.ecxWordSection1 {
}

--></style><div class="ecxWordSection1"><p class="ecxMsoNormal"><span style="color:#1F497D;">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. </span></p><p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">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.</span></p><p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">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. </span></p><p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">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?</span></p><p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">Thanks!</span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">RonM2</span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">BTW: almost done with a parts/modules html menu for XOT2, will wait for John’s page events to deal with dbase communications.</span></p><p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">From EDIT.PHP:</span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">                </span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">                                }else{    </span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">                                                /*</span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">                                                * Wiki mode - check to see if template allows anonymous editing.</span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">                                                */</span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">                </span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">                                                $string_for_flash_xml = $xerte_toolkits_site->users_file_area_short . $row_edit['template_id'] . "-" . $row_username['username'] . "-" . $row_edit['template_name'] . "/data.xml";</span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">                </span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">                                                $buffer = file_get_contents($string_for_flash_xml);</span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">                </span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">                                                if(strpos($buffer,"<span style="background:fuchsia;">editable=true</span>")==false){<br>                </span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">echo "<h3><span style="background:yellow;">ERROR: Insufficient Editing Privileges</span></h3>\n";</span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">                                                                                </span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">                                                                /*</span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">                                                                * Wiki mode not set        <span style="background:yellow;">????????  WHAT DOES THIS MEAN  ??????</span></span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">                                                                */           </span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">                                                                <br>                                                }else{</span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">                                                                /*</span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">                                                                * Wiki mode set</span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">                                                                */           </span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">                 </span></p></div>
<br>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.<BR>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.<BR>
<br><br>_______________________________________________
Xerte mailing list
Xerte@lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte</div>                                          </div></body>
</html>