norecipes
Forum Replies Created
-
Forum: Plugins
In reply to: [Force Regenerate Thumbnails] Does this plugin also regenerate postmetaJust incase someone has this same issue in the future, I answered my own question.
The answer is no, Force Regenerate Thumbnails will not recreate both “_wp_attachment_metadata” “_wp_attached_file” postmeta rows for an image attachment because it relies on the get_attached_file function, which pulls the image path from _wp_attached_file.
That said, I’ve found a workaround. I inserted the following code (courtesy of Sunriseweb on this thread: https://www.ads-software.com/support/topic/plugin-auto-post-thumbnail-wordpress-34-previously-generated-thumbnails-missing-wont-generate-new-ones/page/3) to populate _wp_attached_file from the guid. The only thing is the guid has the full URI, so you’ll need to truncate everything up to the trailing slash on your domain. In my case my URI had 39 characters up to he image page “2008/09/sample-image.jpg”.
Just insert the following code around line 446
$fullsizepath = substr($image->guid,39,strlen($image->guid)); //change 39 to the number of characters in your URI up to the trailing slash update_attached_file( $image->ID, $fullsizepath );
This goes just before the line
$image_fullpath = get_attached_file($image->ID);
To the plugin creator: Nice plugin! I especially like that it deletes old image sizes. I know this is a one-time issue for most people, but it would be nice if you could add the functionality to populate _wp_attached_file for an attached image if it doesn’t exist in future releases of the plugin.
Forum: Plugins
In reply to: [W3 Total Cache] Incorrect Cache EngineI’m having the same problem. It happens when I try to edit and save an existing post. I tested with comments, but I use Disqus so it doesn’t seem to affect the comments. Here’s the full error:
Warning: Incorrect cache engine in HOME_DIR/wp-content/plugins/w3-total-cache/lib/W3/Cache.php on line 76
Warning: Cannot modify header information – headers already sent by (output started at HOME_DIR/wp-content/plugins/w3-total-cache/lib/W3/Cache.php:76) in HOME_DIR/wp-includes/pluggable.php on line 876
Forum: Plugins
In reply to: [ReciPress] [Plugin: ReciPress] Insert image not workingThanks for the quick response Tammy! That fixed the the problem with the dialog box going blank. When I try and add an image to a step though and select a smaller size (such as thumbnail or medium), it seems to respect my choice in the admin interface (the thumbnail shows up as a 1:1 ratio image if I select “thumbnail”), however in the post itself, it’s showing up full size.
Forum: Plugins
In reply to: [ReciPress] [Plugin: ReciPress] Insert image not workingHi Tammy, here’s the javascript error I’m getting in console:
Uncaught TypeError: Cannot call method ‘replace’ of undefined
jQuery.click.window.send_to_editorback.js:25
(anonymous function)Forum: Plugins
In reply to: [ReciPress] [Plugin: ReciPress] Insert image not workingThanks for the quick update Tammy! After updating to 1.9.1. the gallery did indeed show up, but when I try to insert the image into instructions or as the post image, the dialog box goes blank (same problem as before). I tried applying James’ fix, which fixes the insertion problem but then the gallery change gets reverted.
Forum: Plugins
In reply to: [ReciPress] [Plugin: ReciPress] Insert image not workingAwesome! That fixed the image upload problem, however I’m still having an issue with image size when embedded with a step in the instructions. Please see the image attached to step 2 in this post for an example: https://norecipes.com/blog/2012/01/22/beef-rendang-recipe/
I selected “medium (200 x 301)”, as the size, but instead it’s showing the full sized 600×902 image.
Also, the “Add Media” dialog box in WordPress usually has a “gallery” tab that shows only the images associated to that post. The dialog that shows up when I click “upload image” in ReciPress only has “From Computer”, “From URL” and “Media Library”. It’s not a big deal for recent posts since the most recent images show up first in the Media Library, but I’m planning on going though and retrofitting about 500 posts with ReciPressed recipes. This means I’ll either need to go dig up the original photos for older posts and re-upload them (a waste of disk space), or I’ll have to go through hundreds of pages of images in the Media Library to find the ones for that post.
Forum: Networking WordPress
In reply to: Where are the media upload quotas set?Thanks for the quick response! There’s no Options tab under Network Admin > Sites > Edit. There is a “Settings” tab with a “Blog Upload Space” but it’s set to “0” (which I’m assuming means unlimited?). Any other ideas?
Wow thanks for your thorough response! I was actually intending to go to multi-site at some point (just not yet) for exactly the reason you pointed out. I currently run 3 wordpress installations and need to add a 4th. The upkeep is getting a little ridiculous and I wanted to consolidate on 1 install.
I just migrated ingredients to a child blog and set 301 redirects in the .htaccess file so everything should now be going to either https://norecipes.com or https://norecipes.com/ingredient.
I’ve temporarily switched back to a beta version of Google XML Sitemaps (that supports multi-site), which works. I’d rather use your plugin though because it supports caching using W3 Total Cache so hopefully we can figure this out. Thanks for your help!
It’s multi-site now in Subdomain mode, but the plugin was not working before I switched to multi-site. I had originally thought it wasn’t working in single site mode because on your website you say that it was built for multi-site, so I tried enabling multi-site, but that does not seem to have worked.
I removed the existing robots.txt file and checked all subdirectories for other sitemap.xml files (there are none). I thought the feedburner redirect was odd to and checked .htaccess, but there aren’t any redirects that I can see that would cause that (nothing specific to sitemap.xml, and nothing pointing to feedburner.com). Any ideas why this might be happening?
Forum: Plugins
In reply to: [W3 Total Cache] [Plugin: W3 Total Cache] CSS not updatingI tried testing transfers and it’s working fine. The only way I can see the updated CSS is to turn off the W3 plugin. Also I’ve noticed that when I post new posts, it takes about an hour for it to show up on the live site when I’m not logged in as admin. I’ve updated to the latest 0.9.1.1