jsonapi icon indicating copy to clipboard operation
jsonapi copied to clipboard

Getting a null response.

Open HeyAwesomePeople opened this issue 9 years ago • 1 comments

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!

HeyAwesomePeople avatar Aug 12 '15 02:08 HeyAwesomePeople

Hi contact me on skype I'll give any code live:tomarnaud

TomBerger90 avatar Aug 12 '15 03:08 TomBerger90