Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter 0x2501

    (@0x2501-1)

    Found 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 FROM wp_posts WHERE post_title REGEXP ‘.-[0-9]{2}x[0-9]{3}’
    DELETE FROM wp_posts WHERE post_title REGEXP ‘.-[0-9]{3}x[0-9]{2}’
    DELETE FROM wp_posts WHERE post_title REGEXP ‘.-[0-9]{3}x[0-9]{3}’
    DELETE FROM wp_posts WHERE post_title REGEXP ‘.-[0-9]{3}x[0-9]{4}’
    DELETE FROM wp_posts WHERE post_title REGEXP ‘.-[0-9]{4}x[0-9]{3}’
    DELETE FROM wp_posts WHERE post_title REGEXP ‘.-[0-9]{4}x[0-9]{4}’

    –Rebuild thumbnails within WordPress.
    I used AJAX Thumbnail Rebuild… this took a while…

    Thread Starter 0x2501

    (@0x2501-1)

    I have since disabled ALL plugins and I even deleted over 19,000 references from the database using the following query:

    DELETE * FROM wp_posts WHERE post_name NOT LIKE ‘header-png’ AND post_parent = 0 AND post_type LIKE ‘attachment’

    It still crashed Chrome and Firefox whenever I clicked Add Media, and tried to scroll down. Any idea what might be happening?

    If 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.

    … 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.

    You might wanna look for the plugin “Add from Server”.

    Thread Starter 0x2501

    (@0x2501-1)

    My guess is to change the subjects date from 12-04-2013 to 12/04/2013.

    Thread Starter 0x2501

    (@0x2501-1)

    I know, but it would be a nice way to stop further category lookups.

    Thread Starter 0x2501

    (@0x2501-1)

    Anyhow, I’ll be marking this one as resolved! Many thanks for all your time!

    Thread Starter 0x2501

    (@0x2501-1)

    Oh 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.

    Thread Starter 0x2501

    (@0x2501-1)

    Is there any way to stop category lookup? Say, stop after the first “:”?

    Thread Starter 0x2501

    (@0x2501-1)

    It is off, so we are good, right?

    Thread Starter 0x2501

    (@0x2501-1)

    Hey 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:75198792
    Thread Starter 0x2501

    (@0x2501-1)

    I 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.

    Thread Starter 0x2501

    (@0x2501-1)

    Category 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.

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