Hi Guys,

I am picking up on a couple of errors which I think are all related.

ERROR#1: navigate to /filedepot:

Error: not well-formed
Source file: http://dms.jhhesa.org/filedepot_ajax/getfilelisting
Line: 2, Column: 1
Source code:
{"retcode":200,"cid":0,"displayhtml":"\n<div class=\"listing_record\" id=\"folder_3_rec_12\">\n    <div class=\"listing_record_outer_container\">\n        <div class=\"listing_record_attributes\">\n                <span class=\"listing_record_selectbox\"><input id=\"chkfile12\" type=\"checkbox\" name=\"chkfile\" value=\"12\" onClick=\"updateCheckedItems(this)\"><\/span>\n                <span class=\"listing_record_favorite\" style=\"display:\">\n                    <a href=\"?id=12\" onclick=\"return false;\"><img id=\"favitem12\" class=\"togglefavorite\" src=\"\/sites\/default\/modules\/filedepot\/css\/images\/staroff-16x16.gif\" TITLE=\"Click to mark item as a favorite\"><\/a>\n                <\/span>\n                <span class=\"listing_record_file_image\" style=\"padding-left:40px;\">\n                    <a class=\"filedetailsdialog\" href=\"?fid=12\"><img src=\"\/sites\/default\/modules\/filedepot\/css\/images\/jpg.gif\"><\/a>\n                <\/span>\n                <span class=\"listing_record_file_number\">0.1<\/span>\n                <span class=\"filedetailslink\" style=\"float:left;\">\n                    <a id=\"listingFilenameRec12\" class=\"filedetailsdialog\" href=\"?fid=12\" TITLE=\"Click to view details\">B4LsiteBanner01.jpg<\/a>\n                <\/span>\n                <span id=\"listingLockIconRec12\" class=\"listing_record_lock\" style=\"display:none\"><img src=\"\/sites\/default\/modules\/filedepot\/css\/images\/padlock.gif\" TITLE=\"File Locked\"><\/span>\n        <\/div>\n        <div class=\"tags\" id=\"listingTagsRec12\">  \n\n<div class=\"listing_searchtag\"><a href=\"#\" onClick=\"makeAJAXSearchTags('b4l');return false;\">b4l<\/a><\/div>\n<\/div>\n        <div class=\"listing_record_rightside_container\">\n            <div class=\"listing_record_actions_container twoactions\">\n                <span><a href=\"\/filedepot_download\/74\/12\" title=\"Download File\"><img src=\"\/sites\/default\/modules\/filedepot\/css\/images\/download.png\" alt=\"\" title=\"\" width=\"16\" height=\"16\" \/><\/a><\/span>\n                <span><a href=\"\/filedepot_download\/74\/12\/0\/edit\" title=\"Download for Editing\"><img src=\"\/sites\/default\/modules\/filedepot\/css\/images\/editfile.png\" alt=\"\" title=\"\" width=\"16\" height=\"16\" \/><\/a><\/span>\n                <span style=\"display:none;\"><\/span>\n            <\/div>\n            <div class=\"listing_record_modified_date\">04\/30\/13<\/div>\n            <div class=\"listing_record_submitter\"  style=\"display:none;\"><\/div>\n            <div class=\"listing_record_foldername\" style=\"display:;\"><a href=\"#\" onClick=\"makeAJAXGetFolderListing(3);return false;\">Brothers For Life<\/a><\/div>\n        <\/div>\n    <\/div>\n    <div class=\"filedesc\" id=\"filedesc_container_12\" style=\"padding-left:70px;padding-right:75px;display:none;\">\n        <div><span class=\"filedesc_span\" id=\"listingDescriptionRec12\">Proin viverra fermentum lacus ac dictum. Etiam sed volutpat.<br \/>\n<\/span>\n          <div class=\"clearboth\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n<div id=\"subfolder3_rec12_bottom\"><\/div>\n\n\n<div class=\"listing_record\" id=\"folder_7_rec_10\">\n    <div class=\"listing_record_outer_container\">\n        <div class=\"listing_record_attributes\">\n                <span class=\"listing_record_selectbox\"><input id=\"chkfile10\" type=\"checkbox\" name=\"chkfile\" value=\"10\" onClick=\"updateCheckedItems(this)\"><\/span>\n                <span class=\"listing_record_favorite\" style=\"display:\">\n                    <a href=\"?id=10\" onclick=\"return false;\"><img id=\"favitem10\" class=\"togglefavorite\" src=\"\/sites\/default\/modules\/filedepot\/css\/images\/staroff-16x16.gif\" TITLE=\"Click to mark item as a favorite\"><\/a>\n                <\/span>\n                <span class=\"listing_record_file_image\" style=\"padding-left:40px;\">\n                    <a class=\"filedetailsdialog\" href=\"?fid=10\"><img src=\"\/sites\/default\/modules\/filedepot\/css\/images\/jpg.gif\"><\/a>\n                <\/span>\n                <span class=\"listing_record_file_number\">0.2<\/span>\n                <span class=\"filedetailslink\" style=\"float:left;\">\n                    <a id=\"listingFilenameRec10\" class=\"filedetailsdialog\" href=\"?fid=10\" TITLE=\"Click to view details\">P0318April2012.pdf - Adobe Acrobat Pro.jpg<\/a>\n                <\/span>\n                <span id=\"listingLockIconRec10\" class=\"listing_record_lock\" style=\"display:none\"><img src=\"\/sites\/default\/modules\/filedepot\/css\/images\/padlock.gif\" TITLE=\"File Locked\"><\/span>\n        <\/div>\n        <div class=\"tags\" id=\"listingTagsRec10\"><\/div>\n        <div class=\"listing_record_rightside_container\">\n            <div class=\"listing_record_actions_container twoactions\">\n                <span><a href=\"\/filedepot_download\/78\/10\" title=\"Download File\"><img src=\"\/sites\/default\/modules\/filedepot\/css\/images\/download.png\" alt=\"\" title=\"\" width=\"16\" height=\"16\" \/><\/a><\/span>\n                <span><a href=\"\/filedepot_download\/78\/10\/0\/edit\" title=\"Download for Editing\"><img src=\"\/sites\/default\/modules\/filedepot\/css\/images\/editfile.png\" alt=\"\" title=\"\" width=\"16\" height=\"16\" \/><\/a><\/span>\n                <span style=\"display:none;\"><\/span>\n            <\/div>\n            <div class=\"listing_record_modified_date\">04\/27\/13<\/div>\n            <div class=\"listing_record_submitter\"  style=\"display:none;\"><\/div>\n            <div class=\"listing_record_foldername\" style=\"display:;\"><a href=\"#\" onClick=\"makeAJAXGetFolderListing(7);return false;\">Posters<\/a><\/div>\n        <\/div>\n    <\/div>\n    <div class=\"filedesc\" id=\"filedesc_container_10\" style=\"padding-left:70px;padding-right:75px;display:none;\">\n        <div><span class=\"filedesc_span\" id=\"listingDescriptionRec10\"><\/span>\n          <div class=\"clearboth\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n<div id=\"subfolder7_rec10_botto




ERROR#2: Here is another error on same page /filedepot:

Error: not well-formed
Source file: http://dms.jhhesa.org/filedepot_ajax/getleftnavigation
Line: 2, Column: 1
Source code:
{"retcode":200,"reports":[{"name":"Latest Files","link":"reportmode=latestfiles","parent":"allitems","icon":"icon-filelisting"},{"name":"Notifications","link":"reportmode=notifications","parent":"allitems","icon":"icon-fileowned"},{"name":"Owned by me","link":"reportmode=myfiles","parent":"allitems","icon":"icon-fileowned"},{"name":"Downloaded by me","link":"reportmode=downloads","parent":"allitems","icon":"icon-fileowned"},{"name":"Unread Files","link":"reportmode=unread","parent":"allitems","icon":"icon-fileowned"},{"name":"Locked by me","link":"reportmode=lockedfiles","parent":"allitems","icon":"icon-filelocked"},{"name":"Flagged by me","link":"reportmode=flaggedfiles","parent":"allitems","icon":"icon-fileflagged"}],"topfolders":[{"name":"Brothers For Life","link":"cid=3","parent":"allfolders","icon":"icon-allfolders"},{"name":"Scrutinnize","link":"cid=4","parent":"allfolders","icon":"icon-allfolders"},{"name":"Medical","link":"cid=6","parent":"allfolders","icon":"icon-allfolders"




ERROR#3: still on same page /filedepot

Error: SyntaxError: missing ) after argument list
Source file: chrome://fftoolbar/content/fftoolbar4.js
Line: 406, Column: 56
Source code:
            navigation.loadURI(urlJ, Ci.nsIWebNavigation::LOAD_FLAGS_NONE, null, null, null); 




ERROR#4: When I click on a file and it creates the "filename - Details" dialog popup

Error: not well-formed
Source file: http://dms.jhhesa.org/filedepot_ajax/loadfiledetails
Line: 2, Column: 1
Source code:
{"editperm":true,"deleteperm":true,"addperm":true,"lockperm":true,"notifyperm":true,"broadcastperm":true,"tags":"","token":"d15e46eeaea05d8184ac1ae8e8783335","fid":"9","cid":"3","title":"SEO-Copywriting-Service.jpg","description":"","fname":"SEO-Copywriting-Service.jpg","date":"Apr 27 2013 09:49 AM","size":"10.63 KB","version":"1","submitter":"1","name":"superadmin","status":"1","pid":"0","folder":"Brothers For Life","nid":"74","version_note":"","status_changedby_uid":"0","displayhtml":"  \n\n<!-- File Details Panel content - used by the AJAX server.php function nexdocsrv_filedetails() -->\n<div class=\"clearboth\">\n<table class=\"plugin\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\" style=\"padding-bottom:10px;\">\n    <tr>\n        <td class=\"aligntop\" style=\"padding:15px 10px 5px 10px;\">\n            <div style=\"padding-bottom:10px;\"><img src=\"\/sites\/default\/modules\/filedepot\/css\/images\/jpg.gif\">&nbsp;<a href=\"http:\/\/dms.jhhesa.org\/filedepot?cid=3&fid=9\" title=\"Direct link to file\" ><strong>SEO-Copywriting-Service.jpg<\/strong><\/a>&nbsp;<span style=\"font-size:8pt;\">(V1)<\/span><\/div>\n            <div class=\"floatleft\" style=\"width:100px;\"><strong>Folder:<\/strong><\/div>\n            <div class=\"floatleft\">Brothers For Life<\/div>\n            <div class=\"clearboth\"><\/div>\n            <div class=\"floatleft\" style=\"width:100px;\"><strong>Author:<\/strong><\/div>\n            <div class=\"floatleft\" style=\"font-size:9pt;\">superadmin<\/div>\n            <div class=\"clearboth\"><\/div>\n            <div class=\"clearboth floatleft\" style=\"width:100px;\"><strong>Tags:<\/strong><\/div>\n            <div class=\"floatleft\" style=\"font-size:9pt;\"><\/div>\n        <\/td>\n        <td width=\"15%\" class=\"alignright\" style=\"padding:15px 10px 5px 10px;font-size:8pt;\" nowrap>04\/27\/13<br \/><strong>Size:<\/strong>&nbsp;10.63 KB        <div id=\"lockedalertmsg\" class=\"pluginAlert\" style=\"display:none;\">&nbsp;<\/div>\n        <\/td>\n    <\/tr>\n    <tr>\n        <td colspan=\"2\" style=\"padding:5px 10px;\"><strong>Description:<\/strong><br \/><\/td>\n    <\/tr>\n    <tr>\n        <td colspan=\"2\" style=\"padding:5px 10px;\"><strong>Version Note:<\/strong><br \/><\/td>\n    <\/tr>\n<\/table>\n<\/div>","locked":false,"subscribed":false,"error":"","retcode":200,"dispfolder":"Brothers For Life","folderoptions":"<select name=\"folder\" style=\"width:220px;\"><option value=\"3\" selected=\"selected\">  Brothers For Life<\/option>\n<option value=\"5\"> --  Posters<\/option>\n<option value=\"4\">  Scrutinnize<\/option>\n<option value=\"6\">  Medical Male Circumcision<\/option>\n<option value=\"7\"> --  Posters<\/option>\n<option value=\"8\"> ----  Banners<\/option>\n<\/select>","downloadperm":true,"tagperms":true}




ERROR#5: After click on file name, click on edit, make change, hit submit

Error: not well-formed
Source file: http://dms.jhhesa.org/filedepot_ajax/updatefile
Line: 2, Column: 1
Source code:
{"retcode":403}

This causes undefined dialog popup when trying to update details for existing files.

Please see if you can shed some light on it.
The most important error is ERROR#5 because I am unable to make changes to files already uploaded.

Thanks in advance.

JCB

CommentFileSizeAuthor
dialog-popup.png152.22 KBJCB

Comments

blainelang’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

I suspect you don't have the required PHP JSON extension enabled. Review the requirements in the README.

JCB’s picture

Status: Postponed (maintainer needs more info) » Active

Hi blainelang,

Thanks for your quick reply.

I had a look, and JSON is enabled.
You can have a look at the phpinfo() at this link: http://dms.jhhesa.org/node/80

Please let me know if you have any other suggestions.

kanute’s picture

Same errors here, no files window.
PHP 5.3.3-7+squeeze13, JSON 1.2.1.
Filedepot 6.x-1.x-dev 2013-Sep-30 and 6.x-1.4 2013-Mar-20.

kanute’s picture

Issue solved - The error was caused by the module Drupal for Firebug 6.x-1.4+2-dev.
The module is now deactivated and the error has gone.

_timpatrick’s picture

Status: Active » Closed (works as designed)

Glad the issue is resolved.

visios’s picture

Status: Closed (works as designed) » Active

I'm also having a problem editing a file (see ERROR#5: After click on file name, click on edit, make change, hit submit). I'm also getting an undefined alert box.

I think the 'not well-formed' is not causing trouble as this is only reported by the Web-Inspector from Firefox. Safari and Chrome are not reporting any of these messages.

Can it be that permission are the root cause for error #5 because I'm also getting {"retcode":403} as a response and not {"retcode":200?

visios’s picture