Menu

wiki tree pb on windows

2012-08-31
2012-09-14
  • Elisabeth Verdier

    Hi,

    Sorry, but I have problems adding files in wiki on my windows installation.

    Please help any guidance will be welcomed.

    thank you

     
  • Con Zymaris

    Con Zymaris - 2012-08-31

    Hi lisalife

    can you give specific details about what isn't working with the wiki? Take
    your time to document the steps you're taking

    -- Con

     
  • Elisabeth Verdier

    Hi conz,

    Using the last allocPSA version 1.8.6 2012-08-27.

    In Wiki, I choose New File in Document path i typed
    D:/xampp/htdocs/allocPSAlast/attachements/wiki/info01.txt , typed some text
    and hit Save Document and I get this:

    %3Cdiv+class%3D%27message+warn+noprint%27+style%3D%27margin-top%3A0px%3B+margin-bottom%3A10px%3B+padding%3A10px%3B%27%3EBad+filename%3A+D%3A%2Fxampp%2Fhtdocs%2FallocPSAlast%2Fattachements%2Fwiki%2Finfo01.txt%3Cbr%3EPath+is+not+writeable.%3Cbr%3ENo+description+of+changes+entered.%3C%2Fdiv%3E
    

    Also, in Tools Security, I have this error: Fatal error: Class
    'invoiceRepeatDate' not found in
    D:\xampp\htdocs\allocPSAlast\security\lib\permission.inc.php on line 40

    Thank you so much for your interest.

     
  • Nobody/Anonymous

    Hello,

    I am jumping in here because I have this error as well - but running on LAMP -
    so I suspect it may be a bug - also see my previous thread...

    Re: Second error -

    Tools Security, I have this error: Fatal error: Class 'invoiceRepeatDate' not
    found in D:\xampp\htdocs\allocPSAlast\security\lib\permission.inc.php on line
    40

    Alex or Con, have any ideas on this one?

    TIA, Keith Waldron

     
  • Con Zymaris

    Con Zymaris - 2012-09-05

    Keith, lisalife,

    we're investigating these now.

    -- Con

     
  • Alex Lance

    Alex Lance - 2012-09-11

    I've fixed that permissions error that was popping up in alloc 1.8.7. You can
    wait till the latest version release or just dump this code into this NEW
    file: invoice/lib/invoiceRepeatDate.inc.php

    <?php
    
    /*
    
     * Copyright (C) 2006-2011 Alex Lance, Clancy Malcolm, Cyber IT Solutions
     * Pty. Ltd.
     * 
     * This file is part of the allocPSA application <info@cyber.com.au>.
     * 
     * allocPSA is free software: you can redistribute it and/or modify it
     * under the terms of the GNU Affero General Public License as published by
     * the Free Software Foundation, either version 3 of the License, or (at
     * your option) any later version.
     * 
     * allocPSA is distributed in the hope that it will be useful, but WITHOUT
     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
     * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
     * License for more details.
     * 
     * You should have received a copy of the GNU Affero General Public License
     * along with allocPSA. If not, see <[url]http://www.gnu.org/licenses/[/url]>.
    */
    
    class invoiceRepeatDate extends db_entity {
      public $classname = "invoiceRepeatDate";
      public $data_table = "invoiceRepeatDate";
      public $key_field = "invoiceRepeatDateID";
      public $data_fields = array("invoiceRepeatID"
                                 ,"invoiceDate"
                                 );
    }
    
    
    
    ?>
    

    I don't have a windows box available that I can test the wiki error on... so
    my diagnosis is going to be a bit poor. But if the path you are trying to
    write to is:

    D:/xampp/htdocs/allocPSAlast/attachements/wiki/info01.txt

    When you're using the wiki interface are you actually typing all of that path
    out? Because you shouldn't be. "D:" will be local to your desktop, not your
    webserver.

    Check that your webserver can in fact write to that path.

    Maybe look through the code for the bit that prints out the error message:
    "Bad filename" and just remove that validation check altogether. You probably
    only need it if you have a malicious user base that is actively trying to hack
    you :-)

    And lastly the error is saying that there was No Description of Changes, so I
    guess enter a description before you hit save.

    We'll try and make all this a bit easier in the future.

     
  • Con Zymaris

    Con Zymaris - 2012-09-14

    lisalife, Keith,

    how are you going with this issue?

    -- Con

     
  • Keith Waldron

    Keith Waldron - 2012-09-14

    Hi lisalife, Conz, Alance,

    Thanks for the fix:

    • I created a new file named: invoice/lib/invoiceRepeatDate.inc.php
    • Pasted the code listed above
    • logged out and closed all allocPSA instances (not sure if this was necessary)
    • logged back in as usual
    • went to tools - security - and the security list displayed all data without errors
      --> fix works for our 1.8.6 installation

    --> issue resolved

    Thanks for your persistent and timely assistance - allocPSA continues to get
    better all the time!

    Keith Waldron

     

Anonymous
Anonymous

Add attachments
Cancel





Auth0 Logo