z-song/laravel-admin · error · InvalidArgumentException
json_last_error_msg()
Error message
json_last_error_msg()
What it means
Error "json_last_error_msg()" thrown in z-song/laravel-admin.
Source
Thrown at src/Tree.php:207
*/
public function disableRefresh()
{
$this->useRefresh = false;
}
/**
* Save tree order from a input.
*
* @param string $serialize
*
* @return bool
*/
public function saveOrder($serialize)
{
$tree = json_decode($serialize, true);
if (json_last_error() != JSON_ERROR_NONE) {
throw new \InvalidArgumentException(json_last_error_msg());
}
$this->model->saveOrder($tree);
return true;
}
/**
* Build tree grid scripts.
*
* @return string
*/
protected function script()
{
$trans = [
'delete_confirm' => str_replace("'", "\'", trans('admin.delete_confirm')),
'save_succeeded' => str_replace("'", "\'", trans('admin.save_succeeded')),
'refresh_succeeded' => str_replace("'", "\'", trans('admin.refresh_succeeded')),View on GitHub (pinned to 67c441eb78)
When it happens
Trigger: Thrown at src/Tree.php:207 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of z-song/laravel-admin@67c441eb78 (2026-08-21).
Data as JSON: /api/errors/525fa93b253d8262.
Report an issue: GitHub.