Can't write file .xml to the disk
  • MalboeufMalboeuf March 2009

    I have two loads of SI, one is local testing Server at home and the other is a web server, the local server does not get this error but my web server does when i hit
    Reports + Sales + [Any Sales View]
    in Filemon it show trying to write a file actually called .xml in the root web folder and gets a Access Denigned because if it, Ive not yet looked at what the test server does yet has I have not had time to switch over to it

    Win2k3 all Updates
    II6 w ASP.NET 2.0.50727
    MySql 5.1.31
    PHP 5.2.8
    --------------
    OOOOPS, THERE'S AN ERROR HERE.

    Can't write file .xml to the disk. Check your disk quota/space and rights.

    This error message was generated by phpReports.
    --------------

  • MalboeufMalboeuf March 2009

    note, im not running apache as I dont need it
    aslo It has no problems creating files in the cache folder as it has full access

  • justinjustin March 2009

    thanks malboeuf for the info

    reports is built using phpreports.sf.net code

    i've never seen this issue before - shouldn't be writing any files to the web root

    we've modified the phpreports code to use ./tmp/cache or ./cache (depending on your version) as its cache dir so should be OK

    anyone else seen this issue?

    try the test on the test webserver and see where it writes to - let us know how you go

    cheers

    justin

    SmarterInvoices.com :: Simple Invoices hosting | Kelly.org.au :: Simple Invoices custom development | justin.kelly.org.au
  • MalboeufMalboeuf March 2009

    on my test server its writing to tmp folder, I'm going to look over all the file permissions on both servers windows/php folders and post back later

  • justinjustin March 2009

    Thanks Malboeuf for the update

    let me know how you go with the permissions - hopefully we can sort this issue out

    Cheers

    Justin

    SmarterInvoices.com :: Simple Invoices hosting | Kelly.org.au :: Simple Invoices custom development | justin.kelly.org.au
  • starscreamstarscream October 2009

    Hello everyone,

    Sorry for bumping this topic. I'm having the exact same difficulties. Simple Invoices tries to store the XML file here: /var/tmp/ instead of /tmp/. I'm using version 2009.1 of Simple Invoices.

    Any suggestions? Thanks in advanced.

    Kind regards, starscream

  • starscreamstarscream November 2009

    Anyone?

  • justinjustin November 2009

    hey starscream

    grep the library/phpreports directory for /var/tmp

    as far as i remember i tried to change everythign to ./tmp/cache

    if you find in the phpreports code where it points to /var/tmp please let us know so we can fix this

    sorry - don't have a better solution at the moment for this :(

    cheers

    justin

    SmarterInvoices.com :: Simple Invoices hosting | Kelly.org.au :: Simple Invoices custom development | justin.kelly.org.au
  • starscreamstarscream November 2009

    I found a solution for this problem! Not sure why it's sending it to /var/tmp, couldn't find it anywhere.

    function getPHPReportsTmpPath(){
    $sPath = tempnam(null,"check");
    unlink($sPath);
    return realpath(dirname($sPath));
    }

    This function getPHPReportsTmpPath() returned: "/user/home/username/domains/domain.com/public_html/simpleinvoices"

    I've changed the return statement therefor to:
    return realpath(dirname($sPath)) . '/tmp';

    Now, the error is gone for all reports! But this is a quick and dirty fix, because this function is doing something wrong, but not on all servers. I think it's the tempnam() function, that isn't returning anything for me... Is it returning anything on your server?

  • justinjustin November 2009

    thanks!

    if you can find the real solution please check it into svn

    cheers

    justin

    SmarterInvoices.com :: Simple Invoices hosting | Kelly.org.au :: Simple Invoices custom development | justin.kelly.org.au

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

Categories