(This may or may not be the same problem as the issue @ http://drupal.org/node/370913 )
This error occurs why I hit either "Add" or "Cancel" when attempting to when attempting to add arguments, fields, sort criteria, etc.
In Internet Explorer 8 (with and without compatabillity view) I get the following error:
"Internet Explorer cannot download sort from [website]"
"Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later."
In Firefox3.0.8 I get the following error:
{ "display": "\x3cform action=\"/drupal6/admin/build/views/ajax/add-item/abcherald/default/sort\" accept-charset=\"UTF-8\" method=\"post\" id=\"views-ui-config-item-form\"\x3e\n\x3cdiv\x3e\x3cdiv class=\"form-item\"\x3e\n \x3clabel\x3eSort order: \x3c/label\x3e\n \x3cdiv class=\"form-radios\"\x3e\x3cdiv class=\"form-item\" id=\"edit-options-order-ASC-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-options-order-ASC\"\x3e\x3cinput type=\"radio\" id=\"edit-options-order-ASC\" name=\"options[order]\" value=\"ASC\" checked=\"checked\" class=\"form-radio\" /\x3e Ascending\x3c/label\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-options-order-DESC-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-options-order-DESC\"\x3e\x3cinput type=\"radio\" id=\"edit-options-order-DESC\" name=\"options[order]\" value=\"DESC\" class=\"form-radio\" /\x3e Descending\x3c/label\x3e\n\x3c/div\x3e\n\x3c/div\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\"\x3e\n \x3clabel\x3eGranularity: \x3c/label\x3e\n \x3cdiv class=\"form-radios\"\x3e\x3cdiv class=\"form-item\" id=\"edit-options-granularity-second-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-options-granularity-second\"\x3e\x3cinput type=\"radio\" id=\"edit-options-granularity-second\" name=\"options[granularity]\" value=\"second\" checked=\"checked\" class=\"form-radio\" /\x3e Second\x3c/label\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-options-granularity-minute-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-options-granularity-minute\"\x3e\x3cinput type=\"radio\" id=\"edit-options-granularity-minute\" name=\"options[granularity]\" value=\"minute\" class=\"form-radio\" /\x3e Minute\x3c/label\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-options-granularity-hour-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-options-granularity-hour\"\x3e\x3cinput type=\"radio\" id=\"edit-options-granularity-hour\" name=\"options[granularity]\" value=\"hour\" class=\"form-radio\" /\x3e Hour\x3c/label\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-options-granularity-day-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-options-granularity-day\"\x3e\x3cinput type=\"radio\" id=\"edit-options-granularity-day\" name=\"options[granularity]\" value=\"day\" class=\"form-radio\" /\x3e Day\x3c/label\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-options-granularity-month-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-options-granularity-month\"\x3e\x3cinput type=\"radio\" id=\"edit-options-granularity-month\" name=\"options[granularity]\" value=\"month\" class=\"form-radio\" /\x3e Month\x3c/label\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-options-granularity-year-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-options-granularity-year\"\x3e\x3cinput type=\"radio\" id=\"edit-options-granularity-year\" name=\"options[granularity]\" value=\"year\" class=\"form-radio\" /\x3e Year\x3c/label\x3e\n\x3c/div\x3e\n\x3c/div\x3e\n \x3cdiv class=\"description\"\x3eThe granularity is the smallest unit to use when determining whether two dates are the same; for example, if the granularity is \"Year\" then all dates in 1999, regardless of when they fall in 1999, will be considered the same date.\x3c/div\x3e\n\x3c/div\x3e\n\x3cdiv class=\"clear-block\"\x3e\x3cdiv class=\"form-buttons\"\x3e\x3cinput type=\"submit\" name=\"op\" id=\"edit-submit\" value=\"Update\" class=\"form-submit\" /\x3e\n\x3cinput type=\"submit\" name=\"op\" id=\"edit-cancel\" value=\"Cancel\" class=\"form-submit\" /\x3e\n\x3cinput type=\"submit\" name=\"op\" id=\"edit-remove\" value=\"Remove\" class=\"form-submit\" /\x3e\n\x3c/div\x3e\x3c/div\x3e\x3cinput type=\"hidden\" name=\"form_build_id\" id=\"form-28b3e090d05480077ea042896caf503c\" value=\"form-28b3e090d05480077ea042896caf503c\" /\x3e\n\x3cinput type=\"hidden\" name=\"form_token\" id=\"edit-views-ui-config-item-form-form-token\" value=\"08d19726e8744361eb030c14ad726342\" /\x3e\n\x3cinput type=\"hidden\" name=\"form_id\" id=\"edit-views-ui-config-item-form\" value=\"views_ui_config_item_form\" /\x3e\n\n\x3c/div\x3e\x3c/form\x3e\n", "title": "Defaults: Configure sort criterion \x3cem\x3eNode: Post date\x3c/em\x3e", "url": "/drupal6/admin/build/views/ajax/config-item/abcherald/default/sort/created", "js": null, "hilite": ".views-item-default-sort-created", "replace": { "#views-tab-default": "\x3cdiv class=\"clear-block views-display views-display-default\"\x3e\n \x3cdiv class=\"top\"\x3e\n \x3cdiv class=\"inside\"\x3e\n \x3cspan class=\"display-title\"\x3e\n Defaults \x3c/span\x3e\n \x3cspan class=\"display-description\"\x3e\n Default settings for this view. \x3c/span\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n\n \x3cdiv class=\"left tab-section\"\x3e\n \x3cdiv class=\"inside\"\x3e\n \x3cdiv class=\"views-category\"\x3e\n \x3cdiv class=\"views-category-title\"\x3eView settings\x3c/div\x3e\n \x3cdiv class=\"views-category-content\"\x3e\n \x3cdiv class=\"\"\x3e\n Tag: \x3ca href=\"/drupal6/admin/build/views/nojs/details/abcherald\" class=\"views-ajax-link\"\x3eNone\x3c/a\x3e \x3c/div\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \n \x3cdiv class=\"views-category\"\x3e\n \x3cdiv class=\"views-category-title views-category-basic\"\x3e\n Basic settings \x3c/div\x3e\n \x3cdiv class=\"views-category-content\"\x3e\n \x3cdiv class=\"views-item-default-display-title\"\x3e\n Name: \x3ca href=\"/drupal6/admin/build/views/nojs/display/abcherald/default/display_title\" class=\"views-ajax-link \" title=\"Change the name of this display.\"\x3eDefaults\x3c/a\x3e \x3c/div\x3e\n \x3cdiv class=\"views-item-default-title\"\x3e\n Title: \x3ca href=\"/drupal6/admin/build/views/nojs/display/abcherald/default/title\" class=\"views-ajax-link \" title=\"Change the title that this display will use.\"\x3eNone\x3c/a\x3e \x3c/div\x3e\n \x3cdiv class=\"views-item-default-style-plugin\"\x3e\n \x3ca href=\"/drupal6/admin/build/views/nojs/display/abcherald/default/style_options\" class=\"views-ajax-link views-button-configure\" title=\"Change settings for this style\"\x3e\x3cspan\x3eChange settings for this style\x3c/span\x3e\x3c/a\x3eStyle: \x3ca href=\"/drupal6/admin/build/views/nojs/display/abcherald/default/style_plugin\" class=\"views-ajax-link \" title=\"Change the style plugin.\"\x3eUnformatted\x3c/a\x3e \x3c/div\x3e\n \x3cdiv class=\"views-item-default-row-plugin\"\x3e\n \x3ca href=\"/drupal6/admin/build/views/nojs/display/abcherald/default/row_options\" class=\"views-ajax-link views-button-configure\" title=\"Change settings for this style\"\x3e\x3cspan\x3eChange settings for this style\x3c/span\x3e\x3c/a\x3eRow style: \x3ca href=\"/drupal6/admin/build/views/nojs/display/abcherald/default/row_plugin\" class=\"views-ajax-link \" title=\"Change the row plugin.\"\x3eFields\x3c/a\x3e \x3c/div\x3e\n \x3cdiv class=\"views-item-default-use-ajax\"\x3e\n Use AJAX: \x3ca href=\"/drupal6/admin/build/views/nojs/display/abcherald/default/use_ajax\" class=\"views-ajax-link \" title=\"Change whether or not this display will use AJAX.\"\x3eNo\x3c/a\x3e \x3c/div\x3e\n \x3cdiv class=\"views-item-default-use-pager\"\x3e\n Use pager: \x3ca href=\"/drupal6/admin/build/views/nojs/display/abcherald/default/use_pager\" class=\"views-ajax-link \" title=\"Change this display\x26#039;s pager setting.\"\x3eNo\x3c/a\x3e \x3c/div\x3e\n \x3cdiv class=\"views-item-default-items-per-page\"\x3e\n Items to display: \x3ca href=\"/drupal6/admin/build/views/nojs/display/abcherald/default/items_per_page\" class=\"views-ajax-link \" title=\"Change how many items to display.\"\x3e10\x3c/a\x3e \x3c/div\x3e\n \x3cdiv class=\"views-item-default-use-more\"\x3e\n More link: \x3ca href=\"/drupal6/admin/build/views/nojs/display/abcherald/default/use_more\" class=\"views-ajax-link \" title=\"Specify whether this display will provide a \x26quot;more\x26quot; link.\"\x3eNo\x3c/a\x3e \x3c/div\x3e\n \x3cdiv class=\"views-item-default-distinct\"\x3e\n Distinct: \x3ca href=\"/drupal6/admin/build/views/nojs/display/abcherald/default/distinct\" class=\"views-ajax-link \" title=\"Display only distinct items, without duplicates.\"\x3eNo\x3c/a\x3e \x3c/div\x3e\n \x3cdiv class=\"views-item-default-access\"\x3e\n Access: \x3ca href=\"/drupal6/admin/build/views/nojs/display/abcherald/default/access\" class=\"views-ajax-link \" title=\"Specify access control type for this display.\"\x3eUnrestricted\x3c/a\x3e \x3c/div\x3e\n \x3cdiv class=\"views-item-default-exposed-block\"\x3e\n Exposed form in block: \x3ca href=\"/drupal6/admin/build/views/nojs/display/abcherald/default/exposed_block\" class=\"views-ajax-link \" title=\"Allow the exposed form to appear in a block instead of the view.\"\x3eNo\x3c/a\x3e \x3c/div\x3e\n \x3cdiv class=\"views-item-default-header\"\x3e\n Header: \x3ca href=\"/drupal6/admin/build/views/nojs/display/abcherald/default/header\" class=\"views-ajax-link \" title=\"Change this display\x26#039;s header.\"\x3eNone\x3c/a\x3e \x3c/div\x3e\n \x3cdiv class=\"views-item-default-footer\"\x3e\n Footer: \x3ca href=\"/drupal6/admin/build/views/nojs/display/abcherald/default/footer\" class=\"views-ajax-link \" title=\"Change this display\x26#039;s footer.\"\x3eNone\x3c/a\x3e \x3c/div\x3e\n \x3cdiv class=\"views-item-default-empty\"\x3e\n Empty text: \x3ca href=\"/drupal6/admin/build/views/nojs/display/abcherald/default/empty\" class=\"views-ajax-link \" title=\"Change this display\x26#039;s empty text.\"\x3eNone\x3c/a\x3e \x3c/div\x3e\n \x3cdiv class=\"views-item-default-analyze-theme\"\x3e\n Theme: \x3ca href=\"/drupal6/admin/build/views/nojs/display/abcherald/default/analyze-theme\" class=\"views-ajax-link \" title=\"Get information on how to theme this display\"\x3eInformation\x3c/a\x3e \x3c/div\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n\n \x3cdiv class=\"middle tab-section\"\x3e\n \x3cdiv class=\"inside\"\x3e\n \x3cdiv class=\"views-category\"\x3e\n \x3ca href=\"/drupal6/admin/build/views/nojs/rearrange/abcherald/default/relationship\" class=\"views-button-rearrange views-ajax-link\" title=\"Rearrange\"\x3e\x3cspan\x3eRearrange\x3c/span\x3e\x3c/a\x3e\x3ca href=\"/drupal6/admin/build/views/nojs/add-item/abcherald/default/relationship\" class=\"views-button-add views-ajax-link\" title=\"Add\"\x3e\x3cspan\x3eAdd\x3c/span\x3e\x3c/a\x3e\x3cdiv class=\"views-category-title\"\x3e\n \x3ca href=\"/drupal6/admin/build/views/nojs/config-type/abcherald/default/relationship\" class=\"views-ajax-link\"\x3eRelationships\x3c/a\x3e\x3c/div\x3e\n\n\x3cdiv class=\"views-category-content\"\x3e\n \x3cdiv\x3eNone defined\x3c/div\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3cdiv class=\"views-category\"\x3e\n \x3ca href=\"/drupal6/admin/build/views/nojs/rearrange/abcherald/default/argument\" class=\"views-button-rearrange views-ajax-link\" title=\"Rearrange\"\x3e\x3cspan\x3eRearrange\x3c/span\x3e\x3c/a\x3e\x3ca href=\"/drupal6/admin/build/views/nojs/add-item/abcherald/default/argument\" class=\"views-button-add views-ajax-link\" title=\"Add\"\x3e\x3cspan\x3eAdd\x3c/span\x3e\x3c/a\x3e\x3cdiv class=\"views-category-title\"\x3e\n \x3ca href=\"/drupal6/admin/build/views/nojs/config-type/abcherald/default/argument\" class=\"views-ajax-link\"\x3eArguments\x3c/a\x3e\x3c/div\x3e\n\n\x3cdiv class=\"views-category-content\"\x3e\n \x3cdiv class=\"views-item-default-argument-type\"\x3e\n \x3ca href=\"/drupal6/admin/build/views/nojs/config-item/abcherald/default/argument/type\" class=\"views-ajax-link\"\x3eNode: Type\x3c/a\x3e \x3c/div\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3cdiv class=\"views-category\"\x3e\n \x3ca href=\"/drupal6/admin/build/views/nojs/rearrange/abcherald/default/field\" class=\"views-button-rearrange views-ajax-link\" title=\"Rearrange\"\x3e\x3cspan\x3eRearrange\x3c/span\x3e\x3c/a\x3e\x3ca href=\"/drupal6/admin/build/views/nojs/add-item/abcherald/default/field\" class=\"views-button-add views-ajax-link\" title=\"Add\"\x3e\x3cspan\x3eAdd\x3c/span\x3e\x3c/a\x3e\x3cdiv class=\"views-category-title\"\x3e\n \x3ca href=\"/drupal6/admin/build/views/nojs/config-type/abcherald/default/field\" class=\"views-ajax-link\"\x3eFields\x3c/a\x3e\x3c/div\x3e\n\n\x3cdiv class=\"views-category-content\"\x3e\n \x3cdiv class=\"views-item-default-field-title\"\x3e\n \x3ca href=\"/drupal6/admin/build/views/nojs/config-item/abcherald/default/field/title\" class=\"views-ajax-link\"\x3eNode: Title\x3c/a\x3e Title \x3c/div\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n\n \x3cdiv class=\"right tab-section\"\x3e\n \x3cdiv class=\"inside\"\x3e\n \x3cdiv class=\"views-category\"\x3e\n \x3ca href=\"/drupal6/admin/build/views/nojs/rearrange/abcherald/default/sort\" class=\"views-button-rearrange views-ajax-link\" title=\"Rearrange\"\x3e\x3cspan\x3eRearrange\x3c/span\x3e\x3c/a\x3e\x3ca href=\"/drupal6/admin/build/views/nojs/add-item/abcherald/default/sort\" class=\"views-button-add views-ajax-link\" title=\"Add\"\x3e\x3cspan\x3eAdd\x3c/span\x3e\x3c/a\x3e\x3cdiv class=\"views-category-title\"\x3e\n \x3ca href=\"/drupal6/admin/build/views/nojs/config-type/abcherald/default/sort\" class=\"views-ajax-link\"\x3eSort criteria\x3c/a\x3e\x3c/div\x3e\n\n\x3cdiv class=\"views-category-content\"\x3e\n \x3cdiv class=\"views-item-default-sort-created\"\x3e\n \x3ca href=\"/drupal6/admin/build/views/nojs/config-item/abcherald/default/sort/created\" class=\"views-ajax-link\"\x3eNode: Post date\x3c/a\x3e \x3cspan class=\"views-ascending\"\x3e\x3cspan\x3easc\x3c/span\x3e\x3c/span\x3e \x3c/div\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3cdiv class=\"views-category\"\x3e\n \x3ca href=\"/drupal6/admin/build/views/nojs/rearrange/abcherald/default/filter\" class=\"views-button-rearrange views-ajax-link\" title=\"Rearrange\"\x3e\x3cspan\x3eRearrange\x3c/span\x3e\x3c/a\x3e\x3ca href=\"/drupal6/admin/build/views/nojs/add-item/abcherald/default/filter\" class=\"views-button-add views-ajax-link\" title=\"Add\"\x3e\x3cspan\x3eAdd\x3c/span\x3e\x3c/a\x3e\x3cdiv class=\"views-category-title\"\x3e\n \x3ca href=\"/drupal6/admin/build/views/nojs/config-type/abcherald/default/filter\" class=\"views-ajax-link\"\x3eFilters\x3c/a\x3e\x3c/div\x3e\n\n\x3cdiv class=\"views-category-content\"\x3e\n \x3cdiv\x3eNone defined\x3c/div\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n\n\x3c/div\x3e", "#views-tab-title-default": "Defaults" }, "changed": true }
I have no clue where to start with this problem. But I'm more than willing to do what ever testing is necessary.
-JV
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | drupal_error.jpg | 265.52 KB | ljrweb |
Comments
Comment #1
merlinofchaos commentedIf we can't solve this, you can work around it by turning off the javascript UI at admin/build/views/tools -- there's a checkbox there that will make Views fallback to the normal UI.
There's a couple of things to check. Mod security is known to interfere with javascript. Additionally, sometimes the site can be available under multiple domains (www.example.com and example.com for example) and when visiting one it tries to ajax from the other and this causes failures. Fixing the base_url in settings.php has been known to fix this.
secure pages has been known to interfere by trying to secure the admin stuff and some leading to a secure request trying to do non secure via AJAX (or vice versa) which your browser will not allow to happen.
Comment #2
jvinci commentedThank you.
I'll look into your suggestions and report back.
Comment #3
jvinci commentedI turned off secure pages for views and it works fine now.
Thank you very much for your help.
Comment #4
jlmeredithCan you further explain what you did with "secure pages"? Do you mean you disabled https for views pages? If so, how was this accomplished?
Comment #5
jlmeredithI did in fact find that the settings.php file had a base path defined with the www which is being forced via .htaccess to render urls without the www. Once this was fixed, the issue went away.
Comment #6
robin1988 commentedburraaaaaa thnx man merlin... i finally got my thing solved
Comment #7
webfunkin commentedyes, this worked just fine. apparently my base path was set to my url without the www -> while i was doing a 301... should have figured that part out myself...
Comment #8
ljrweb commentedstill not sure on how this was fixed? i set the base URL in the settings.php file and still i get the following screenshot..
Comment #9
copyhold commentedIssue might be coonected to jQuery version.
I replaced original Drupal version with one from jQuery site ( v 1.4 ) and and after that this problem with views started to happen.
Replaced it back with original one and it's now OK.
PS: It's a solution , but I need v 1.4 for front end. Might there be any solution for that? Like use 1.4 for pages that not start with 'admin', and legacy one for others.
Comment #10
heine commentedFirst, I'd like to start with this note, suppressing the urge to type it ALL CAPS:
That said, drupal_to_js doesn't provide RFC compliant JSON to ajah handlers. As (afaik) newer jqueries moved away from a naive JSON parser to a correct one, this Drupal generated "JSON" is no longer up to snuff, which in turn causes the jQuery ajax handler to barf all over your screen.
There's a patch for Drupal 6 @ http://drupal.org/node/479368#comment-3410894 that intends to correct the JSON situation.
Of course, as with jQuery 1.4, totally UNSUPPORTED.
In addition, the problem is completely unrelated to the issue starter and would be better of in its own issue (or, because it involves something unsupported, in no issue at all).