How To Increase WordPress Memory After PHP Fatal error: Allowed memory size exhausted

Author: , February 13th, 2017

PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 277644940 bytes) in /volumes/data/customer/wordpress/wp-content/plugins/searchwp/vendor/pdfparser/vendor/smalot/pdfparser/src/Smalot/PdfParser/Parser.php on line 72, referer: http://dev.thecustomer.com/index.php?swpnonce=1387006674.5392169952592578125000 To increase the PHP memory limit to 256MB, edit wp-config.php and add the following just before the line that says “That’s all, stop editing! Happy blogging.”: 1 define( ‘WP_MEMORY_LIMIT’, ’256M’ ); define( ‘WP_MEMORY_LIMIT’, […]

How To Fix MySQL Remote Login Errors

Author: , August 25th, 2016

In this case I had done a restore from a MySQL 5.1 server to a MySQL 5.6 server. That was not too smart, because it broke the mysql database table structures and prevented me from logging in remotely. Local login worked both via the socket and TCP. mysql -u root -p -h remoteHostName Enter password: […]

How To Fix “No Public Key Available” Errors for apt-get update on Debian

Author: , June 29th, 2016

root@myHost # apt-get update Hit http://cloudfront.debian.net wheezy Release.gpg Hit http://cloudfront.debian.net wheezy-updates Release.gpg Hit http://cloudfront.debian.net wheezy-backports Release.gpg Hit http://cloudfront.debian.net wheezy Release Hit http://cloudfront.debian.net wheezy-updates Release Hit http://cloudfront.debian.net wheezy-backports Release Hit http://cloudfront.debian.net wheezy/main Sources Hit http://cloudfront.debian.net wheezy/main amd64 Packages Hit http://cloudfront.debian.net wheezy/main Translation-en Hit http://cloudfront.debian.net wheezy-updates/main Sources Hit http://security.debian.org wheezy/updates Release.gpg Get:1 http://cloudfront.debian.net wheezy-updates/main amd64 Packages/DiffIndex [2,488 […]

How To Fix Apple iCloud Mail Errors on Snow Leopard

Author: , August 7th, 2014

Some actions taken while the account “iCloud” was offline could not be completed online. Mail has undone actions on some messages so that you can redo the actions when online. Mail has saved other messages in mailbox “Recovered Messages (iCloud)” in “On My Mac” so that you can complete the actions when online. Step 1. […]

How To Fix Netflix DRM Error N8156-6013 on MacOSX

Author: , June 16th, 2013

I tried to use my new Harman Kardon bluetooth headphones with Netflix running on Firefox and got the following message: “Digital Rights Management Error DRM N8156-6013, please call Netflix support” Netflix uses Microsoft Silverlight for DRM. Silverlight creates a licensing file that identifies your computer hardware. This file needs to be deleted, and will be […]

How To Create a Code Block in PHP for Error Handling

Author: , October 19th, 2012

The do/while statement is sometimes used to break out of a block of code when an error condition occurs. For example: 1 2 3 4 5 6 do {   // do some stuff   if ($error_condition)     break;   // do some other stuff } while (false); do { // do some stuff […]

How To Prevent Fatal Error Cannot Redeclare Function In PHP

Author: , August 8th, 2012

1 2 3 4 5 if ( ! function_exists(’yourFunctionName’) ) {   function yourFunctionName() {     //your function definition goes here   } } if ( ! function_exists(‘yourFunctionName’) ) { function yourFunctionName() { //your function definition goes here } }