TimThumb cache directory issue [closed]

Check or add the following two config settings: define(‘FILE_CACHE_TIME_BETWEEN_CLEANS’, 80000); // 8 seconds = automatic removal of files define(‘FILE_CACHE_MAX_FILE_AGE’, 20000); // 2 seconds = max. age of file before removed Update Maybe using something like this code snippet in your thumb.php or as a stand-alone script executed by cron can take care of the issue. … Read more

Shortcode not picking up custom field

could be a question of string concatenation – try (untested): <a href=”‘.get_permalink().'” title=”‘.get_the_title().'”><img src=”‘. get_bloginfo(‘template_directory’).’/timthumb.php?src=”.$thumb.”&h=100&w=600&zc=1&q=100&a=”.get_post_meta($post->ID, “thumbcrop’, true).'” alt=”‘.get_the_title().'” /></a>

Source problem for children page image

Never mind about my question… here is your answer Put this function on your functions.php // Get Featured Image Path function get_featured_image_link($size){ global $post; $get_featured_image_link = get_the_post_thumbnail($post->ID, $size); preg_match(“/(?<=src=[‘|\”])[^’|\”]*?(?=[‘|\”])/i”, $get_featured_image_link, $thePath); return $get_featured_image_link_final = $thePath[0]; } Then this is the process to get the image… <?php $the_query = new WP_Query( array( ‘post_parent’ => ’20’, ‘post_type’ … Read more

Thumbs and pictures not showing anymore

The problem is not with TimThumb, it’s with how you are calling TimThumb. Looking at your site, it is trying to load: http://ovnihoje.com/wp-content/themes/channelpro/timthumb.php?src=http://i2.wp.com/ovnihoje.com/wp-content/uploads/2013/04/alien-greer.jpg?resize=269%2C80&h=80&w=269&a=t&zc=1 If you update the theme or TimThumb config to pass the correct parameters, it will work: http://ovnihoje.com/wp-content/themes/channelpro/timthumb.php?src=http://ovnihoje.com/wp-content/uploads/2013/04/alien-greer.jpg&resize=269%2C80&h=80&w=269&a=t&zc=1 Since you recently migrated it’s likely that you have been pointing to the hold wp.com … Read more