http://facebook.com to get property LocaFacebook JS Error - Permission denied to get property Location.href from http://www.mysite.com - facebook

Simply loading the standard Facebook connect JS framework and getting the following error:
Permission denied for facebook.com to get property Location.href /www.mysite.com
The error happens on line 127 in the file :
static.ak.connect.facebook.com/connect.php/en_US/js/Api/CanvasUtil/Connect/XFBML
Using FF 3.5.7 and Firebug 1.5.0
Is anyone else getting this error?

It's an issue falsely reported by Firebug. Nothing to worry about.

Related

can't add external js script to javascript Evaluator in streamsets

I am using external javascript inside javascript evaluator in streamsets. But when i try to load the external code i got following error. How should i resolve this. Thanks
ERROR SafeScheduledExecutorService - Uncaught throwable from
com.streamsets.pipeline.lib.executor.SafeScheduledExecutorService$SafeCallable#69717812:
com.streamsets.datacollector.util.PipelineException: PREVIEW_0003 -
Encountered error while previewing :
java.security.AccessControlException: access denied
("java.io.FilePermission"
"/opt/streamsets-datacollector-user-libs/test.js" "read")
com.streamsets.datacollector.util.PipelineException: PREVIEW_0003 -
Encountered error while previewing :
java.security.AccessControlException: access denied
("java.io.FilePermission"
"/opt/streamsets-datacollector-user-libs/test.js" "read")
As I've responded elsewhere, you will need to add a security policy to be able to load a script file. Add the following to $SDC_CONF/sdc-security.policy :
// Set global perm so that JS can load scripts from this directory
// Note - this means any code in the JVM can read this dir!
grant {
permission java.io.FilePermission "/opt/streamsets-datacollector-user-libs/-", "read";
};
You will need to restart Data Collector for changes to the security policy file to take effect.

Uncaught CURLEXCEPTION in facebook login - php sdk

Sometimes, especially, when I am not logged in Facebook, an error shows in my login page with the code pasted from the php-sdk. You can see the output at http://jnfp.tk/login.php. When I refresh the page, sometimes the error goes and the correct output shows but sometimes, the following error shows up :-
Fatal error: Uncaught CurlException: 7: Failed to connect to 2a03:2880:10:cf01:face:b00c:0:4: Network is unreachable thrown in /home/vhosts/www.jnfp.tk/src/base_facebook.php on line 977.
Please tell me how to fix it...

Warning: curl_setopt() [function.curl-setopt]: Invalid curl configuration option in facebook_base.php

A week ago I started to notice a problem with the php sdk file - facebook_base.php
sometimes when connected facebook member visit the site and the auto-login trigger I get 2 errors and sometimes only the first error (that is why I used it in my problem title)+ the site shows up but without showing that user is connected.
after a refresh no error is shown and the site for connected member shows up.
I've tried new version of php API and also old ones that worked and still problem remained.
any ideas what can cause the problem?
UPDATE: similar problem spotted here: https://developers.facebook.com/bugs/207087046099691?browse=search_512a0e37e7ecf6136191651
this is the errors:
Warning: curl_setopt() [function.curl-setopt]: Invalid curl configuration option in /home/admin/domains/mydomain.com/public_html/includes/base_facebook.php on line 970
Warning: curl_setopt_array() [function.curl-setopt-array]: Array keys must be CURLOPT constants or equivalent integer values in /home/admin/domains/mydomain.com/public_html/includes/base_facebook.php on line 946

Facebook Graph Throwing Error on Server, Fine on localhost

I'm using the new facebook graph API and getting an odd error when I push to a web server.
My Code is pretty simple with fbmain.php calling facebook.php
<?php
include_once "fbmain.php";
$ab = $facebook->api('/cocacola/feed');
echo ($ab['data']['0']['message']);
When I run this locally, it works great without any errors.
When I run it on my server, I get the error:
Parse error: parse error, unexpected '{' in /home/content/w/e/s/wesbos/html/clients/audiobooks/wp-content/themes/ab/fb/fbmain.php on line 6
The part of fbmain.php its saying is causing the problem is :
try{
include_once "facebook.php";
}
Any idea why this wouldn't work on my server?
Turned out I was running PHP 4.x and try{} was only introduced in php5. Problem solved.

Zend Framework ErrorController not working on live site?

My site is set up pretty much as per the Zend Quickstart guide. The default ErrorController works locally using MAMP. But now I've deployed it to my live site I get a blank page and a "500 Internal Server Error" according to FireBug when I go to an action that doesnt exist.
On my local server I get a 404 and a nicely formatted error page.
Any ideas anyone? I dont really know where to begin looking.
I'm confused :/
Thanks.
Gentlemen, we have a winner!
So for some reason my live server gives me this error:
[Sun Oct 18 10:56:53 2009] [error] [client 118.209.152.109] PHP Fatal error: Uncaught exception 'Zend_Loader_PluginLoader_Exception' with message 'Plugin by name 'Headtitle' was not found in the registry; used paths:\nZend_View_Helper_: Zend/View/Helper/:/var/www/vhosts/lindengardens.com.au/httpdocs/application/views/helpers/' in /var/www/vhosts/lindengardens.com.au/httpdocs/library/Zend/Loader/PluginLoader.php:406\nStack trace:\n#0 /var/www/vhosts/lindengardens.com.au/httpdocs/library/Zend/View/Abstract.php(1118): Zend_Loader_PluginLoader->load('Headtitle')\n#1 /var/www/vhosts/lindengardens.com.au/httpdocs/library/Zend/View/Abstract.php(569): Zend_View_Abstract->_getPlugin('helper', 'headtitle')\n#2 /var/www/vhosts/lindengardens.com.au/httpdocs/library/Zend/View/Abstract.php(336): Zend_View_Abstract->getHelper('headtitle')\n#3 [internal function]: Zend_View_Abstract->__call('headtitle', Array)\n#4 /var/www/vhosts/lindengardens.com.au/httpdocs/application/layouts/scripts/layout.phtml(32): Zend_View->headtitle()\n#5 /var/www/vhosts/lindengardens.com.au/httpdocs/library/Zend/View.php(108): incl in /var/www/vhosts/lindengardens.com.au/httpdocs/library/Zend/Loader/PluginLoader.php on line 406
I get the above error if I dont have something like
$this->view->headTitle("Linden Gardens Rainforest Retreat B&B Mt Dandenong - Error Page");
set in the controller.
Just setting the headTitle fixed the problem - I wonder why that works fine on my local server :/
thanks.