Project

General

Profile

Problems with REST API and PHP

Added by Guillaume Coste about 12 years ago

Hi,

I wanted to use the REST API with PHP, I've been following the examples in the wiki and I still have the same problem.
(btw it's almost the same as this one http://www.redmine.org/boards/2/topics/15874).

The id property is not defined, I can't save or destroy any issues BUT I can find and view their informations.
I have enabled the rest authentification in redmine's settings but nothing changed.

By analysing ActiveResource's code I found this error

string(13924) "HTTP/1.1 500 Internal Server Error
Date: Wed, 29 Feb 2012 13:02:00 GMT
Server: Apache/2.2.20 (Ubuntu)
X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.11
Cache-Control: no-cache
Set-Cookie: _redmine_default=BAh7BjoPc2Vzc2lvbl9pZCIlNzYxZWQ4Mzk3MzAyYTJmYzE1NzAyMDhhZWM4ZGJiMmM%3D--0b2eadbaa7a1d07520c677c0de0ba5cdc9b09f01; path=/redmine; HttpOnly
Content-Length: 13445
Status: 500
Vary: Accept-Encoding
Connection: close
Content-Type: text/html; charset=utf-8

I was also asking myself if I needed to create the issue.xml file in redmine's public directory.

Thanks for your help.