-
-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jjwg_Maps&action module not working #368
Comments
Can you reproduce this issue on the online demo? |
I tried, but it isn't the exact same setup. I don't have admin access using the demo account, so I had to paste the URL myself to get there. I go here: https://suite8demo.suiteondemand.com/#/maps/quick-radius?return_module=jjwg_Maps&return_action=index I put in an address, and I get
It doesn't seem to have geocoding setup on the demo. Mine doesn't have the same error as the demo site does. Mine will have a link for an IFRAME that doesn't load anything at the bottom of the page. My system doesn't seem to have a problem geocoding addresses. |
I bet the demo site doesn't have a Google Maps javascript API key configured in the Admin page, so it's failing to geocode addresses with Google Maps, so it's not really possible to reproduce this issue on the demo site. Sigh. |
Problem: The jjwg_Maps module was unable to locate custom templates due to incorrect path specification. This caused the maps functionality, particularly in the list map view, to fail loading. Solution: Implemented dynamic path resolution for the custom and default Smarty templates within the jjwg_Maps module. The solution checks for the existence of custom templates and falls back to default templates if custom versions are not found. This ensures that the module can always locate the necessary template files, preventing failures when attempting to load maps. Fixes salesagility#368 error log, but full map module expected behavior is not restored.
I have what could be a partial fix @chris001. It resolves the quick radius search, but when I try to save a map - it doesn't let me view it... it just loads a blank page. The system doesn't log any relevant errors at this point to resolve that. Right now, I have restored the quick radius display. Here is a potential fix - you can view my commit to my hotfix branch. This view though doesn't have any useful results. It could be that I haven't defined an area yet though. There may be some minimum required information in the maps list module, that it needs to render a search? |
I did some additional error tracing, and I am outside my element here completely. When I inspect the front end console from edge & chrome, I get these errors:
I enabled debugging on suiteCRM's logging, and here is a short output of it... seems to have multiple problems, one of them may be a halfway installed module (TapCRM), referring to modules not being mapped to the front end. I am waiting on someone to help with that install (separate issue). This one seems like it may be a culprit.. but I am attaching the larger log for inspection.
|
In version 8, when you go to |
I followed the steps, but it didn't give me an explicit option at the bottom of the repair and rebuild screen - but it did mention this in the last line:
Interestingly enough, when I went to go check the maps module again after running the quick repair and rebuild - I get the same behavior. When I do another quick radius map, it works like in the screenshot above.. but I noticed the tack icons. I went to click one, and it says "Error: Template file not found." in the text box above the tack on the map... I also noticed at the bottom of the screen, there is another link that says "IFrame: URL"... both of those could be symptoms of other path issues in these modules somewhere. This seems more likely a culprit than package issues. Maybe we can add more detailed error tracing somewhere? EDIT: This is what I have on some additional error logging level:
|
Of concern in these logs:
|
JJWG Maps Action Module Not Working: No Map or Radius Map Functionality
Issue
The JJWG Maps module in SuiteCRM appears to be non-functional. While the module allows for the creation of area maps, there is no ability to interact with a map directly. Attempts to create an area map result in a page that doesn't load as expected, showing only a link at the bottom with an IFrame:URL, which doesn't seem to load.
There are several log entries indicating a "FATAL" exception, specifically related to an inability to load a template file ('file:./custom/modules/jjwg_Maps/tpls/InfoWindow.tpl').
Expected Behavior
Users should be able to create and interact with maps within the CRM, including drawing area maps and viewing them.
Actual Behavior
The map functionality doesn't work as expected. Creating an area map leads to a non-functional page with an IFrame that doesn't load. Logs indicate fatal exceptions related to loading template files.
Relevant Logs
Possible Fix
Steps to Reproduce
Context
This bug hinders the ability to use map functionalities within SuiteCRM, which is crucial for visualizing geographical data related to CRM activities.
Your Environment
Relevant Community forum:
https://community.suitecrm.com/t/jjwg-maps-action-module-not-working-no-map-or-radius-map-functinality/90689
The text was updated successfully, but these errors were encountered: