-
Wordpress 2.8.1 Error – Call to undefined function: _deep_replace()
Posted on July 18th, 2009 No commentsProblem:
When trying to login to the admin section of word press http://www.yoursite.com/wp-admin the following error message appears
Fatal error: Call to undefined function: _deep_replace() in /home/yoursiterooddir/yoursitename.com/wp-includes/pluggable.php on line 884
If you are in fact able to see the login screen and try to login, the above message will appear. If you go back to the wp-admin page directly the dashboard appears. If you try to execute any changes, the message will appear again.
Analysis:
I compared the wp-includes/pluggable.php code on or around line 884 to the code in version 2.8.0. See differences below:
version 2.8.1 of wp-includes/pluggable.php
// remove %0d and %0a from location $strip = array('%0d', '%0a', '%0D', '%0A'); $location = _deep_replace($strip, $location); return $location; } endif;version 2.8.0 of wp-includes/pluggable.php
// remove %0d and %0a from location $strip = array('%0d', '%0a'); $found = true; while($found) { $found = false; foreach( (array) $strip as $val ) { while(strpos($location, $val) !== false) { $found = true; $location = str_replace($val, '', $location); } } } return $location; } endif;Solution:
Comment out 2.8.1 code, then copy and paste 2.8.0 code below it. You can also just copy and past code provided below. Upload to your site and all should be ok until WP releases an update to correct this issue.
// remove %0d and %0a from location /*$strip = array('%0d', '%0a', '%0D', '%0A'); $location = _deep_replace($strip, $location); return $location; } endif;*/// JSTomasi :: CODE from previous version 2.8.0 // remove %0d and %0a from location $strip = array('%0d', '%0a'); $found = true; while($found) { $found = false; foreach( (array) $strip as $val ) { while(strpos($location, $val) !== false) { $found = true; $location = str_replace($val, '', $location); } } } return $location; } endif; -
Image Naming – DAM
Posted on June 25th, 2009 No commentsIn this installment I will guide you through naming your image files. First for the convention, I prefer the following for my image files. Please remember this is my recommendation.
My convention is as follows:
YYYYMMDD_INITIALS_MASTERFILENAME.EXT
20090604_JST_0234.jpg
I use a MAC and use the Aperture. Aperture is a pro application that assists me with DAM. But that’s not the whole story. I Shoot with a Nikon D700, which allows me the name my MASTER Image files with INITIALS_SEQUENTIALNUMBER. When I import images into APERTURE I have a custom setting that looks into the EXIF information and appends to the beginning of the file YYYYMMDD_
This gives the end result of: 20090604_JST_0234.jpg
You may be asking yourself, who cares? What is the benefit of this? Well, first off, computer sort numbers from left to right so if you put the month first, you would end up with all the 06’s for every year next to each other. This is frustrating. The other issue is if you lead with the image sequential number, you will end up with all the 0234’s next to each other. I think you get the point.
If you have more than one shooter at an event it is also beneficial because you always know who took the pictures. Shooting with two people and assuring the images are displayed in sequence is a different challenge. Before you begin shooting the event you have to sync the camera’s internal clocks. After you dump the images, you have to sort by date/time.
Look for steps to set up this naming convention in APERTURE and other image editing applications in future posts.
-
Digital Asset Management (DAM)
Posted on June 24th, 2009 1 commentIt’s Saturday and you just purchased that awesome digital camera and bought the one with the most mega-pixels. You attended a family function and shot a few hundred pics. You go home after the event and dump the pictures onto your computer, clear your memory card and go to bed. The next morning, you get up and go to your computer and try to look at your pictures. But to your dismay the hard drive has crashed. You pick up your camera and try to look at the pictures and remember you deleted them.
We have all experienced or will experience this at some point in our digital lives. In the not so, old days, we used to shoot on film. You would take it to the store or develop it yourselves. You took care to make sure the film canister was secured and kept in a cool dry place. When you picked up your prints, you also received negatives. These where your masters. If you ever needed to re-print a picture, you could always dig up the negative and get a re-print.
Digital photography is no different. Instead of a file we use memory. Instead of developing, we use computer software. Instead of a negative (or master) we use a .jpg, tiff, or RAW file. This is your master. If you loose it. It is gone…. FOREVER! So how do you guard against loss of your family memories. Digital Asset Management or DAM.
There are many different approaches to DAM. I will not bore you with all of them. If you would like a literal definition and more info on DAM click here. Nor will I dive into every program out there that can do it for you. I am going to simply walk you through some simple steps anyone can take to safeguard pictures, video or any other data you might deem important.
Here are some simple steps to a manual DAM process:
- Import pictures from camera into the computer
- DO NOT ERASE card yet
- Go through images using your favorite photo application and remove/delete any images that are not well exposed or just plain out of focus.
- Backup the remaining images to a CD, DVD or external hard drive.
- Verify the data (make sure all images are there)
- Label the media with the date and title. I always write YYYYMMDD, this way it is easy to sort through media weather on my computer or in a stack of disks. In the case of an external hard drive, label the folder using this method. It is also a good idea to have 2 drives. One on-site and one off-site. Swap them out periodically.
- Place media in a protective sleeve.
- Place media in a cool/dry place (just like you used to with negatives). I personally like to save 2 copies and give one to a family member or friend. This way I am covered if there is a major disaster or loss.
- Now you can delete the images off the card. It is always a good idea to leave the images intact, until your are completely sure you have saved the information.
- Rest assured, you have done your best to protect your data.
In future posts, I will go more in depth into on-line backup, some applications I like to uses, and how I use them.
JT
NEXT INSTALLMENT WIL BE ON DAM – FILE NAMING


