Timeline for custom block menu path returns json Ok, but a 404 status header
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 16, 2015 at 22:00 | comment | added | E.A.T | i just double-backed on this and found this answer was correct. Thanks! | |
Feb 16, 2015 at 21:59 | vote | accept | E.A.T | ||
Aug 31, 2014 at 15:34 | comment | added | SiliconMind | @EliATaylor The error you quoted suggests that your menu callback was returning an object instead of array. | |
Aug 31, 2014 at 8:38 | comment | added | E.A.T |
i was really hoping this was the answer but it did not make a difference for me. I tried the 'delivery callback' with all varieties of returning $json and drupal_json_output($json) with and without explicit headers like http_resposne_code(200) . All return a 404 response code, but either proper json or html with the error Fatal error: Cannot use object of type stdClass as array in /home/xxxx/includes/common.inc on line 5836
|
|
Aug 24, 2014 at 20:40 | history | answered | SiliconMind | CC BY-SA 3.0 |