Skip to content

Unexpected token < in JSON at position 0 #48

@bruno-barros

Description

@bruno-barros

The tree file browser (front and admin) is returning a JSON with <?php tag.
The Javascript error is Unexpected token < in JSON at position 0;
Another plugins works just fine but Filebase.

filebase

The response:

<?php[{"id":"wpfb-cat-0","cat_id":0,"text":"<form action=\"\" style=\"display:none;\"><input type=\"text\" placeholder=\"Nome da Categoria\" name=\"cat_name\" \/><\/form> <a href=\"#\" style=\"text-decoration:none;\" onclick='return wpfb_newCatInput(this,1);'><span style=\"font-size:32px;width:32px;line-height:0;vertical-align:sub;display:inline-block;text-align:center;\">+<\/span>Adicionar categoria<\/a><span style=\"font-size: 200%;vertical-align: sub;line-height: 0;font-weight: lighter;\"> \/ <\/span><a href=\"#\" style=\"text-decoration:none;\" class=\"add-file\"><span style=\"font-size:32px;width:32px;line-height:0;vertical-align:sub;display:inline-block;text-align:center;\">+<\/span>Adicionar Arquivo<\/a>","hasChildren":false,"classes":"add-item"}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions