HI, I have a debian server.
I am using xmpphp library for bot development.
When i create a bot using xmpp file its working fine but when i try to use bosh it generates a fatal error.
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /var/www/testlib/XMPPHP/BOSH.php:75
Stack trace:
0 /var/www/testlib/XMPPHP/BOSH.php(75): SimpleXMLElement->__construct('')
1 /var/www/testlib/index.php(14): XMPPHP_BOSH->connect('myserver')
2 {main}
thrown in /var/www/testlib/XMPPHP/BOSH.php on line 75
Please help me on this
Thanks
Not sure but could it be related to this known bug:
http://bugs.php.net/bug.php?id=42682
Related
I am trying to implement basic functionality of the Stripe API, I get 500 Internal Server Error for some reason when I require the Stripe.php file that you have to require...When I comment the require out the error goes away but obviously I can not use the API then..
Basic require...shows error in the Modal Log
require_once('/php/Stripe.php');
I checked the server error and it gave me this back
Fatal error: Uncaught exception 'Exception' with message 'Stripe needs the Multibyte String PHP extension.' in /php/Stripe.php:13 Stack trace: #0 /home/stripepost.php(4): require_once() #1 {main} thrown in /php/Stripe.php on line 13
This all comes from just requiring the file..
Is your 'Stripe.php' file really located in '/php' or is it in a folder called 'php' local to your code?
Current code:
require_once('/php/Stripe.php');
I think the problem is this. You probably mean to use something relative to your code base. Like this:
require_once('./php/Stripe.php');
I found out the answer I didn't have the mbstring enabled on my server...whooops
While executing this code in PHP:
$db_nosql = new PDO('cassandra:host=127.0.0.1;port=9160;cqlversion=3.0.0');
I got a error message:
Fatal error: Uncaught exception 'PDOException' with message
'CQLSTATE[HY000] [2] Cannot execute/prepare CQL2 statement since the
CQL has been set to CQL3(This might mean your client hasn't been
upgraded correctly to use the new CQL3 methods introduced in Cassandra
1.2+).'
in /home/web/site/Test/page.php:202 Stack trace: #0
/home/web/site/Test/page.php(202): PDO->exec('USE mailing') #1 {main}
thrown in /home/web/site/Test/page.php on line 202
I don't know what I am supposed to do in this situation. Does that means that the syntax is incorrect ?
Thank you.
Can try the library. It uses the native protocol and does not require other libraries.
I'm getting errors while running Google Glass quick starter PHP project using Mirror API. I've seen a similar question in the forum but in my case i've enabled the Mirror api in the Google API console. We are working in a group using a new Gmail account(that aptly describes our group) which has been tied up to our Glass very recently.
In the error log it says:
Uncaught exception 'Google_ServiceException' with message 'Error calling GET
https://www.googleapis.com/mirror/v1/timeline?maxResults=3&key=xxxxxxxxxxx: (403)
Access Not Configured'
Any help in this regard would be very much appreciated.
Thanking the experts in advance.
The complete error log:
PHP Fatal error: Uncaught exception 'Google_ServiceException' with message 'Error calling GET https://www.googleapis.com/mirror/v1/timeline?maxResults=3&key=xxxxxxxxxxxxxx: (403) Access Not Configured' in /var/www/mirror-quickstart-php/google-api-php-client/src/io/Google_REST.php:66\nStack trace:\n#0 /var/www/mirror-quickstart-php/google-api-php-client/src/io/Google_REST.php(36): Google_REST::decodeHttpResponse(Object(Google_HttpRequest))\n#1 /var/www/mirror-quickstart-php/google-api-php-client/src/service/Google_ServiceResource.php(186): Google_REST::execute(Object(Google_HttpRequest))\n#2 /var/www/mirror-quickstart-php/google-api-php-client/src/contrib/Google_MirrorService.php(434): Google_ServiceResource->__call('list', Array)\n#3 /var/www/mirror-quickstart-php/index.php(142): google_TimelineServiceResource->listTimeline(Array)\n#4 {main}\n thrown in /var/www/mirror-quickstart-php/google-api-php-client/src/io/Google_REST.php on line 66
And in the index.php line 142 shows:
//Load cool stuff to show them.
$timeline = $mirror_service->timeline->listTimeline(array('maxResults'=>'3'));
Just starting out with shopfiy and this is my first ever stack post!
I'm trying to setup Sandeeps Shetty's "Simple Shopify API client in PHP" found here:
https://github.com/sandeepshetty/shopify_client
I keep seeing the following error in my logs (i've removed full paths and api creds):
PHP Fatal error: Uncaught exception 'ShopifyClientCurlException' with
message 'SSL connection timeout' in
shopify_client/shopify_client.php:67\nStack trace:\n#0
shopwriters/shopify_client/shopify_client.php(36): shopify_api('POST',
'https://baumbac...', NULL, Array)\n#1
/home/matt/public_html/projects/shopwriters/public_html/index.php(20):
oauth_access_token('shopurl...', 'xxx...', 'xxx...', 'xxx...')\n#2
{main}\n thrown in shopify_client/shopify_client.php on line 67
Anyone had a similar issue? I'm on Ubuntu 12.04.
The fix for this problem was adding:
CURLOPT_SSLVERSION => 3
to wcurl.php in the $default_curl_opts array.
Thanks to all who helped out!
I get an error message in the bottom of the page :
Fatal error: Uncaught exception 'Exception' with message
'Serialization of 'Mage_Core_Model_Layout_Element' is not allowed' in
[no active file]:0 Stack trace: #0 {main} thrown in [no active file]
on line 0
Problem is i don't get any file or line number.
Have you seen this before? Where can I start to fix it?
I searched on google and found this answer but the response is not valid in my case. Didn't find any other response, probably because of large number of websites that display this error.
http://magentophp.blogspot.com/2011/02/magento-enterprise-full-page-caching.html
This might clarify the Magento Full caching
Regards Bernd