DoghouseMedia / Dhmedia_Devel--Magento-Developer-Tools-

Advanced Developer Tools for Magento E-commerce
http://www.magentocommerce.com/magento-connect/advanced-developer-tools.html
61 stars 9 forks source link

Javascript bug - json - hints not showing #15

Closed jez500 closed 13 years ago

jez500 commented 13 years ago

Module causes this error:

Uncaught SyntaxError: Badly formed JSON string: '{"filename":"frontend\/default\/shopfortots\/template\/catalog\/category\/view.phtml","template":"catalog\/category\/view.phtml","viewPath":"\/home\/jeremy\/sites\/shopfortots\/app\/design","path":"\/home\/jeremy\/sites\/shopfortots\/app\/design\/frontend\/default\/shopfortots\/template\/catalog\/category\/view.phtml","editorUrl":"http:\/\/shopfortots.jeremy.ubuntu.vm\/index.php\/devel\/filesystem\/edit\/type\/template?template=catalog%2Fcategory%2Fview.phtml","xmlLayout":[{"file":"catalog.xml","path":"\/home\/jeremy\/sites\/shopfortots\/app\/design\/frontend\/base\/default\/layout\/catalog.xml","url":"http:\/\/shopfortots.jeremy.ubuntu.vm\/index.php\/devel\/filesystem\/edit\/type\/layout?layout=catalog.xml","xml":["[[reference name=\'\'content\'\']]\n\n\t...\n\n\t[[block type=\'\'catalog\/category_view\'\' name=\'\'category.products\'\' template=\'\'catalog\/category\/view.phtml\'\']]\n [[block type=\'\'catalog\/product_list\'\' name=\'\'product_list\'\' template=\'\'catalog\/product\/list.phtml\'\']]\n [[block type=\'\'catalog\/product_list_toolbar\'\' name=\'\'product_list_toolbar\'\' template=\'\'catalog\/product\/list\/toolbar.phtml\'\']]\n [[block type=\'\'page\/html_pager\'\' name=\'\'product_list_toolbar_pager\'\'\/]]\n [[\/block]]\n [[action method=\'\'addColumnCountLayoutDepend\'\']]\n [[layout]]empty[[\/layout]]\n [[count]]6[[\/count]]\n [[\/action]]\n [[action method=\'\'addColumnCountLayoutDepend\'\']]\n [[layout]]one_column[[\/layout]]\n [[count]]5[[\/count]]\n [[\/action]]\n [[action method=\'\'addColumnCountLayoutDepend\'\']]\n [[layout]]two_columns_left[[\/layout]]\n [[count]]4[[\/count]]\n [[\/action]]\n [[action method=\'\'addColumnCountLayoutDepend\'\']]\n [[layout]]two_columns_right[[\/layout]]\n [[count]]4[[\/count]]\n [[\/action]]\n [[action method=\'\'addColumnCountLayoutDepend\'\']]\n [[layout]]three_columns[[\/layout]]\n [[count]]3[[\/count]]\n [[\/action]]\n [[action method=\'\'setToolbarBlockName\'\']]\n [[name]]product_list_toolbar[[\/name]]\n [[\/action]]\n [[\/block]]\n [[\/block]]\n\n\t...\n\n[[\/reference]]"],"handle":"catalog_category_default","references":["content"]},{"file":"catalog.xml","path":"\/home\/jeremy\/sites\/shopfortots\/app\/design\/frontend\/base\/default\/layout\/catalog.xml","url":"http:\/\/shopfortots.jeremy.ubuntu.vm\/index.php\/devel\/filesystem\/edit\/type\/layout?layout=catalog.xml","xml":["[[reference name=\'\'content\'\']]\n\n\t...\n\n\t[[block type=\'\'catalog\/category_view\'\' name=\'\'category.products\'\' template=\'\'catalog\/category\/view.phtml\'\']]\n [[block type=\'\'catalog\/product_list\'\' name=\'\'product_list\'\' template=\'\'catalog\/product\/list.phtml\'\']]\n [[block type=\'\'catalog\/product_list_toolbar\'\' name=\'\'product_list_toolbar\'\' template=\'\'catalog\/product\/list\/toolbar.phtml\'\']]\n [[block type=\'\'page\/html_pager\'\' name=\'\'product_list_toolbar_pager\'\'\/]]\n [[\/block]]\n [[action method=\'\'addColumnCountLayoutDepend\'\']]\n [[layout]]empty[[\/layout]]\n [[count]]6[[\/count]]\n [[\/action]]\n [[action method=\'\'addColumnCountLayoutDepend\'\']]\n [[layout]]one_column[[\/layout]]\n [[count]]5[[\/count]]\n [[\/action]]\n [[action method=\'\'addColumnCountLayoutDepend\'\']]\n [[layout]]two_columns_left[[\/layout]]\n [[count]]4[[\/count]]\n [[\/action]]\n [[action method=\'\'addColumnCountLayoutDepend\'\']]\n [[layout]]two_columns_right[[\/layout]]\n [[count]]4[[\/count]]\n [[\/action]]\n [[action method=\'\'addColumnCountLayoutDepend\'\']]\n [[layout]]three_columns[[\/layout]]\n [[count]]3[[\/count]]\n [[\/action]]\n [[action method=\'\'setToolbarBlockName\'\']]\n [[name]]product_list_toolbar[[\/name]]\n [[\/action]]\n [[\/block]]\n [[\/block]]\n\n\t...\n\n[[\/reference]]"],"handle":"catalog_category_layered","references":["content"]},{"file":"amshopby.xml","path":"\/home\/jeremy\/sites\/shopfortots\/app\/design\/frontend\/default\/shopfortots\/layout\/amshopby.xml","url":"http:\/\/shopfortots.jeremy.ubuntu.vm\/index.php\/devel\/filesystem\/edit\/type\/layout?layout=amshopby.xml","xml":["[[reference name=\'\'content\'\']]\n\n\t...\n\n\t[[block type=\'\'catalog\/category_view\'\' name=\'\'category.products\'\' template=\'\'catalog\/category\/view.phtml\'\']]\n [[block type=\'\'catalog\/product_list\'\' name=\'\'product_list\'\' template=\'\'catalog\/product\/list.phtml\'\']]\n [[block type=\'\'catalog\/product_list_toolbar\'\' name=\'\'product_list_toolbar\'\' template=\'\'catalog\/product\/list\/toolbar.phtml\'\']]\n [[block type=\'\'page\/html_pager\'\' name=\'\'product_list_toolbar_pager\'\'\/]]\n [[\/block]]\n [[action method=\'\'setToolbarBlockName\'\']]\n [[name]]product_list_toolbar[[\/name]]\n [[\/action]]\n [[\/block]]\n [[\/block]]\n\n\t...\n\n[[\/reference]]"],"handle":"amshopby_index_index","references":["content"]}],"className":"Mage_Catalog_Block_Category_View","classMethods":["IsRssCatalogEnable","IsTopCategory","","call","construct","get","set","toArray","toJson","toXml","_afterCacheUrl","_afterToHtml","_beforeCacheUrl","_beforeChildToHtml","_beforeToHtml","_camelize","_construct","_getChildHtml","_getData","_getUrlModel","_getUrlModelClass","_loadCache","_prepareArray","_prepareLayout","_saveCache","_toHtml","_underscore","addData","addToChildGroup","addToParentGroup","append","assign","countChildren","dataHasChangedFor","debug","escapeHtml","escapeUrl","fetchView","flagDirty","formatDate","formatTime","getAction","getAnonSuffix","getArea","getBaseUrl","getBlockAlias","getBlockHtml","getCacheKey","getCacheKeyInfo","getCacheLifetime","getCacheTags","getChild","getChildChildHtml","getChildData","getChildGroup","getChildHtml","getCmsBlockHtml","getCurrentCategory","getData","getDataSetDefault","getDataUsingMethod","getDevelDataClassMethods","getDevelDataClassReflectAll","getDevelDataXmlLayout","getDevelHintDataAsHtml","getDevelProtectedXmlInJson","getDirectOutput","getDocsUrl","getHelper","getId","getIdFieldName","getIsAnonymous","getJsUrl","getLayout","getMessagesBlock","getModuleName","getNameInLayout","getObjectData","getOrigData","getParentBlock","getProductListHtml","getRequest","getRssLink","getShowTemplateHints","getSkinUrl","getSortedChildBlocks","getSortedChildren","getTemplate","getTemplateFile","getUrl","getUrlBase64","getUrlEncoded","hasData","hasDataChanges","helper","htmlEscape","insert","isContentMode","isDeleted","isDirty","isEmpty","isMixedMode","isProductMode","jsQuoteEscape","offsetExists","offsetGet","offsetSet","offsetUnset","renderView","serialize","setAnonSuffix","setAttribute","setBlockAlias","setChild","setData","setDataChanges","setDataUsingMethod","setFrameTags","setId","setIdFieldName","setIsAnonymous","setLayout","setMessagesBlock","setNameInLayout","setOrigData","setParentBlock","setScriptPath","setTemplate","stripTags","toArray","toHtml","toJson","toString","toXml","unsetCallChild","unsetChild","unsetChildren","unsetData","urlEscape"],"localVars":{"fileName":"frontend\/default\/shopfortots\/template\/catalog\/category\/view.phtml","this":{},"do":false,"exception":null,"includeFilePath":"\/home\/jeremy\/sites\/shopfortots\/app\/design\/frontend\/default\/shopfortots\/template\/catalog\/category\/view.phtml","_helper":{},"_category":{},"_imgHtml":"<img src="\"http:\/\/shopfortots.jeremy.ubuntu.vm\/media\/catalog\/category\/clothing_cat.jpg\"" alt="\"Clothing\"" title="\"Clothing\"" class="\"category-image\"" \="">","_imgUrl":"http:\/\/shopfortots.jeremy.ubuntu.vm\/media\/catalog\/category\/clothing_cat.jpg","_description":"Please browse our collection of gorgeous botique clothing labels for babies & children.\r\n\r\nAll of the clothing displayed on our website are designed with love in Australia."},"classDocsUrl":"http:\/\/docs.magentocommerce.com\/Mage_Catalog\/Mage_Catalog_Block_Category_View.html","nameInLayout":"category.products","wizardRemove":{"url":"\/devel\/layout\/remove","params":{"name":"category.products"},"title":"Remove category.products"},"handles":["default","STORE_default","THEME_frontend_default_shopfortots","catalog_category_view","catalog_category_layered","CATEGORY_4","customer_logged_out","devel_handle"]}'

jez500 commented 13 years ago

page html here: http://codepad.org/W0DSHshj

jonathan-dh commented 13 years ago

This seems to have been a problem with badly formatted XML.

We will try to add checks as requested here: https://github.com/DoghouseMedia/Dhmedia_Devel--Magento-Developer-Tools-/issues/16