Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This error was first attached to the Layer not found issue. I have narrowed down to the root of the error which is an ajax call from \openlayers\includes\content_types\modules\openlayers_ui\js\openlayers_ui.admin.js on the OpenLayers UI. The ajax is sent to an url that cannot be found on my server: 'admin/structure/openlayers/callbacks/version_check/' + version.
Can someone advice what configuration I am missing to result in the above url not found error?
Thanks so much!
Comment | File | Size | Author |
---|---|---|---|
#4 | httpd.conf_.txt | 18.01 KB | alg8598 |
#4 | htaccess.txt | 21 bytes | alg8598 |
Comments
Comment #1
zzolo CreditAttribution: zzolo commentedYou should just need to clear your cache, as this is a new menu item.
How did you upgrade the module, btw? I feel like Drush is not clearing the cache when upgrading modules.
Comment #2
biydng CreditAttribution: biydng commentedI did clear the cache using the Clear all Cache Button on admin/configuration/performance many times. Or are there other ways to clear the cache? For some reason the url path just doesn't exist on my local server. I used the Drupal built-in module upgrade feature to upgrade from 7.x2.0-dev to 7.x2.0-beta1. The problem is this error existed even before I upgraded to OL 7.x2.0-beta1. Any idea why the path is not valid on my server? Thanks for the help!
Comment #3
biydng CreditAttribution: biydng commentedFixed. Turned out to be the clean URL not set on my local server, so the ajax check version url, which is a clean url, kept getting page not found. After changing my apache server to AllowOverride (it wasn't, my fault) and setting the RewriteBase directory in .htaccess, then enable the Clean Url on my drupal site, clearing cache one last time, the error disappeared.
Comment #4
alg8598 CreditAttribution: alg8598 commentedHello,
I am testing OpenLayers integration into Drupal7 and face exactly the same issue. I carefully followed the 3 steps you outlined, but still Drupal Openlayers Openlayers library does not load.
What is the exact path to be specified into the openlayers Source field - the running system is MS Vista 64 - I set "sites/all/libraries/OpenLayers/OpenLayers.js" shall I set UNC path ? this is mysterious.
I have
1) set "AllowOverride All" to httpd.conf
2) placed .htaccess with "RewriteBase Drupal7" at htroot www directory - the latter is declared DocumentRoot at httpd.conf "DocumentRoot "C:\Program Files (x86)\PostgreSQL\EnterpriseDB-Apache\Php/apache/www"
3) restarted httpd service
4)cleaned URL in the Search and metadata section of the configuration module:
thnks a lot in advance for your attention in this;
Best regards
Arnaud