0x2501
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Browsers crash if you click "Add Media" on postsFound the problem: my users were uploading high resolution images (think over 3000px) and this crashed browsers when they were being decoded.
Solution:
cd wp-content/uploads
–Erase all thumbnails
find . * | egrep ‘.-[0-9]{2}x[0-9]{3}.(jpg|png)’ | xargs rm -v
find . * | egrep ‘.-[0-9]{3}x[0-9]{2}.(jpg|png)’ | xargs rm -v
find . * | egrep ‘.-[0-9]{3}x[0-9]{3}.(jpg|png)’ | xargs rm -v
find . * | egrep ‘.-[0-9]{3}x[0-9]{4}.(jpg|png)’ | xargs rm -v
find . * | egrep ‘.-[0-9]{4}x[0-9]{3}.(jpg|png)’ | xargs rm -v
find . * | egrep ‘.-[0-9]{4}x[0-9]{4}.(jpg|png)’ | xargs rm -v–Resize everything to a max of 1024px
find . * | egrep ‘.png’ | xargs sips -Z 1024 *.png
find . * | egrep ‘.jpg’ | xargs sips -Z 1024 *.jpg–From SQL
DELETE FROMwp_postsWHEREpost_titleREGEXP ‘.-[0-9]{2}x[0-9]{3}’
DELETE FROMwp_postsWHEREpost_titleREGEXP ‘.-[0-9]{3}x[0-9]{2}’
DELETE FROMwp_postsWHEREpost_titleREGEXP ‘.-[0-9]{3}x[0-9]{3}’
DELETE FROMwp_postsWHEREpost_titleREGEXP ‘.-[0-9]{3}x[0-9]{4}’
DELETE FROMwp_postsWHEREpost_titleREGEXP ‘.-[0-9]{4}x[0-9]{3}’
DELETE FROMwp_postsWHEREpost_titleREGEXP ‘.-[0-9]{4}x[0-9]{4}’–Rebuild thumbnails within WordPress.
I used AJAX Thumbnail Rebuild… this took a while…Forum: Fixing WordPress
In reply to: Browsers crash if you click "Add Media" on postsI have since disabled ALL plugins and I even deleted over 19,000 references from the database using the following query:
DELETE * FROM
wp_postsWHEREpost_nameNOT LIKE ‘header-png’ ANDpost_parent= 0 ANDpost_typeLIKE ‘attachment’It still crashed Chrome and Firefox whenever I clicked Add Media, and tried to scroll down. Any idea what might be happening?
Forum: Fixing WordPress
In reply to: Image indexing in media libraryIf the images are in your server, you can use that method. I had all of my images separated by year/month, and then used touch to modify the date of the images (this because chown changed the timestamp) per month and year, and then I navigated to each month (we are talking 6 years of images) and added them all to the library.
This ended up duplicating the images (because they get copied to wp-content/uploads, if you have WordPress set that way), but that was ok with me. Once confirmed the images were in the library and working on the blog, I erased the original folder.
Forum: Fixing WordPress
In reply to: Image indexing in media library… what? I was able to use Add from Server to browse outside of the wordpress directory; you only need the proper permissions. I added over 19,000 images using Add from Server.
Forum: Fixing WordPress
In reply to: Image indexing in media libraryYou might wanna look for the plugin “Add from Server”.
Forum: Plugins
In reply to: [Postie] Posts sent to the wrong categoriesMy guess is to change the subjects date from 12-04-2013 to 12/04/2013.
Forum: Plugins
In reply to: [Postie] Posts sent to the wrong categoriesI know, but it would be a nice way to stop further category lookups.
Forum: Plugins
In reply to: [Postie] Posts sent to the wrong categoriesAnyhow, I’ll be marking this one as resolved! Many thanks for all your time!
Forum: Plugins
In reply to: [Postie] Posts sent to the wrong categoriesOh no, I meant something like:
[Cat1][Category2][40]: Subject line goes here!or
-Cat1-Category2-40-: Subject line goes here!
The : stops detection of further categories.
Forum: Plugins
In reply to: [Postie] Posts sent to the wrong categoriesIs there any way to stop category lookup? Say, stop after the first “:”?
Forum: Plugins
In reply to: [Postie] Posts sent to the wrong categoriesIt is off, so we are good, right?
Forum: Plugins
In reply to: [Postie] Posts sent to the wrong categoriesHey Wayne,
Thanks! It did detect the right category, but for some reason it changed the subject from “Chemotaxis Tug-of-war” to “war”, I am guessing this problem has to do with the subject containing dashes. If I change the subject from “[40] Chemotaxis Tug-of-war” to “[40]: Chemotaxis Tug-of-war” it should detect “Chemotaxis Tug-of-war” as the subject, right?
[18-Mar-2013 22:54:46 UTC] Postie: lookup_category: 40 [18-Mar-2013 22:54:46 UTC] Postie: category: found by id 40 [18-Mar-2013 22:54:46 UTC] Postie: lookup_category: of [18-Mar-2013 22:54:47 UTC] Postie: img_placeholder_temp: #img1 [18-Mar-2013 22:54:47 UTC] Postie: No #img1 or #eimg1 found [18-Mar-2013 22:54:47 UTC] Postie: excerpt: [18-Mar-2013 22:54:47 UTC] Postie: Post postie_post filter [18-Mar-2013 22:54:47 UTC] Postie: Post Author: 4 [18-Mar-2013 22:54:47 UTC] Postie: Date: 2013-03-16 14:25:22 [18-Mar-2013 22:54:47 UTC] Postie: Category: 40 [18-Mar-2013 22:54:47 UTC] Postie: Ping Status: closed [18-Mar-2013 22:54:47 UTC] Postie: Comment Status: open [18-Mar-2013 22:54:47 UTC] Postie: Subject: war [18-Mar-2013 22:54:47 UTC] Postie: Postname: war [18-Mar-2013 22:54:47 UTC] Postie: Post Id: 21032 [18-Mar-2013 22:54:47 UTC] Postie: Post Type: post [18-Mar-2013 22:54:48 UTC] PHP Notice: Undefined variable: postAuthorDetails in /Library/WebServer/Documents/wp-content/plugins/postie/postie-functions.php on line 350 [18-Mar-2013 22:54:48 UTC] Postie: send mail [18-Mar-2013 22:54:48 UTC] Postie: send mail: sending success mail [18-Mar-2013 22:54:48 UTC] Postie: Done [18-Mar-2013 22:54:48 UTC] Postie: memory at end of e-mail processing:75198792Forum: Plugins
In reply to: [Postie] Posts sent to the wrong categoriesI looked up the term, and corresponds to “journal” but that only shows up in tags (and not categories). So, does Postie falls back to tags? I thought it only looked for categories.
Forum: Plugins
In reply to: [Postie] Posts sent to the wrong categoriesCategory 165 doesn’t exist =\ It just went with it for no reason it would seem. I’ll turn off that setting and test later on tonight during an off-period.