Magento 2 : Message Notification not working in chrome browser - magento-2.0

I had developed "Test Message" extension in Magento 2. In this extension, i create \Magento\Framework\Message\ManagerInterface class object and called addSuccess() and addError() Method.
$this->messageManager->addSuccess('Custom success message');
$this->messageManager->addError('Custom Error message');
But it only works in Firefox. When i run this extension in chrome, success and error message not working ?
Also Magento 2 in-built system messages only display in Firefox. Those system messages are also not display in chrome.
so..It is Magento 2 bug ? and if this not bug then what is solution for this problem ?
Please help me. Any help would be appreciated.

Try to Use addSuccessMessage(),addErrorMessage()
Or
Clear your browser cache and cookies, then try it.

Related

Wordpress Captcha v2 insivisble not working - orange error - js errors

I have contact forms 7 installed with Invisible captcha (By Mihai Chelaru),
Whenever I submit a form I get an orange box error message: "There was an error trying to send your message. Please try again later."
I tried configuring Contact form 7 with v2 and v3 as well, still get the orange box,
I see errors in the JS output:
The script from “https://x.ca/recaptcha/api.js?onload=renderInvisibleReCaptcha&render=explicit” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
Loading failed for the <script> with source “https://x.ca/recaptcha/api.js?onload=renderInvisibleReCaptcha&render=explicit”. contact:538:1
could it be an htaccess issue?
Please help, all input is welcome.
If your form is working good without ReCaptcha then an error should be in your ReCaptcha plugin. Because sometimes this happens when ReCaptcha is not working and shows some error. but without ReCaptcha form works well.
You can try another plugin like this. check with this plugin.
https://wordpress.org/plugins/wpcf7-recaptcha/
I think there is a problem with Configuration for Contact Form 7 plugin.
I use this one ( https://wordpress.org/plugins/contact-form-7) for all WP sites in my company and it works with reCaptcha V2 and V3.
Hope it can help!

"ErrorUtils caught an error" - Chrome console error with any Wordpress Facebook plugin

I'm trying to use a Facebook likebox plugin on a staging site and I have tried some different plugins. Independently from plugin installed I receive the same error in Chrome console:
ErrorUtils caught an error: "Cannot listen to an undefined element. TAAL[2]". Subsequent errors won't be logged; see https://fburl.com/debugjs.
I think the problem is generated directly from Facebook plugin inclusion. Unfortunately the url https://fburl.com/debugjs isn't working.
This issue doesn't apparently create any problem to the site, but I would like to have a site without any error in console.
Tee site is http://millennium.alecss.it/
Let me know if you can help me, thank you very much.
This is the bug, when upgrade jQuery since 1.8.
Look in your code and replace to on('load')
$(window).load(
function(){
//your code
});
To
$(window).on('load',
function(){
//your code
});

ONLY Safari iframe content load error

I'm running the latest Meteor version v1.3.3.1. This is my scenario. I have an Meteor App. think of Disqus, So I embed a link 'http://frontend.dev:4000' to a webpage in 'http://localhost:8000'
The emebed works and function as expected on every other browser. But On safari I get this error. I'm sure it's a Meteor Issue because when I try to embed any other website from the internet it works alright on Safari. The website shows up ( if not blocked from the website provider ) without any error messages
I'm happy to provide any information you may need
Also tracking this here. I think this could be a Meteor issue too
https://github.com/meteor/meteor/issues/7246

Flex - HTTPService - Security error accessing YouTube api

I have the following HTTPService defined:
<mx:HTTPService id="youTubeHttpService" result="resultHandler(event)" fault="faultHandler(event)"/>
And I'm using the following URL (pattern) to obtain a list of YouTube videos for a particular user:
http://gdata.youtube.com/feeds/api/users/Y/uploads
where Y is a registered user on YouTube.
Eg: http://gdata.youtube.com/feeds/api/users/YouTube/uploads
I send an HTTP request using the following syntax:
youTubeHttpService.url = "http://gdata.youtube.com/feeds/api/users/YouTube/uploads";
youTubeHttpService.resultFormat = "object";
youTubeHttpService.send();
Now, the above code works fine for some people using our software while others are experiencing the following error ( in faultHandler() ):
Error: [RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP"]
Again, the error happens to some people and not for others.
Have I missed something? Would it be a machine / browser specific problem? As a sanity check the above code works with the same .swf file in chrome, ie, firefox and safari.
I have read about the crossdomain.xml and don't think that is the issue as YouTube have that defined.
Finally, all users (intranet app) are using IE and the same version of flash.
Any help would be greatly appreciated as I have been pulling my hair out the past 2 days and asking the question over and over again "Why is it only happening for some users and not for other users?"
Norm.
Could it be possible that they have their security settings too high? Check out this page to change them http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
You have a crossdomain policy restriction
http://gdata.youtube.com/crossdomain.xml
It looks like youTube is allowing pretty much most everything.
So that leads me to believe the file is not being loaded.
Try this or a form of it.
Security.allowDomain( 'gdata.youtube.com' );
Security.loadPolicyFile( 'gdata.youtube.com' );
Also Use HTTPFox plugin for FireFox to see if it gets loaded
If worse comes to worse try this

getting a javascript error [object error] while using DotNetOpenAuth

Im trying to use the DotNetOpenAuth library for openid authentication.
I have used the default project template that they provide and have successfully run the setup.aspx.
Now the problem is that when i get redirected from myopenid site back to my site, i get a javascript error[object error] in LoginFrame.aspx and the window closes.
Is it because i am working on localhost (cassini server) although i have white listed localhost in the web.config.
I need help to get this working.
Thanks in advance.
If you are using IE, yes it may just be because you're using localhost. IE has a bug where redirects across zones screws up the javascripts. Try a different browser than IE when using localhost to see if that works for you. Once you go live, try IE again and it should work.

Resources