I have a wordpress website made in 2016, and now the map doesn't work properly
anymore because of this console error (ExpiredKeyMapError).
I have created a new API but still doesn't work.
I have tried deleting the cache but still...
Maybe i need to wait some days for the new API starts to work properly? Or there is a way to make it work?
Anyone can help me?
Solved, because the template had a problem with API, i needed to contact the helpdesk.
Thank to all.
Related
HTMX is great and using AJAX for most of the stuff is awesome! But from time to time I just need a real "phyiscal" redirect to another page.
Any ideas how to achieve this without starting to write custom JS code?
Thx!
Luckily, after googleing for ages I found this post at Reddit: https://www.reddit.com/r/htmx/comments/ot6kai/comment/h6v5cn9/?utm_source=share&utm_medium=web2x&context=3
You can easily set the HX-Redirect header in your backend and on the return of the response, your browser will magically redirect.
The docs state this here but unfortunately don't explain it in more detail on other pages.
Supplemantal: I experienced an issue with JS errors occuring after the redirect - even though everything works fine.
API update yesterday OSRM and I'm having problems.
It calls previously used this way:
router.project-osrm.org/viaroute&loc=-0.88656,41.68043&output=json&compression=false
and it runs smoothly.
Now there is no way to make it work with the new version:
router.project-osrm.org/route/v1/driving/-0.88656,41.68043
This is the code for the old API, to see if anyone knows how to fix it.
Solved this call: https://router.project-osrm.org/nearest/v1/driving/41.680432,-0.88659841.68
Add https and nearest/v1/driving in URL.
I have been having this problem for a week almost in my Prestashop 1.6.0.13.
My question is that when I go to Prestashop Men's section and try to add products to cart (with 1 item in stock).
I have enabled the option for advanced stock management but it didn't seem to help me out on my problem.
I get the next following message:
"Impossible to add the product to the cart textStatus:error
errorThrown responseText;"
The weird thing is that when I try to refresh the product item, it appears on my cart. The same happens when I subtract the product from my cart.
From the other side, it doesn't seem to be a problem for the rest of categories.
I double checked the URLs also to see if there was a conflict between friendly URL's and cart but I deem that the problem doesn't lie there.
I disabled the Ajax cart also to see if the problem lied there but no solution either. Currently, I am using the default Prestashop cart block.
I found a way solving the problem by uninstalling Google Analytics module but it isn't what I really want for solution because I need it in order to make reports on statistics.
Has anybody encountered any similar problem and found a solution ?
Please, if you have any suggestions on solving this matter, I would be really glad.
Thanks,
Orestis
Ok the solution was to remove "|" from every product description in Back-Office, which was the source of the problem. The products that had it, was creating a PHP Fatal error: Uncaught exception 'Exception' with message 'Forbidden chars in cookie' in /var/sites/c/caneihavethis.com/public_html/classes/Cookie.php:169.
I wouldn't recommend though to edit the Cookie.php line. Just by removing this char, Google Analytics won't give problems in adding or subtracting a product.
On pressing Add to cart button it sends data and gets a response in JSON format. In your site there is a syntax error in that response.
It is not easy to find the reason and fix it. But you can:
If you have experienced that uninstalling Google Analytics module is fixing it - you must be sure you have configured it properly or you should try to use another module. Though the problem can not necessary be related directly...
Advanced. Use Firefox Firebug addon and check in its Console what is the full response on pressing Add to cart. It shows more information about what is causing this error.
You can find many tutorials how to use Firefox Firebug, it is quite simple. You can find the reason, uninstall buggy modules or themes, but it is possible you need to get a help from a coder to fix it finally.
Get a help from a coder.
It's been 5 hours i'm struggling with Meteor.
I want to get Geolocation.latLng(). It works perfectly on my browser, I coupled it with GoogleMaps to put a marker on a map. I'm following this example and didn't touch it much.
When I compile on iOS the Geolocation returns weird errors on my simulator (iPhone 6 / iOS 8.3) such as Geolocation failed : Position retrieval timed out, sometimes it's another one which's very similar (note : it asks me if i want to share my location when i launch the app, and i accept)
Sometimes it says it just compiled and I get an old version of my app too.
What's happening ? Is it me or it's really THAT buggy once you try to make a real world project ?
This to-do list tutorial looked very magic but once you understood how it works and you try something real, it's kind of disappointing ... Sounds very unstable and not ready.
Don't hesitate to tell me if i'm doing something wrong ;)
UPDATE : i've searched a lot more and i'm now trying to setup differently the timeout limit of the geolocation package to avoid this error.
Sadly, i realized timeout : Infinity is the default value of the source : sounds like an issue.
Nothing is working so far. If anyone has an idea, let me know on that too ...
I finally made it work. First I realized you have to setup the accessRule thank to Lucas's answer but it wasn't enough.
// In a mobile-config.js in the project
App.accessRule('*://maps.googleapis.com/*');
The iOS Simulator provided by Apple seems to have bugs : the position isn't retrieved correctly, or not at all. It's only working if i set the the Debug > Location to City Ride ; even Apple wasn't working properly on my hand.
If nothing works for you, just try all the possible Location, it might be the problem.
Have you define an accessRule in your mobile-config.js? If not, try this.
App.accessRule('*://maps.googleapis.com/*');
Here, clone this sample app I put together a while back:
https://github.com/ffxsam/whats-nearby
It works on desktop as well as mobile. All you have to do is add a settings.json and add your Google Places API key in there.
{
"apiKey": "...."
}
I am having problems finding the solution to two errors on a web site I am building on a Joomla 3.0.2 platform and using the Gantry Framework.
The first error is:
Type issue
'null' is not an object (evaluating 'b.appendChild')
The second error is:
Type issue
'undefined' is not an object (evaluating 'rikgallery_slideshow.jump')
I have never understood how to debug javascript errors, so I would really appreciate some help.
The site can be accessed at: http://lads.ergonomiq.net
If someone can help and needs super user access to the back end, please email me at ali.samii#ergonomiq.net
Thanks
This is meant to simply point you in the right direction, further testing will be required to fully solve your issues.
OK the first error is happening in responsive.js line 66
menu.inject(document.getElement('.menu-block'));
I would console.log(menu, document.getElement('.menu-block')) make sure both contain an element as expected. I am guessing one of those will be null.
Second error
AjaxURL: 'http://lads.ergonomiq.net//index.php?option=com_roksprocket&task=ajax&format=raw&ItemId=101'
is returning unexpected JSON
{"status":"error","message":"Unable to find class for item ","payload":null}
I would test the error and only proceed if you have images in your returned JSON
Line 136 of your home page.
Hope this helps
I have never understood how to debug javascript errors, so I would
really appreciate some help.
If you want to debug JavaScript errors, you should be using FireBug with the FireFox browser. You can get the FireBug Add-on here. You will then be able to find these bugs yourself.