Advertisement:

Author Topic: Stuck on "Processing" while trying to manage items  (Read 1373 times)

aSa

  • Newbie
  • *
  • Posts: 9
Stuck on "Processing" while trying to manage items
« on: May 02, 2011, 06:19:59 pm »
Hello,

The "admin > Items > Manage items"  display is Ok for the whole list
but if I click on a filter  the display will be frozen with a "Processing" message


My setup : OSclass 2.0.2 with 2 languages setup

I have 10 ads and only ONE  marked with the offensive flag
(This was a test  with the offensive flag, but I can reproduce  the same problem with any  other flag)

It seems there is a syntax error  in the returned JSON
Here is the response captured with Firebug and formatted with JSONLINT

Code: [Select]
{
    "sEcho": 2,
    "iTotalRecords": 10,
    "iTotalDisplayRecords": 2,
    "aaData": [
        [
            "<input type='checkbox' name='id[]' value='2' />",
            "House for sale <br/><span id='datatables_quick_edit'><a href='http://blabla/oc-admin/index.php?page=comments&action=list&amp;id=2'>View comments</a> | <a href='http://blabla/oc-admin/index.php?page=media&action=list&amp;id=2'>View media</a> | <a href='http://blabla/oc-admin/index.php?page=items&action=status&amp;id=2&amp;value=INACTIVE'>Deactivate</a> | <a href='http://blabla/oc-admin/index.php?page=items&action=status_premium&amp;id=2&amp;value=1'>Mark as premium</a> | <a href='http://blabla/oc-admin/index.php?page=items&action=item_edit&amp;id=2'>Edit</a> | <a onclick=\"javascript:return confirm('This action can not be undone. Are you sure you want to continue?')\" href='http://blabla/oc-admin/index.php?page=items&action=delete&amp;id[]=2'>Delete</a></span>",
            "1",
            "Houses - Apartments for Sale",
            "2011-04-30 16:29:10"
        ][
            "<input type='checkbox' name='id[]' value='2' />",
            "House for sale <br/><span id='datatables_quick_edit'><a href='http://blabla/oc-admin/index.php?page=comments&action=list&amp;id=2'>View comments</a> | <a href='http://blabla/oc-admin/index.php?page=media&action=list&amp;id=2'>View media</a> | <a href='http://blabla/oc-admin/index.php?page=items&action=status&amp;id=2&amp;value=INACTIVE'>Deactivate</a> | <a href='http://blabla/oc-admin/index.php?page=items&action=status_premium&amp;id=2&amp;value=1'>Mark as premium</a> | <a href='http://blabla/oc-admin/index.php?page=items&action=item_edit&amp;id=2'>Edit</a> | <a onclick=\"javascript:return confirm('This action can not be undone. Are you sure you want to continue?')\" href='http://blabla/oc-admin/index.php?page=items&action=delete&amp;id[]=2'>Delete</a></span>",
            "1",
            "Houses - Apartments for Sale",
            "2011-04-30 16:29:10"
        ]
    ]
}

As you can see, even if I have only ONE item concerned by the filter, I receive this item twice and it throw a JSON syntax error because there is no comma between the two occurences
Is this a known bug ?
or a misconfig on my side ?

thanks

--
aSa