jsonapi
jsonapi copied to clipboard
Getting a null response.
Hello. I'm trying to set file contents like this:
$api->call("files.write", array("plugins/GroupManager/worlds/world/groups.yml", (string)$yaml))
But all I get in return is a null error. No success message, just null when I var_dump that line. The $yaml is in fact a string.
But whats odd is, is that the original character count of the string I am trying to write was around 3400 characters(groups.yml from groupmanager). This doesn't work when calling the method but if I reduce the file character count to UNDER 1623 characters, everything works fine. Whats going on here?
I have posted about this in other places too:
http://forums.phpfreaks.com/topic/297659-converting-variable-into-a-string/ http://stackoverflow.com/questions/31954623/something-seems-to-fail-after-1622-charactersnull-values
Help me please, thanks!
Hi contact me on skype I'll give any code live:tomarnaud