-
Notifications
You must be signed in to change notification settings - Fork 256
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
Unable to enable "Private Maps" option under the "Share" submenu in the Account Settings menu. #889
Comments
I experience the same issue with all three share buttons on my private installation (v1.5.5). |
Watching the same problem |
Same issue will try to investigate if time allows |
Request form data on saving the account share tab:
I tried enabling the share private maps which is still showing as zero, might be a javascript related issue or form html. Also can't switch the toggles back to the disabled / yellow side, refreshing shows them back at this state as the 0 has been sent in the form |
Just setting up a development environment for pathfinder, if i get some more time this week i'll try and dig into this issue. |
This is an issue with the Production version of the Public Pathfinder as well and I have gotten no reply from @exodus4d on here or even from a direct email so I am not sure what is going on. |
Friendly bump: same issue for me :) Can't share any maps because I can't change the settings |
Just finished setting up the development environment for pathfinder with sass,gulp,php,mariadb etc will start having a look to see if this is something i can fix or not 👍 |
So looking at the post request:
I enabled privateShare toggle which correctly posts 1 to the http://localhost:8000/api/user/saveAccount endpoint Checked the account tab again and it was disabled, refreshing the entire page, checked again and it's green. Interestingly on my development environment the toggles carry on working after the first click which isn't the case on the live environment |
Maybe worth mentioning: I'm also having an issue that I can't log out or even delete the account. I get: error 403: Access denied: User not found. Might be related? |
So further digging, it works fine with the development generated JS/CSS which isn't minified etc Stops working as soon as i run the production gulp task I feel like i'm getting closer... |
Definitely, and with open source projects in general the developers can't be working on them all the time. I'm guessing exodus4d has other commitments right now. |
So with production: form submits aren't submitting value of the toggles development is fine i'm guessing this is something to do with the uglification of the JS files or the order they are being included/combined. |
Gulp.js
Disabling the concatJS and running production task is working and submitting the correct values, so its something going wrong with combining all the JS files. Digging deeper:
|
I'm rooting for you here, just so you know! |
Changing
to
Seems to fix the bootstrapToggles and allows their values to submit on clicking save. |
Can you try replacing /public/js/v1.5.5 with the attached? |
where do I replace what? :) (sorry, noob question maybe) |
so on the server inside the pathfinder installation will be |
Ah ok, that's not something I can do then. I'm just using the website interface ... |
Talk to the sysadmin if yours is hosted, if your using the public one then you'll need to wait for this to be merged and updated. I'll get this raised as a pull request for @exodus4d and see if this is the right solution or not. Instead of enabling findNestedDependencies it might be a dependency needs to be listed in one of the files/modules. So need some advice first, but it works 👍 |
Waiting it is then ... cool stuff, thx! |
@Caffe1neAdd1ct Thanks for the awesome PR! - Saves me a lot time to figure out what the problem is: The issue only appears with "bundled/build" JS files. Bootstrap Toggle (
Unfortunately Bootstrap Toggle does not check if it was already initializes and sets some @Caffe1neAdd1ct PR fixes the issue indeed, but with the downside, that all bundles JS files include everything, even if the JS modules should be loaded "on demand" if they required: |
Ahh now that makes some sense! Was very difficult to track down a reason as to why other than the fact the bundled assets didn't work and raw worked fine. Glad you've managed to track the dependency duplication down! I had a hunch it was something along those lines 👍
Well it was the opposite but close :) |
Yeah ugly bug, and invisible during development because of the unbundled JS files... I inspected the toggle DOM element and saw that it was initialized 2 times, (2nd initialize created the same DOM nodes one DOM level deeper) |
I'm predominately a backend developer so delving into the frontend assets and toolset isn't my speciality but I can make some progress... Thanks for explaining how you found the issue, helpful and good to know! |
Is this also why the Management flag is not working if you are not a Director or CEO? Mine has worked sporadically since this bug started and I am not sure if they are related or not. FYI it is not currently working and I can not make changes to my own map even though I have two of the three permissions required. I do not have Director but have the other two and I have verified them in the game. I can send you a screen shot if you want proving this but not here. |
@CalMatar Thanks, I´ll check the management flag. What I can say is that the "map tracking" toggle was also affected by this bug. |
- Upgraded "[_Select2_](https://select2.org/)" js lib `v4.0.6-rc.1` → `v4.0.13` - Fixed some issues where changed map settings (e.g. "share") do not get updated/stored, closed #889, closed #925 - Moved ajax endpoints for map create/update/delete into `/Api/Rest/` dir - Minor UI improvements for "manual dialog" (fixed pixelated text)
I replaced the v1.5.5.zip in Is there a workaround until a new release is created e.g. modifying it directly in the database? Edit: After some digging, in the
|
@Lynx005F I just uploaded this to our hosted version and the toggles started working, the only caveat is the toggles don't update showing the saved values until you refresh the whole page and go back into the accounts section. If you save, close accounts, open accounts it will show the old value still (appearing not to have worked). The database table can be updated, just look for the shared column on character, corporation, alliance tables. |
I can click to switch from disabled to enabled, and click save, and then I see the "account saved" tip pop up in the bottom right.
But then I go back to the enable private maps and the condition is still set to disabled; despite just changing and saving my new configuration seconds before. I am now unable to add my scout alt to any maps :*(
I apologize if this is already a known issue, I didn't see a solution for it anywhere.
The text was updated successfully, but these errors were encountered: