Invisible mode not invisible #195
-
Hello, i am trying to use invisible mode for mosparo. I did configure the project with Design mode invisible spam protection simple. I have added the frontend in smarty like this:
When the form intialize i got the message onSwitchToInvisible correctly but it does not turn the box invisible: What can I do to have the real invisible box instead? |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 8 replies
-
Hi @nadorator Thank you very much for your question. Have you saved the design settings once after switching to the invisible mode? If yes, can you clear the browser cache? It looks like the default CSS file is used instead of the one for your project. Kind regards, zepich |
Beta Was this translation helpful? Give feedback.
-
when checking https://space-dock.starfleet-command.eu/resources/e9f52df7-b34e-473f-bdb4-9ce3d178055a.css i am redirected to https://space-dock.starfleet-command.eu/build/mosparo-frontend.css is it normal? i have double checked the save process it seems to work but the css result is the same is this due to the redirect? |
Beta Was this translation helpful? Give feedback.
-
Hi @nadorator No, it should not redirect you to the It should redirect you to This file should exist on your server in the directory Kind regards, zepich |
Beta Was this translation helpful? Give feedback.
-
ok i have used the uuid in the css file name so the doc is not ok then : https://documentation.mosparo.io/docs/integration/custom I am checking for the correct file name to use. |
Beta Was this translation helpful? Give feedback.
-
Another problem on the css url it seems to redirect in an infintite loop on https://space-dock.starfleet-command.eu/resources/e9f52df7-b34e-473f-bdb4-9ce3d178055a/340b7d9f718e19a2fb244f376296f22274b2e79c3c4d70b726f9835acbdc1ba6.css for
|
Beta Was this translation helpful? Give feedback.
-
Here is the new code I have used to make the infinite redirect stop, there was some missing code in the source. I have completed lilke this:
|
Beta Was this translation helpful? Give feedback.
-
Now there is again a new problem. With automatic css loading it tries to load /resources/e9f52df7-b34e-473f-bdb4-9ce3d178055a.css first then do a redirect 307 to /resources/e9f52df7-b34e-473f-bdb4-9ce3d178055a/340b7d9f718e19a2fb244f376296f22274b2e79c3c4d70b726f9835acbdc1ba6.css the problem: on chromium linux the second url loading does an ERR ORB blocking error. beside opening it directly works better. I'll remove the auto loading feature and use a tag instead... |
Beta Was this translation helpful? Give feedback.
-
I have solved the ERR ORB blocking by adding the header content type text/css on my previous code also I have removed the mapping in index.php and simplified the redirectToStyleResource function as it have to ever return the css file generated from getBuildFilePath the redirect is in fact not needed at all if the content of the css is put in the response directly. Beside, now that the invisible mode is working fine, i have a problem on my submission results. When not invisible I correctly have all my filed "verified" but when in invisible mode all field are marked not verified ... why? I have also got error message: "Verification failed." |
Beta Was this translation helpful? Give feedback.
-
Hi @nadorator Thank you very much for all your messages. Let's discuss these issues. The non-existing CSS fileIn general, the logic of the cleanup you adjusted should work perfectly fine because we're only removing the old files, not the new ones. This should not be a problem at all. The idea is to store the new file and then clean up the old files to ensure there is always a file. I think it has something to do with your hosting. Can you please let me know what exact setup/hosting you're using so I can test the same setup on my side? The redirectThe redirect is here to clear the browser cache automatically. Your browser should cache the final CSS file ( The endless redirectThis happens probably because your web server does not serve the CSS file directly and instead gives the request to PHP/Symfony, which then returns with another redirect. As I wrote in "The non-existing CSS file", I would like to test this one on a similar setup as yours so I can adjust mosparo accordingly. It looks like your webserver is not prioritizing the requests correctly. Requests for existing files should be returned from the server directly (for maximum performance), and PHP should process only requests for non-existing files. Verification failedThat's a very complicated question, to be honest. I recommend enabling the When the error message from the API is Kind regards, zepich |
Beta Was this translation helpful? Give feedback.
-
Sorry to not have replied sooner right now it is working fine on the IIS plateform with the update I did. Also I have seen the other question about a better version for CSS with IIS which is a great information very usefull to correct differently the same problem. Right now my web.config settings is like this:
In the linux version I use in production I have no any redirect problem and all is working very fine. The installation was smooth and worked like a charm. |
Beta Was this translation helpful? Give feedback.
I have changed on my version the code to: