[Xerte-dev] Re: HELP - can't create new projects on techdis install

Pat Lockley patrick.lockley at googlemail.com
Fri Nov 30 12:07:48 GMT 2012


take the 1.8 zip config.php and add the following at the bottom of it


On Fri, Nov 30, 2012 at 11:02 AM, Ron Mitchell <ronm at mitchellmedia.co.uk>wrote:

> that's already in place in auth_config.php****
>
> ** **
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Pat Lockley
> *Sent:* 30 November 2012 09:53
>
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: HELP - can't create new projects on techdis
> install****
>
> ** **
>
> or try adding to config.txt
>
> ****
>
> ** **
>
> On Fri, Nov 30, 2012 at 9:41 AM, Pat Lockley <
> patrick.lockley at googlemail.com> wrote:****
>
> what happens if you remove the auth_config stuff?****
>
> ** **
>
> ** **
>
> On Fri, Nov 30, 2012 at 9:10 AM, Ron Mitchell <ronm at mitchellmedia.co.uk>
> wrote:****
>
> Hi all****
>
> I still haven't found where the problem lies but I'm a bit happier now
> that I can see the problem exists on xampp too so it's definitely recent
> code changes that have caused this problem and it's probably just the order
> of things killing the session but I haven't found where or why. Here's how
> to reproduce this locally via xampp and also what I've done on the techdis
> server and then repeated on xampp:****
>
>  ****
>
> On techdis server:****
>
> Create a brand new install from the svn code with authentication set to
> guest****
>
> Create a new LO****
>
> Create another new LO****
>
> All working no loss of projects in workspace****
>
> Add path to moodle config in sitedetails****
>
> Refresh and create a new LO - LO is actually created but workspace clears
> and LO not part of authors projects ****
>
>  ****
>
> On xampp****
>
> Create a brand new install from the svn code with authentication set to
> guest****
>
> Create a new LO****
>
> Create another new LO****
>
> All working no loss of projects in workspace****
>
> Add path to moodle config in sitedetails (you'll obviously need moodle
> installed to reproduce this)****
>
> Refresh and create a new LO - LO is actually created but workspace clears
> and LO not part of authors projects ****
>
>  ****
>
> So - it's not a problem unique to the techdis server and is a new problem
> introduced by the current code. At the moment it's going to cause the same
> problem for anyone using moodle authentication but possibly also anyone
> using another system via integrationpath too.****
>
>  ****
>
> Next question: As the problem can also be reproduced via xampp can xdebug
> be installed on xampp? ****
>
> Going to google that now...****
>
>  ****
>
>  ****
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Ron Mitchell
> *Sent:* 29 November 2012 14:43
> *To:* 'For Xerte technical developers'
> *Subject:* [Xerte-dev] Re: HELP - can't create new projects on techdis
> install****
>
>  ****
>
> Pat/David/Simon****
>
> thanks for the suggestions.****
>
> Going offline and need a break from this anyway. Might revisit later
> tonight or might wait until tomorrow.****
>
> Cheers****
>
> Ron****
>
>  ****
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Pat Lockley
> *Sent:* 29 November 2012 14:31
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: HELP - can't create new projects on techdis
> install****
>
>  ****
>
> Go through the two new_template files putting print_r($_SESSION) in at
> regular intervals followed by a "line number xxx" statement.
>
> Then trace it with console or fiddler.****
>
>  ****
>
> On Thu, Nov 29, 2012 at 2:04 PM, David Goodwin <david at palepurple.co.uk>
> wrote:****
>
>  ****
>
> On 29 Nov 2012, at 13:50, "Ron Mitchell" <ronm at mitchellmedia.co.uk> wrote:
> ****
>
>  ****
>
> Hi again Simon****
>
> I found some instructions about installing xdebug and I'm sure I could do
> that but apart from use of it being beyond my comfort zone I'm very wary of
> going this route because this techdis server is used for other systems too.
> I also only have another hour to look at this right now and then I'll be
> offline until much later.****
>
>  ****
>
> Is there a way of debugging without needingdebug?****
>
>  ****
>
>  ****
>
> Binary chopping the code with "die('got here!');" is about the best you're
> left with.****
>
>  ****
>
> David.****
>
>  ****
>
> Pale Purple Ltd.  (Company No: 5580814)****
>
> 'Web and Mobile Application Development for Business'****
>
>  ****
>
> http://www.palepurple.co.uk   ****
>
> Office: 0845 0046746     Mobile: 07792380669 ****
>
>  ****
>
> Follow us on Twitter: @PalePurpleLtd****
>
> ** **
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev****
>
>  ****
>
> ** **
>
>
>
> ****
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev****
>
> ** **
>
> ** **
>
>
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20121130/06eaf301/attachment-0001.html>
-------------- next part --------------
$dir = opendir($xerte_toolkits_site->root_file_path . "modules/");
       
        $learning_objects = new StdClass();
       
        while($folder = readdir($dir)){
       
                if($folder!="."&&$folder!=".."){
                       
                        $inner_dir = opendir($xerte_toolkits_site->root_file_path . "modules/" . $folder . "/templates");
                       
                        while($inner_folder = readdir($inner_dir)){
       
                                if($inner_folder!="."&&$inner_folder!=".."){
                                       
                                        if(file_exists($xerte_toolkits_site->root_file_path . "modules/" . $folder . "/templates/" . $inner_folder . "/" . $inner_folder . ".info")){
                                       
                                                $data = file_get_contents($xerte_toolkits_site->root_file_path . "modules/" . $folder . "/templates/" . $inner_folder . "/" . $inner_folder . ".info");
                                               
                                                $info = explode("\n",$data);
                                               
                                                $learning_objects->{$folder . "_" . $inner_folder} = new StdClass();
                                               
                                                while($attribute = array_pop($info)){
                                               
                                                        $attr_data = explode(":",$attribute);
                                                       
                                                        switch(trim(strtolower($attr_data[0]))){
                                                       
                                                                case "editor size" : $learning_objects->{$folder . "_" . $inner_folder}->editor_size = trim($attr_data[1]); break;
                                                                case "preview size" : $learning_objects->{$folder . "_" . $inner_folder}->preview_size = trim($attr_data[1]); break;
                                                                case "preview filename" : $learning_objects->{$folder . "_" . $inner_folder}->preview_file = trim($attr_data[1]); break;
                                                                case "public filename" : $learning_objects->{$folder . "_" . $inner_folder}->public_file = trim($attr_data[1]); break;
                                                                case "supports" : $learning_objects->{$folder . "_" . $inner_folder}->supports = explode(",",trim($attr_data[1])); break;
                                                       
                                                        }
                                               
                                                }
                                               
                                        }
                               
                                }
                               
                        }
                       
                }
       
        }

        $xerte_toolkits_site->learning_objects = $learning_objects;


More information about the Xerte-dev mailing list