Zend_Mail_Storage_Pop3 Send failed - php

I have created a script using the Zend Framework. The goal is that the script checks the e-mail. When I connect to a pop3 account that isn't on the same domain as the webhosting (f.ex hosting is on arkreport.be and the e-mail is info#my-domain.com), it works. But when I connect to a mail account on the same hostingaccount, it wouldn't work.
Could this be a server problem? My webhosts asks me more information about the way I connect, but i can't give them more than a short explanation of all used codes.
Is there an alternative perhaps. The emailuseraccount has a % in it, perhaps that is a problem... I don't know :)
This is the error
Fatal error: Uncaught exception 'Zend_Mail_Protocol_Exception' with message 'read failed - connection closed?' in /var/www/html/library/Zend/Mail/Protocol/Pop3.php:174 Stack trace: #0 /var/www/html/library/Zend/Mail/Protocol/Pop3.php(222): Zend_Mail_Protocol_Pop3->readResponse(false) #1 /var/www/html/library/Zend/Mail/Protocol/Pop3.php(282): Zend_Mail_Protocol_Pop3->request('PASS passw') #2 /var/www/html/library/Zend/Mail/Storage/Pop3.php(191): Zend_Mail_Protocol_Pop3->login('facturen%arkrep...', 'oj1rak') #3 /var/www/html/application/default/controllers/CronController.php(76): Zend_Mail_Storage_Pop3->__construct(Array) #4 /var/www/html/library/Zend/Controller/Action.php(513): CronController->checkmailAction() #5 /var/www/html/library/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('checkmailAction') #6 /var/www/html/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #7 /var/www/h in /var/www/html/library/Zend/Mail/Protocol/Pop3.php on line 174

Your host is probably rejecting the bad character "%".
Make a new username without special characters like "%" use only letters.

Related

Fatal error: Uncaught phpmailerException

I'm using woocommerce, and other plugins to allow users to add products. When a user adds a new product, the server fails in sending notification, giving this error:
Fatal error: Uncaught phpmailerException:
Invalid address: in /srv/users/serverpilot/apps/xxxx/public/wp-includes/class-phpmailer.php:946
Stack trace:
#0 /srv/users/serverpilot/apps/wordpressthm/public/wp-includes/pluggable.php(352): PHPMailer->setFrom('', 'OneSocial', false)
#1 /srv/users/serverpilot/apps/xxxx/public/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(466): wp_mail('test#hot...', '[Test Product...', '<!DOCTYPE html>...', Array, Array)
#2 /srv/users/serverpilot/apps/xxxx/public/wp-content/plugins/wc-vendors/classes/admin/emails/class-wc-notify-admin.php(81): WC_Email->send('test#hot...', '[The Hockey Mov...', '<!DOCTYPE html>...', 'Content-Type: t...', Array)
#3 /srv/users/serverpilot/apps/xxxx/public/wp-content/plugins/wc-vendors/classes/admin/emails/class-emails.php(40): WC_Email_Notify_Admin->trigger('', Object(WP_Post))
#4 /srv/users/serverpilot/apps/xxxx/public/wp-includes/plugin.php(524): WCV_Emails->trigger_new_product('pending' in /srv/users/serverpilot/apps/xxxx/public/wp-includes/class-phpmailer.php on line 946
The server is set up with digital ocean
The answer is available in the Exception. The email address of the recepient of the notification or the senders address are somehow invalid.

Issue with createFulfillmentOrder Amazon MWS

I'm getting the following error while creating an order for canadian postal code: AB T5T 6V7.
PHP Fatal error: Uncaught exception 'FBAOutboundServiceMWS_Exception' with message 'Value for parameter DestinationAddress.PostalCode is invalid. Reason: InvalidValue.' in /Amazon/FBAOutboundServiceMWS/Client.php:970
Stack trace:
#0 /Amazon/FBAOutboundServiceMWS/Client.php(937): FBAOutboundServiceMWS_Client->_reportAnyErrors('<ErrorResponse ...', '400', Object(FBAOutboundServiceMWS_Model_ResponseHeaderMetadata))
#1 /Amazon/FBAOutboundServiceMWS/Client.php(178): FBAOutboundServiceMWS_Client->_invoke(Array)
#2 /Amazon/functions.inc.php(252): FBAOutboundServiceMWS_Client->createFulfillmentOrder(Object(FBAOutboundServiceMWS_Model_CreateFulfillmentOrderRequest))
#3 /amazon_automation.php(200): invokeCreateFulfillmentOrder(Object(FBAOutboundServiceMWS_Client), Object(FBAOutboundServiceMWS_Model_CreateFulfillmentOrderRequest))
#4 {main}
thrown in /Amazon/FBAOutboundServiceMWS/Client.php on line 970
But it is working for other Zipcodes of Canada.
Can anyone help me on this if I need to change some settings in my sellercentral?
I needed to explicitly check the state and resolve it before sending to FBA.

