Title: Fatal Error. Failed to write cache
Last modified: December 3, 2017

---

# Fatal Error. Failed to write cache

 *  Resolved [maximaexchen](https://wordpress.org/support/users/maximaexchen/)
 * (@maximaexchen)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-failed-to-write-cache/)
 * On saing the plugin I get following error:
 *     ```
       Uncaught Exception: Failed to write cache in 
       /wp-content/plugins/woo-paypalplus/lib/PayPal/Cache/AuthorizationCache.php:83 Stack 
       trace: 
       #0 
       wp-content/plugins/woo-paypalplus/lib/PayPal/Auth/OAuthTokenCredential.php(161): 
       Inpsyde\Lib\PayPal\Cache\AuthorizationCache::push(Array, 'xxxxxxxx', 'xxxxxxxxxx', xxxxxxxx, xxxxxxx) 
       #1 wp-content/plugins/woo-paypalplus/lib/PayPal/Handler/RestHandler.php(82): 
       Inpsyde\Lib\PayPal\Auth\OAuthTokenCredential->getAccessToken(Array) 
       #2
       wp-content/plugins/woo-paypalplus/lib/PayPal/Transport/PayPalRestCall.php(70): 
       Inpsyde\Lib\PayPal\Handler\RestHandler->handle(Object(Inpsyde\Lib\PayPal\Core\PayPalHttpConfig), '', Array) 
       #3 
       wp-content/plugins/woo-paypalplus/lib/PayPal/Common/PayPalResourceModel.php(102): 
       Inpsyde\Lib\PayPal\Transport\PayPalRestCall->execute(Array, '/v1/payments/p in
       wp-content/plugins/woo-paypalplus/lib/PayPal/Cache/AuthorizationCache.php on line 83
       ```
   
 * I var_dumped cachePath:
 *     ```
       Use of undefined constant cachePath - assumed 'cachePath' in wp-content/plugins/woo-paypalplus/lib/PayPal/Cache/AuthorizationCache.php on line 59
       string(9) "cachePath" 
       ```
   
 * Any suggestions?
    -  This topic was modified 8 years, 6 months ago by [maximaexchen](https://wordpress.org/support/users/maximaexchen/).

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Support [Andreas W.](https://wordpress.org/support/users/aweissinpsyde/)
 * (@aweissinpsyde)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-failed-to-write-cache/#post-9747374)
 * Hallo maximaexchen,
 * Make sure the web server is allowed to write in the wp-content directory. Can
   you try manually create cache folder (via FTP) and make sure it’s writable (0775)?
 *  Thread Starter [maximaexchen](https://wordpress.org/support/users/maximaexchen/)
 * (@maximaexchen)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-failed-to-write-cache/#post-9747581)
 * Ok. Jetzt habe ich erst gesehen, dass einem auch in deutsch geholfen wird. 😉
 * Danke für den Tip. Die Rechte haben nicht gestimmt. Plugin Konfiguration konnte
   ich nun speichern.
 * Jetzt habe ich aber ein anderes Problem.
    Habe Paypal im Sandbox-Modus. Im Bestell
   vorgang kann ich die verschiedenen Zahlungsmöglichkeiten des Plugins auswählen(
   Paypal, Lastschrift, Kreditkarte…. ). Wenn ich PayPal auswähle, komme ich einfach
   zur Bestellübersichtseite ohne eine Interaktion mit PayPal. Oder geht das im 
   Sandboxverfahren nicht? Würde aber ja keinen Sinn machen.
 * Danke im voraus für einen weiteren Tip.
    Marcus
 *  Plugin Support [Andreas W.](https://wordpress.org/support/users/aweissinpsyde/)
 * (@aweissinpsyde)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-failed-to-write-cache/#post-9747756)
 * Hallo Marcus,
 * deswegen hatte ich “Hallo”auch in deutsch geschrieben 🙂
 * Sind in den PPP Einstellungen die Sandbox Live ID und Secret ID hinterlegt? Wurde
   dein Account von PayPal Plus freigeschaltet? Ist eine Experience Profile ID vorhanden?
   Felder wie z.B. Firmenname, Logo etc. müssen ausgefüllt sein, da ansonsten PP
   die Experience Profile ID nicht generiert.
 *  Thread Starter [maximaexchen](https://wordpress.org/support/users/maximaexchen/)
 * (@maximaexchen)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-failed-to-write-cache/#post-9747774)
 * Hallo Andreas,
 * danke für die schnelle Antwort!
    Ich werde die Angaben prüfen. Mir wurden bisher
   nur “Sandbox account”, “Client ID” und “Secret” zur Verfügung gestellt.
 * Gruß Marcus
 *  Plugin Support [Andreas W.](https://wordpress.org/support/users/aweissinpsyde/)
 * (@aweissinpsyde)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-failed-to-write-cache/#post-9748142)
 * Hallo Marcus,
 * die Experience Profile ID ist am wichtigsten. Diese bekommt aber nur mit den 
   Einträgen bei Logo und Firmennamen. Das logo bzw. der Name solle nicht zu lang
   sein und auch sollte diese via https eingebunden werden.
 *  Thread Starter [maximaexchen](https://wordpress.org/support/users/maximaexchen/)
 * (@maximaexchen)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-failed-to-write-cache/#post-9751101)
 * Hallo Andreas,
 * so, nun habe ich eigentlich alles.
    Seite läuft auf https. Sandbox Client ID 
   Sandbox Secret ID Sandbox Experience Profile ID PayPal Checkout Logo mit https.
 * Trotzdem läuft der Bestellprozess durch bis zur Bestellübersicht ohne eine Interaktion
   mit PayPal. Auch die Bestellbestätigung wird versendet.
    Ich habe auch schon 
   ins log gesehen. Habe nichts auffälliges erkennen können, auch wenn ich natürlich
   nicht weiß was bei Fehler/Erfolg drinnen stehen sollte…
 * Noch eine Idee nach was ich schauen kann?
 * Vielen Dank im voraus.
    Marcus
 *  Plugin Support [Andreas W.](https://wordpress.org/support/users/aweissinpsyde/)
 * (@aweissinpsyde)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-failed-to-write-cache/#post-9751160)
 * Hallo maximaexchen,
 * kannst du bitte einmal den WooCommerce Statusbericht, sowie ein Screenshot der
   PPP Einstellungen und auch das PPP Log an [paypalplus@inpsyde.com](https://wordpress.org/support/topic/fatal-error-failed-to-write-cache/paypalplus@inpsyde.com?output_format=md)
   senden.
 * Evtl. löscht du das PPP Log, nimmst eine Bestellung vor und sendest uns dann 
   das neu generiert Log.
 * Vielen Dank
 *  Thread Starter [maximaexchen](https://wordpress.org/support/users/maximaexchen/)
 * (@maximaexchen)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-failed-to-write-cache/#post-9751350)
 * Hallo Andreas,
 * die Mail ist raus.
    Vielen Dank!
 *  Plugin Support [Andreas W.](https://wordpress.org/support/users/aweissinpsyde/)
 * (@aweissinpsyde)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-failed-to-write-cache/#post-9762756)
 * Problem wurde gelöst

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Fatal Error. Failed to write cache’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-paypalplus_a2c4dd.svg)
 * [PayPal Plus for WooCommerce](https://wordpress.org/plugins/woo-paypalplus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-paypalplus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-paypalplus/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-paypalplus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-paypalplus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-paypalplus/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Andreas W.](https://wordpress.org/support/users/aweissinpsyde/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-failed-to-write-cache/#post-9762756)
 * Status: resolved