New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Class 'jamesiarmes\\PhpEws\\Client' not found #388
Comments
Did you adjust the |
Yes, I would have a file not found otherwise |
Do I need to put my php file in a specific directory? |
If useful I can add that the apache log says that the error is related to the "$version = Client::VERSION_2016;" command, no error is provided for the "use \jamesiarmes\PhpEws\Client;" command |
|
Here it is:
|
I had the same issue.
If yes did you noticed a message:
If yes then maybe you do not have the php-curl package installed? |
In your issue summary, you said you had installed this library via composer, but your |
I'm sorry, I'm not used to install PHP libraries from GitHub. I thought that composer installed all the files needed to use the library. [:error] [pid 18769] [client 151.28.230.122:54590] PHP Fatal error: Uncaught SoapFault exception: [a:ErrorInvalidServerVersion] The specified server version is invalid. in /home/web/php-ews-master/src/Client.php:1631\nStack trace:\n#0 /home/web/php-ews-master/src/Client.php(1631): SoapClient->__call('FindItem', Array)\n#1 /home/web/php-ews-master/src/Client.php(1631): jamesiarmes\PhpNtlm\SoapClient->FindItem(Object(jamesiarmes\PhpEws\Request\FindItemType))\n#2 /home/web/php-ews-master/src/Client.php(670): jamesiarmes\PhpEws\Client->makeRequest('FindItem', Object(jamesiarmes\PhpEws\Request\FindItemType))\n#3 /home/web/connect_to_exchange.php(78): jamesiarmes\PhpEws\Client->FindItem(Object(jamesiarmes\PhpEws\Request\FindItemType))\n#4 {main}\n thrown in /home/web/php-ews-master/src/Client.php on line 1631 |
I have changed the Version of Outlook and I get another error: [:error] [pid 18767] [client 151.28.230.122:54851] PHP Fatal error: Uncaught SoapFault exception: [a:ErrorSchemaValidation] The request failed schema validation: The required attribute 'Traversal' is missing. in /home/web/php-ews-master/src/Client.php:1631\nStack trace:\n#0 /home/web/php-ews-master/src/Client.php(1631): SoapClient->__call('FindItem', Array)\n#1 /home/web/php-ews-master/src/Client.php(1631): jamesiarmes\PhpNtlm\SoapClient->FindItem(Object(jamesiarmes\PhpEws\Request\FindItemType))\n#2 /home/web/php-ews-master/src/Client.php(670): jamesiarmes\PhpEws\Client->makeRequest('FindItem', Object(jamesiarmes\PhpEws\Request\FindItemType))\n#3 /home/web/connect_to_exchange.php(78): jamesiarmes\PhpEws\Client->FindItem(Object(jamesiarmes\PhpEws\Request\FindItemType))\n#4 {main}\n thrown in /home/web/php-ews-master/src/Client.php on line 1631 |
composer will install all of the dependencies for your project, so you need to add php-ews to your Have you altered the example you are trying to use? You said that you're using one of the find examples, but you didn't specify which one. You may want to have a look at #385, as it may be similar to the issue you are now having. |
The example I used is "examples/message/find.php". |
I generate the "vendor" folder from composer, but the folder "PhpEws" in folder "jamesiarmes" does not generate, so I don't have any Client Object. |
Version (e.g. 1.0.0 dev-master): installed with composer
Microsoft Exchange version: 2010 SP3 RU12
Description of problem: I'm trying to use an example PHP file but I get "Class 'jamesiarmes\PhpEws\Client' not found" error
Example request:
I'm using the find.php example.
I put the file in the home directory of the LAMP server (the same with the "vendor" directory)
Example response:
Nothing happens, in the Apache log file I see the "Class 'jamesiarmes\PhpEws\Client' not found" error
Additional details:
The text was updated successfully, but these errors were encountered: