Unknown RPC service: - share

I'm trying to integrate g+ share button on my website.
If I place it on static part of page, everything works fine. But if I place it on modal it does not open, and I am getting messages in console:
Unknown RPC service: onVisibilityChanged rs=AItRSTPg3AKJNQb-mFQlUvzu84VKqzUF-g:106
Unknown RPC service: _onopen rs=AItRSTPg3AKJNQb-mFQlUvzu84VKqzUF-g:106
Unknown RPC service: _ready rs=AItRSTPg3AKJNQb-mFQlUvzu84VKqzUF-g:106
Any ideas what could cause this problem?

The problem occurred because I was generating g+ share button with jquery, after all javascript was loaded.
I solved the problem by defining hidden div and inside it g+ share button, and just showing that div with jquery.

Related

SprintBoot: getting whitelabel page error when trying to hit api in Springboot

When trying to hit the endpoint http://localhost:8080/users the page is getting "WhiteLabel Error". Can anyone resolve this issue. these are the snapshots of the controller class and error.
Your rest controller indicates that you have to access to “/courses”, but in the screenshot your are accessing to “/users”.
Change it to:
http://localhost:8080/courses

404 when post submitted; found when directly called

I have a ColdFusion enabled form (for validation) submitting to a separate page. When this form is submitted it is showing me a 404 on the action page, yet when I directly load the action url into the address bar it shows up (errors appear, but that's ok). This is by far one of the most odd issues I have encountered.
Form page: http://www.jefferson.edu/population_health/_archive/contact_me.cfm
Action page: http://www.jefferson.edu/population_health/_archive/contact_action.cfm
Even if I try passing the form variables via URL it gives me a 404.
My gut is that there is another service on that machine that is trying to take over the request whenever you submit data and binding it to another webserver...which, of course, it can't find the right page based on it's own webroot.
If you click http://www.jefferson.edu/population_health/_archive/contact_me.cfm, it loads fine and returns 200 header with IIS as the server, but if you click http://www.jefferson.edu/population_health/_archive/contact_me2.cfm it throws a 404, as expected, but it's properly handled with a custom 404 and the header response is still IIS. But if you click http://www.jefferson.edu/population_health/_archive/contact_me.cfm?foo=bar, it returns an ApacheSling default 404 and header information saying the server is "Day-Servlet-Engine/4.1.12".
Your page is posting to the page contact_action.cfm ... in your question you indicate that the proper page should be "mailaction.cfm".
If the action page is actually mailaction.cfm then you simply need to change the action attribute of your cfform.

facebook connect pluggin in cakephp

I am using "webtechnick CakePHP-Facebook-Plugin" for my site for login and authentication. My site is in cakephp. I have placed the plugin in proper folder as guided in the video. But when I am running my site I am getting the error:
Fatal error: Call to undefined method Facebook::login() in
/home/depasser/public_html/var/www/html/fb_app/app/views/elements/login.ctp on line 12
I have tried a lot to solve this issue but haven't succeeded. Can anyone guide me how I can solve this issue?
Is the helper in your controller for this view, if the 'Facebook.Facebook' helper is not there it wont work.

Request Dialog CRASHED?

Recently, Facebook has updated the component "request dialog" assigning responsibility to the exclusion of requests to the developers (http://developers.facebook.com/docs/reference/dialogs/requests#deleting). He also made other adjustments to the format of the request id. Thus added configuration option "request 2.0 efficient" on menu of the application developer.
The problem started after this change , the component "request dialog Multi - Friend- Selector" is in serious trouble. The component is crashed while trying to load friends. Sometimes friends loads, but the component does not resize height.
See the image of the errors:
Crashed before load friends:
http://postimage.org/image/glk2mf3bb/
Resize fail
http://postimage.org/image/iobduhn41/
In chrome browser component generates the following error:
s-static.ak.facebook.com/rsrc.php/v1/yS/r/syXGEAW5WYH.js:36 Uncaught TypeError: Cannot read property 'origin' of undefined
In firefox generates following error:
Erro: Permission denied to access property 'DocRPC'Arquivo-fonte: https://s-static.ak.facebook.com/rsrc.php/v1/yS/r/syXGEAW5WYH.js Linha: 36
Can you reproduce the error with the code itself Documentation
http://developers.facebook.com/docs/reference/dialogs/requests
Help please.
Seeing same errors here, but I can add some info:
It does seem to work if you use the basic example in https://developers.facebook.com/docs/reference/dialogs/requests, which opens up the dialog in a new browser window.
In Chrome, I found an additional error message to the one you posted:
"Unsafe JavaScript attempt to access frame with URL [...] from frame with URL [...]facebook.com/dialog/apprequests. Domains, protocols and ports must match."
From all that I guess the error may be related to the dialog display mode (read https://developers.facebook.com/docs/reference/dialogs). Within my app, I am getting this error exactly as you do, unless I set display to something like 'popup', in which case everything works (but a new borwser window is opened). The docs do state that "Because of the risk of clickjacking, [iframe] is only allowed for some certain dialogs, and requires you to pass a valid access_token." Well, passing access tokens did no good for me.
Little question: are you using some toolkit like GWT?

simple modal contact form wordpress plugin gives "404 not found" on submit

I had this simple modal contact form working fine but must have broke it somewhere along the way and can't figure out where. Now when I hit submit I get a 404 Not found.
In Firefox the 404 message never shows and from the Error Console I'm seeing the following error repeated:
Error: uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js :: anonymous :: line 125" data: no]
The popup form can be found here at this site in development:
http://dailybutter.com
It's been styled and there are 2 other popups on the home page that also use the smcf plugin "market statistics" and "quick search".
The contact form was working after customizing appearance and adding those 2 other popups so I don't know why it's not now. Any help would be greatly appreciated!
It's because the action is null and it's posting to the wrong page, the plugin is looking for the action here:
$('#smcf-content form').attr('action')
But your modal looks like this (when opened):
<div id="smcf-container" class="simplemodal-container">
<div id="modal_content1" class="simplemodal-data">
<div class='smcf-content'>
<form action='/wp-content/plugins/simplemodal-contact-form-smcf/smcf_data.php'>
That class='smcf-content' div needs to have an ID of id='smcf-content' instead of a class for the plugin to submit properly, or the plugin just wasn't updated...I see #smcf-container everywhere else, so it's possible this one ID selector was just missed and needs to be changed as well.