Closed (works as designed)
Project:
Leaflet
Version:
8.x-1.3
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Feb 2019 at 17:21 UTC
Updated:
31 Mar 2019 at 15:59 UTC
Jump to comment: Most recent
Comments
Comment #2
benjarlett commentedComment #3
itamair commentednothing special changes from 1.2 to 1.3 but what warned here:
https://www.drupal.org/project/leaflet/issues/3033668
I don't know if your error might be related to it, as it seems more related to a class autoload error.
Did you updated the module using composer ? (??), and specifically this command:
composer update drupal/leafletbecause otherwise you are very probably following wrong practices and loosing classes autoload.
Eventually you might try to update (manually) every Leaflet Map Formatter and Views Style settings, as advised in the above mentioned issue.
Comment #4
itamair commentedComment #5
itamair commentedIt should be an issue related to your specific working setup, as I don't experience any similar matter in my Leaflet 8.x-1.3 build
Comment #6
gun_dose commentedI have the same problem. I suppose, it caused by moving leaflet_views to 'modules' subfolder. But I still can't find solution.
PS: I updated to latest version with composer.
Comment #7
itamair commentedAh shit! You are perfectly right. That (probably) broke the controller namespace ... going to fix this
Comment #8
itamair commentedComment #9
gun_dose commented@itamair all is ok with namespaces. Some php internal caching 'remembers' old path and php tries to load class from old location. For me it happened in docker container, after recreating of container problem disappeared. But in production environment without docker all is OK.
So I suppose, that solution is to reboot server.
Comment #10
itamair commentedah yes ... just checked. You are right, as namespace is relative to the "leaflet_views" module path.
Minding if ... a workaround would/might be to export configurations (drush cex) then uninstall the leaflet_views module (drush pmu leaflet_views) and then reimport the configurations (drush cim).
This way the leaflet_views module should be re-installed from the new location (?) preserving your previous settings.
Comment #11
itamair commentedComment #12
itamair commentedComment #13
anruetherupdating title for reference.