Urgent problem: Number of images created out of control
Home › Forums › WordPress Theme Support › BfastMag Pro › Urgent problem: Number of images created out of control
Tagged: bfastmag pro, Images, number
- This topic has 11 replies, 2 voices, and was last updated 5 years, 3 months ago by Christopher.
-
AuthorPosts
-
July 7, 2019 at 5:15 am #10387ChristopherSpectator
After moving my WordPress site to another host because I was running out of space, I find myself about to run out of space again thanks to your theme.
More specifically, because of the number of images the theme creates when I upload a post.
For example, a recent post included 5 images.
When I looked in the public_html/wp-content/uploads folder where the images are stored, those 5 images had grown to 102 variations ranging in size from 925 bytes to 168kb.
The size of the images is not the issue, it is the number of them.
Each images uses 1 x inode and I am running out of inodes – my host limit is 200,000.
To address this issue I have as suggested:
1. Set the default WordPress image sizes in Settings>Media to “0 (zero)”;
2. Edited the functions.php file in the theme folder to remove the following lines of code:
“add_image_size( ‘bfastmag_single_slider’, 1175, 520, true );
add_image_size( ‘bfastmag_single_grid’, 778, 544, true );
add_image_size( ‘bfastmag_small_grid’, 377, 165, true );
add_image_size( ‘bfastmag_blk_small_thumb’, 170, 110, true );
add_image_size( ‘bfastmag_blk_small_thumb_no_crop’, 170, 110 );
add_image_size( ‘bfastmag_sb_small_thumb_no_crop’, 90, 70 );add_image_size( ‘bfastmag_blk_big_thumb_grid’, 426, 250, true );
add_image_size( ‘bfastmag_blk_big_thumb’, 370, 350, true );
add_image_size( ‘bfastmag_blk_big_thumb_no_crop’, 370, 350 );add_image_size( ‘bfastmag_home_blk_6’, 275, 250, true );
add_image_size( ‘bfastmag_related_post’, 288, 160, true );
add_image_size( ‘bfastmag_blog_post’, 780, 442, true );
add_image_size( ‘bfastmag_blog_post_no_crop’, 780, 442 );”The example I quoted with 5 images occured after I made these changes however suggesting they have had no effect whatsover.
I cite another post with 6 images created prior to the changes which has 101 variations.
Can you please respond and can you please help me address this situation?
July 13, 2019 at 10:26 am #10393ChristopherSpectatorSix (6) days and no answer.
How urgent does it have to be???
Your support sucks!July 13, 2019 at 11:32 am #10394Raja CRNKeymasterHello,
We’ve provided enough support for you. Our theme has nothing to do with sudden images creation when you are moving to new host.
We use WordPress default add image size feature to create images to fit into the theme layout. if you don’t want that images, Just comment out all add_image_size in that functions.php file
For more info check: https://developer.wordpress.org/reference/functions/add_image_size/
Thanks
July 14, 2019 at 11:15 am #10397ChristopherSpectatorWe’ve provided enough support for you.
I thought you provide lifetime support. That’s what you advertise.
The problem it takes a lifetime for anyone to respond.
Sometimes there’s no reponse at all — just look at the forum.
I label my post “urgent” and it takes a week and two more requests to get a reponse.
A good theme is nothing without good support. You have a good theme — you don’t have good support.
The forum is useless because responses are either redacted or issues end up being solved outside the forum, so we users don’t get to see what or how you fixed a problem.
I stopped WordPress from creating default images, as suggested.
I tried removing the lines of code from functions.php as suggested.
Doing so screwed up my site and I had to put them back in.
There’s 13 image sizes specified in functions.php — yet for every image I upload 20 or more images are being created?
Our theme has nothing to do with sudden images creation when you are moving to new host.
Who said anything about moving to a new host?
I’ve been with my current host for more than 12 months.
Whatever the problem is, it stems from your theme and what it does when I upload an image.
I need help to fix my problem and you’re not providing it!
For more info check: https://developer.wordpress.org/reference/functions/add_image_size/
I’m not a coder or programmer, that means nothing to me.
July 14, 2019 at 11:21 am #10398Raja CRNKeymasterHello,
Share your login details, We’ll remove those add_image_size functions.
July 14, 2019 at 1:04 pm #10401ChristopherSpectatorShare your login details, We’ll remove those add_image_size functions.
I told you I’ve already tried that. It screws up everything.
July 14, 2019 at 1:07 pm #10402Raja CRNKeymasterSince You are not a programmer or coder, it might screwed you. Let us try.
July 14, 2019 at 1:17 pm #10403Raja CRNKeymasterAppearance >Theme Editor is not allowed. So, We can’t remove those code.
July 14, 2019 at 1:19 pm #10404ChristopherSpectatorThis reply has been marked as private.July 14, 2019 at 1:29 pm #10405Raja CRNKeymasterHello,
We’ve updated the functions.php file. Hereafter, the WordPress core Add_Image_size function will not create any custom images needed for theme layout.
Thanks
July 14, 2019 at 3:58 pm #10406ChristopherSpectatorHereafter, the WordPress core Add_Image_size function will not create any custom images needed for theme layout.
Can you kindly explain how this will help?
If the images are not created, then won’t this stop the theme from functioning as intended?
August 13, 2019 at 6:02 am #10450ChristopherSpectatorIn case anyone is interested I solved this problem by migrating my images to an Amazon S3 Bucket.
-
AuthorPosts
Only Verified Customer of this Theme Can post reply to this Support Topic! .