Skip to content
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

[Bug] STS not compatible with the latest beta version of WME #61

Closed
yvesg54 opened this issue Feb 19, 2021 · 8 comments
Closed

[Bug] STS not compatible with the latest beta version of WME #61

yvesg54 opened this issue Feb 19, 2021 · 8 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation APIs or similar

Comments

@yvesg54
Copy link

yvesg54 commented Feb 19, 2021

Glodenox fixed a similar issue in WME Open Maps.

@yvesg54 yvesg54 added the bug Something isn't working label Feb 19, 2021
@ordonezgs
Copy link
Collaborator

Working on this. A pull request was opened. Thanks for the info @yvesg54

@ordonezgs ordonezgs added the In progress Currently working on it label Feb 20, 2021
@ordonezgs ordonezgs self-assigned this Feb 20, 2021
ordonezgs added a commit that referenced this issue Feb 20, 2021
Fixing #61.
@ordonezgs
Copy link
Collaborator

Seems to be fixed, please comment if the issue persists.

@yvesg54
Copy link
Author

yvesg54 commented Feb 20, 2021

It had been fixed, but problem is back, same symptoms, same entries in console log.
WME 2.1.159.0-57451efe v2.72-94-ge8034dd72
STS 2021.02.19.01

@ordonezgs ordonezgs reopened this Feb 20, 2021
@ordonezgs
Copy link
Collaborator

ordonezgs commented Feb 20, 2021

@yvesg54 Please open editor. Then open console, and reload the page, after that (It doesn't matter if the site have already or if is it loading). Paste this code into the console.
do{ if (typeof W === 'undefined'){ console.error("WMESTS Error.... W UNDEFINED"); } if(typeof W.map === 'undefined'){ console.error("WMESTS Error.... W.map UNDEFINED"); } if(typeof W.prefs === 'undefined'){ console.error("WMESTS Error.... W.prefs UNDEFINED") } if(document.getElementById('edit-panel') === null){ console.error("WMESTS Error.... EDIT PANEL NOT READY") } if(WazeWrap.Ready != true){ console.error("WMESTS Error.... WazeWrap Not Ready") } if(((window.location.href.indexOf("segment") > -1) && document.getElementById('unpavedCheckbox') === null)){ console.error("WMESTS Error.... Segments and Checkbox Still not returning NULL") } console.warning("Running WMESTS check undefinitively") }while(true);

And press enter to run it.

Please pay attention now to the Red Error console messages with title WMESTS Error... and paste it here, try to not repeat the messages which are equal, because of the proccess it will try to check any time at any moment.

Or even any other red message which says "Uncaught ReferenceError:" after running this code. Help is appreciated to debug this. Thank you.

@yvesg54
Copy link
Author

yvesg54 commented Feb 20, 2021

Now I cannot reproduce the problem...
STS works well again.
I will run the debug code it it occurs again. I tested the code, I had to replace "warning" by "warn". It does not display any error (as expected, as the problem was not visible).
Sorry.

@ordonezgs
Copy link
Collaborator

ordonezgs commented Feb 20, 2021 via email

@yvesg54
Copy link
Author

yvesg54 commented Feb 20, 2021

So I got a new version of WazeWrap without noticing it?

@ordonezgs
Copy link
Collaborator

Yes. WazeWrap isn't a installed script; rather it is an script which is called from many installed scripts to work with. So, each time you use a script that uses WazeWrap it asks for the newer version without requiring an update from the user.

I must say, that WazeWrap is managed from WazeDev team (community team), so it is out of control of WME Send to Slack script maintainers.

The issue was associated with WazeWrap due to an unready call from the library, so the script (WMESTS) wasn't able to work so.

@ordonezgs ordonezgs added documentation Improvements or additions to documentation APIs or similar and removed In progress Currently working on it labels Feb 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation APIs or similar
Projects
None yet
Development

No branches or pull requests

2 participants