This issue was originally posted here: http://chrisshattuck.com/blog/using-evernote-and-drupal-ultimate-bloggin...

This is great news, I was thinking about a similar approach and haven't had enough time to develop the module, so I'm very happy to see that you've done it.

Downloaded and tested the module. Looks like there is an error in evernote.module:28 where you have ":" as the path separator which should be ";"

Once I've corrected this I was able to add an evernote account but I can't add a feed. When I call that page I get a WSOD and the PHP log shows

Uncaught exception 'TTransportException' with message 'THttpClient: Could not connect to www.evernote.com:443/edam/user' in D:\Drupal6\sites\all\libraries\evernote\transport\THttpClient.php:187

I'm not sure where this is coming from. Maybe my web server is blocking outgoing traffic to evernote.com? I doubt it.

CommentFileSizeAuthor
#2 tree.txt4.97 KBjurgenhaas
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chrisshattuck’s picture

It sounds like this is an issue with the Pear Request.php library. Did you create your own API package, or download the zip from http://chrisshattuck.com/blog/instructions-setting-evernote-library-ever...?

Just to make sure, I did a fresh install on two separate sites and servers, and didn't run into either of these issues. I'd love to know what's going on here, but I'll need to be able to re-create it somewhere to dig in.

Anyone else having these issues?

jurgenhaas’s picture

FileSize
4.97 KB

Thanks for your quick reply. I've ddouble checked your installation instructions and I think all is as it should be. To cross check I've created a dir and file list of the evernote library on my server. It's attached. Please let me know if you need to know anything else.

chrisshattuck’s picture

Did you use the zip file from the site, or did you put together your own? If you put together your own, try the zip file and let me know if you still are running into the problem.

jurgenhaas’s picture

Originally I used the API zip from evernote.com plus all the additional downloads from PEAR. That caused the error described.

Now, I replaced all that with the zip file from your blog and I get a different error which says that require_once can't load autoload.php although the file is in the same place as before. Extracting the ZIP however mentioned something about encryption keys, so maybe the files are somehow packed and/or encrypted?

Summit’s picture

Subscribing, greetings, Martijn

chrisshattuck’s picture

There shouldn't be any encryption going on unless my Mac is amazing and does that kind of thing without asking.

Can you post the exact error? And can you check in your sites/all/libraries/evernote directory to make sure there is an autoload.php file there?

Are you on a Linux or Windows machine?

Thanks,
Chris

jurgenhaas’s picture

I'm on Windows and the original error is:

[16-Jul-2010 07:59:28] PHP Fatal error:  require_once() [function.require]: Failed opening required 'autoload.php' (include_path='.;C:\xampp\php\pear\;sites/all/libraries/evernote') in D:\Drupal6\modules\evernote\evernote.module on line 29

I've then included some debugging into evernote.module

  $file = 'sites/all/libraries/evernote/autoload.php';
  $exists = file_exists($file);
  $incpath = ini_get("include_path");
  Throw new Exception("Debug: file $file exists: $exists and the include_path is $incpath"); 

and received this exception:

  thrown in D:\Drupal6\modules\evernote\evernote.module on line 32
#6 {main}
#5 D:\Drupal6\index.php(18): menu_execute_active_handler()
#4 D:\Drupal6\includes\menu.inc(348): evernote_add_page('evernote_feed_f...', Array)
#3 D:\Drupal6\modules\evernote\evernote.module(161): drupal_get_form()
#2 D:\Drupal6\includes\form.inc(102): drupal_retrieve_form(Array)
#1 D:\Drupal6\includes\form.inc(372): evernote_feed_form()
#0 D:\Drupal6\modules\evernote\evernote.module(415): evernote_includes()
Stack trace:
[16-Jul-2010 08:07:34] PHP Fatal error:  Uncaught exception 'Exception' with message 'Debug: file sites/all/libraries/evernote/autoload.php exists: 1 and the include_path is .;C:\xampp\php\pear\;sites/all/libraries/evernote' in D:\Drupal6\modules\evernote\evernote.module:32

So that shows that the file does exist but can't be read by require_once("autoload.php");.