phponlyoffice

Only office PHP not view or edit file


I try to use onlyoffice with PHP example API.

I follow this guide to install.

I succeed install document server in address: http://192.168.131.132, here is image of document server:

enter image description here

Then I download PHP code in same server with document server (different port: port 81).

I change config.php like this:

enter image description here

It show me the GUI like this:

enter image description here

I can upload my document to server, like this:

enter image description here

But I can't view or edit my office file. This is error like this:

enter image description here


Solution

  • Please try adding one more GLOBAL to the config.php:

    $GLOBALS['EXAMPLE_URL'] = "http://192.168.131.132:81/PHP%20Example/";
    

    If that doesn't help make sure that the permissions are set correctly for the folder with PHP Example. The error couldn't be saved is described here