how to connect with salesforce using php?

I am trying to connect with Salesforce using below lib and getting below issue and unable to find how
to enable the API as per Error.
https://github.com/developerforce/Force.com-Toolkit-for-PHP
Code:-
<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);
require_once ('soapclient/SforcePartnerClient.php');
$mySforceConnection = new SforcePartnerClient();
$mySoapClient = $mySforceConnection->createConnection("soapclient/partner.wsdl.xml");
$mylogin = $mySforceConnection->login("xyz#gmail.com", "pass#xa9Ur9xMD6qqdRhdmLBuiRev");
var_dump($mylogin);die;
?>
Fatal error: Uncaught SoapFault exception: [sf:API_DISABLED_FOR_ORG] API_DISABLED_FOR_ORG:
API is not enabled for this Organization or Partner in
/var/www/mssdev/force/soapclient/SforceBaseClient.php:168 Stack trace:
#0 /var/www/mssdev/force/soapclient/SforceBaseClient.php(168): SoapClient->__call('login', Array)
#1 /var/www/mssdev/force/soapclient/SforceBaseClient.php(168): SforceSoapClient->login(Array)
#2 /var/www/mssdev/force/index.php(11): SforceBaseClient->login('xyz#gm...', 'fas#xa9Ur9...')
#3 {main} thrown in /var/www/mssdev/force/soapclient/SforceBaseClient.php on line 168
You are probably using Salesforce Gorup or Professional edition where the API is not available.
Other scenario (if You have other edition tham mentioned above) that the API is not enabled for Your user. However from the error message the most possible is scenario #1.
Use the developer account and the issue has solved.

How to test google market place api with php

I'm trying to use this api http://code.google.com/p/android-market-api/. I would like to get some that from play store. like App name, description, screenshots and download rating(total downloads, week downloads....)
I'm using the php version. I uploaded all the code to my personal server. www.example.com/test/.
Should I configure anything else in addition of local.php, email and password fields? I only did that.
I have this error:
Uncaught exception 'Exception' with message 'HTTP request returned code 400' in /homepages/31/d229886149/htdocs/carlos/test/Market/MarketSession.php:212 Stack trace:
#0 /homepages/31/d229886149/htdocs/carlos/test/Market/MarketSession.php(160): MarketSession->executeRawHttpQuery('??????DQAAAMkAA...')
#1 /homepages/31/d229886149/htdocs/carlos/test/Market/MarketSession.php(147): MarketSession->executeProtobuf(Object(Request))
#2 /homepages/31/d229886149/htdocs/carlos/test/examples/test_categories.php(15): MarketSession->execute(Object(Request_RequestGroup))
#3 {main} thrown in /homepages/31/d229886149/htdocs/carlos/test/Market/MarketSession.php
on line 212
Thank you.
After that I would like to implement it with codeIgniter
try with '0123456789123456' as an ANDROID_DEVICEID
define('GOOGLE_EMAIL','someone#gmail.com');
define('GOOGLE_PASSWD','SomePassword');
define('ANDROID_DEVICEID','0123456789123456');

Amazon soap interface using php

Hi i am trying to use soap to get results from amazon, and i havent tried this before so i was trying some sample code. The problem is i get an error.
the code is this:
<?php
#Use the NuSOAP php library
//require_once('lib/nusoap.php');
$params->AWSAccessKeyId = AMAZON_API_KEY;
$params->Request->SearchIndex = 'Books';
$params->Request->Keywords = 'php5';
$amazon = new SoapClient('http://webservices.amazon.com/AWSECommerceService /AWSECommerceService.wsdl');
$result = $amazon->itemSearch($params);
echo $result;
?>
and this is the error i get when i run it. thanx for your time
Fatal error: Uncaught SoapFault exception: [aws:Client.MissingParameter] The request must contain the parameter Signature. in C:\wamp\www\amasearch.php:11 Stack trace: #0 [internal function]: SoapClient->__call('itemSearch', Array) #1 C:\wamp\www\amasearch.php(11): SoapClient->itemSearch(Object(stdClass)) #2 {main} thrown in C:\wamp\www\amasearch.php on line 11
Weird. The WSDL doesn't have a signature parameter for any type. BUT, I found this in Amazon dev forums. Recommend you to check it out (also, if you develop using amazon services, keep that resource at hand
https://forums.aws.amazon.com/ann.jspa?annID=483
Looks like security gates for services are now taller and bigger, mate
EDIT: This question link to some example in C#. Maybe it can help you out Amazon (AWS) - The request must contain the parameter Signature
And this is an example in AWS forums with PHP https://forums.aws.amazon.com/message.jspa?messageID=149715

Categories