On my localhost on the settings page admin/structure/openlayers I keep getting the Javascript error "Error making request to server."

This wasn't happening before. I used variations of the following in the OpenLayers Source:

Nothing seems to get rid of the error. All of these are 2.11 versions, though I wonder if there's been some change since a 2.12RC is now out.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zzolo’s picture

Category: bug » support

Hi @mgifford. Just a formality, please default to "support request" unless a bug has been identified already.

More information is needed here. In Chrome or Firefox, there are network tools which should help you locate what file is giving that error.

mgifford’s picture

Maybe on the support request. Certainly since it hasn't been verified as a bug with the coding.

This was with Firefox. Don't think it was a network thing either as the maps were working fine, just the Javascript on the config page was reporting an error.

You can actually see it here - http://drupal.org/node/1481374 - as I was running into it when editing the D7 docs.

I was able to replicate the error (which is only visible after saving it) with the dev version specified on the Mac with FF, Chrome, Opera & Safari.

Again, it's the Javascript tool which is aiming to verify that it's 2.11

ranelpadon’s picture

Issue tags: +clean URL

Most likely it is a "Clean URL" issue.

I've experienced the same problem, but found the solution here:
http://drupal.org/node/1375156

and a related problem and solution also:
http://drupal.org/node/1333134

ranelpadon’s picture

friedjoff’s picture

Category: support » bug
Status: Active » Needs review
Issue tags: -clean URL
FileSize
680 bytes

This is indeed a "Clean URL" issue. I think it's save to always include the "?q=" url part (see attached patch).

mgifford’s picture

Status: Needs review » Reviewed & tested by the community

Seems like a simple enough patch. Applies nicely.

Pol’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks.

Automatically closed -- issue fixed for 2 weeks with no activity.