ESRI Resource-Proxy issue - php

I am working on a web application using the esri javascript api. To access cross domain resources I have to install the Resource-Proxy (https://github.com/Esri/resource-proxy). I tried to install the PHP version like described but the test call http://[yourmachine]/PHP/proxy.php?ping ended up with a blank screen and a 500 HTTP error code.
The proxy-verification.php shows that everything should work fine.
Any ideas?

Try setting mustMatch="false" in the proxy.config (just for testing)

try following in proxy.config
<ProxyConfig allowedReferers="*"
mustMatch="false">
<serverUrls>
<serverUrl url="http://path/"
matchAll="true"
username="username"
password="password"
/>
</serverUrls> </ProxyConfig>

Related

PHP / Laravel and Jenkins

I'm Integrating Laravel and Jenkins, and it seems to be working.
The only problem I have is that all my tests are used with base Url : http://localhost.
So All my tests fails because it says:
http://**localhost**/path/to/uri] failed. Received status code [500].
So, all the test fails because I guess I don't know
Where should I define what should be the http://localhost to be the baseUrl I want.
What should I put here, or where should I configure it... I could log ssh to my Jenkins machine and curl my url to see what's the response to see if it is responding well, but I'm quite unsure how should this work...
Any help will be appreciated!
Open TestCase.php which is inside test folder. There you should have protected $baseUrl which should be your application URL.

PHP code working locally but not on Azure

I've implemented a mail delivery service using SparkPost for a website. The code looks like this:
require '/vendor/autoload.php';
use SparkPost\SparkPost; use GuzzleHttp\Client;
use Ivory\HttpAdapter\Guzzle6HttpAdapter;
$httpAdapter = new Guzzle6HttpAdapter(new Client());
$sparky = new SparkPost($httpAdapter, ['key'=>'...']);
[...]
[...]
$results = $sparky->transmission->send($mailarray);
It works just fine locally on WampServer, however when I deploy it to Azure it does not. I don't have access to Azure logs, but I managed to narrow down the problem to one line:
$sparky = new SparkPost($httpAdapter, ['key'=>'...']);
I simply get a 500 error without any other explanation. The weird thing is when I wrap it around a try/catch, I still don't get anything other than a blank screen and a 500 on the console. I suspect it has to do something with /autoload.php not being able to load something.
Any thoughts?
According the requirement of SparkPost lib on Github repo at https://github.com/SparkPost/php-sparkpost/blob/master/composer.json#L18, it need PHP version higher than 5.5. So you can modify the PHP version of your Azure Web Apps, please refer to https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-configure/#how-to-change-the-built-in-php-version for detail steps.

CakePHP : REST API 404 Error

I have build a REST server and trying to make my java application communicate to it.
But I keep getting a 404 error.
When I type in the url in my browser along with the function name like:
[url]/controller/functionname/1.json
it works fine, returning me the right data.
Without the function name:
[url]/controller/1.json
I get this error:
"action 1.json not defined in controller".
I've checked my .htaccess file and routes against a previous version I had build which was working just fine. I can't figure out what the problem might be. Any suggestions?
And oh, I should mention, the earlier version that I talked about was build on windows and this one on ubuntu.

White Page error in magento not able to login

I am freshly installed the magento.. when i am trying to login to the admin it is showing the blank page.. my site url is:http://magento.dotmappers.in i am usin ver 1.8.0
It probably has something to do with cookies.
Go to app/code/core/Mage/Core/Model/Session/Abstract/Varien.php and find following lines and comment out last three lines and try again:
$this->getCookie()->getLifetime(), 
$this->getCookie()->getPath() 
// $this->getCookie()->getDomain(), 
// $this->getCookie()->isSecure(), 
// $this->getCookie()->getHttponly()
I think you have not installed sample data, so pls install sample data from below link
[http://www.magentocommerce.com/knowledge-base/entry/installing-sample-data-archive-for-magento-ce][1]
your site is taking too long to load, there is some issue with the code.
The site can't call the file
`magento.dotmappers.in/js/prototype/prototype.js`
This file is not accessible in browser also, please check if it exits.
Have you installed magento sample data ?

how to configure facebook api in localhost in xampp or wamp server? what is php.ini settings requirement to use it?

I m new to use of facebook api after some googling i found facebook api from this link:
https://github.com/facebook/facebook-php-sdk
after download this package i try to execute example code from this package but it returns an error like:
Fatal error: Uncaught CurlException: 6: Could not resolve host: graph.facebook.com; Host not found thrown in D:\xampp\htdocs\testing\phpdemo\fb\src\base_facebook.php on line 994
to solve this problem i try too much googling but i doesnt get positive result from there.
If anybody know what kind of possibilities for this problem then please help.
here is may be two posibilities like:
1) Do you have any firewalls? The problem is not about configuration is just CURL can't do requests to graph.facebook.com and possible any website. Try disable any firewalls that may be blocking your CURL requests
2) From my experience you can't use facebook APi local, however they have a free host provider,Heroku, try it. Also don't forget to replace YOUR_APP_ID and YOUR_APP_SECRET with your app Data.
You can get help here,https://stackoverflow.com/questions/16294630
From my experience you can't use facebook APi local, however they have a free host provider,Heroku, try it.
Also don't forget to replace YOUR_APP_ID and YOUR_APP_SECRET with your app Data.

Categories