Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > Wrapper libraries >

deploy issues test application using php api

Started by albert drent -   in Wrapper libraries

I have a working application in my development environment and wanted it to test it live on the web. I deployed to an Apache server on a virtual windows machine and I got the issue 'https://app.xero.com/oauth/APIAuthorise?oauth_token=' resulting in Hmm... we didn't recognise that application. It has to do with TLS but I'm unsure how to fix this. Do I need to change something on apache?
Then I deployed it to my standard web provider running on linux. The first one gave me a server error, but could not look at the logs, the second provider allows me to set debug on and I got:Fatal error: Uncaught Error: Class 'XeroPHP\Application\PublicApplication' not found in /customers/6/c/d/aducom.eu/httpd.www/professionals/_libs/main_form_1.php:33 Stack trace: #0 /customers/6/c/d/aducom.eu/httpd.www/professionals/_libs/php/spapplication.php(234): main_form_1->onSubmitForm(Object(main)) #1 /customers/6/c/d/aducom.eu/httpd.www/professionals/main.php(185): spapplication->exec() #2 {main} thrown in /customers/6/c/d/aducom.eu/httpd.www/professionals/_libs/main_form_1.php on line 33
I have set the XeroPHP on all levels of my application, but the error remains. Line 33 contains $xero = new PublicApplication($config); It works in test and appearantly on my virtual server, not on my provider side. Any idea how I can fix this?
I have changed configuration of apache without success...

<VirtualHost 85.214.29.148:443>
...
SSLProtocol -all +TLSv1.2
....
 

albert drent  

I managed to fix the namespaces issue. It appears that the filename that is generated in the implemented autoloader is using the forward slash, while the file/classname passed to the autoloader contains backslashes. That way it generates a filepath containing both type of slashes which is not a problem on Windows hosting (my development system), but is on a linux system (my hosting company).
 

albert drent