<div dir="ltr">sometimes it just happens when sessions die<div>logging out and back in refreshes a session</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Dec 11, 2013 at 10:22 PM, KnowledgeWare <span dir="ltr"><<a href="mailto:knowledgeware@kccsoft.com" target="_blank">knowledgeware@kccsoft.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-CA" link="blue" vlink="purple"><div><p class="MsoNormal"><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. <u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><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.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><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. <u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><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?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">Thanks!<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">RonM2<u></u><u></u></span></p>
<p class="MsoNormal"><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.<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">From EDIT.PHP:<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">                <u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">                                }else{    <u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">                                                /*<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">                                                * Wiki mode - check to see if template allows anonymous editing.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">                                                */<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">                <u></u><u></u></span></p><p class="MsoNormal">
<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";<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">                <u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">                                                $buffer = file_get_contents($string_for_flash_xml);<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">                <u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">                                                if(strpos($buffer,"<span style="background:fuchsia">editable=true</span>")==false){<br>
                <u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">echo "<h3><span style="background:yellow">ERROR: Insufficient Editing Privileges</span></h3>\n";<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">                                                                                <u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">                                                                /*<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">                                                                * Wiki mode not set        <span style="background:yellow">????????  WHAT DOES THIS MEAN  ??????</span><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">                                                                */           <u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">                                                                <br>
                                                }else{<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">                                                                /*<u></u><u></u></span></p><p class="MsoNormal">
<span style="color:#1f497d">                                                                * Wiki mode set<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">                                                                */           <u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">                 <u></u><u></u></span></p></div>
<br><p>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.</p>
<p>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.</p>

<br></div><br>_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br></blockquote></div><br></div>