Skip to content
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

Undefined index in Client.php #44

Open
awesomeousPrime opened this issue Dec 26, 2019 · 0 comments
Open

Undefined index in Client.php #44

awesomeousPrime opened this issue Dec 26, 2019 · 0 comments

Comments

@awesomeousPrime
Copy link

awesomeousPrime commented Dec 26, 2019

We are getting the following error for one customer so far :

ErrorException
Undefined index: 31ec... (GUID)

In the following lines starting at src/Evernote/Client.php:315

foreach ($linkedNotebooks as $linkedNotebook) {
    if (array_key_exists($linkedNotebook->shareKey, $sharedBusinessNotebooks)) {
        $sharedNotebook = $sharedBusinessNotebooks[$linkedNotebook->shareKey];
        $businessNotebook = $businessNotebooksGuids[$sharedNotebook->notebookGuid];
...

It looks like a notebook was found in linkedNotebooks that was also available in sharedBusinessNotebooks but was not found in businessNotebooksGuids which comes from :

$businessNotebooks = $this->getBusinessLinkedNotebooks();

foreach ($businessNotebooks as $businessNotebook) {
    $businessNotebooksGuids[$businessNotebook->guid] = $businessNotebook;
}

I'm not certain of the intent and am wondering if the problem is that the linked notebook wasn't in the business link notebook array or if expecting it to always be there is the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant