Jim
Forum Replies Created
-
Forum: Plugins
In reply to: [Enable Media Replace] The file can only be replaced by uploading a new file.If I can jump in, I have the same or similar question. I need to replace an image throughout my site with one that is already in the library. The image to be replaced is used on many pages, and the replacement image is also used in some pages already.
If I have to re-upload the replacement image, then I have two identical copies of it, one used in some places, the other used elsewhere. That would be a mess.
Forum: Plugins
In reply to: [Broken Link Checker] False ‘broken’ with doi.org linksPS – Also getting 403 Forbidden with working links to jstor.org, such as:
https://www.jstor.org/stable/43214791?seq=1Forum: Plugins
In reply to: [WP Super Cache] Preload mode enabled but cache files disappearHere is a thread from the log showing a cache file being deleted and apparently rebuilt because it is “too old”. Again, I thought that wasn’t supposed to happen in preload mode. I haven’t found where they are being deleted and not rebuilt. (I read the warning about not posting logs but these paths seem all standard and known)
Also going through the log, I saw the home page (which is static) was being rebuilt about every ten minutes. Maybe I need to uncheck the extra home page checks?
15:47:23 7245 /canker/sooty-bark-maple/ wpsc_is_caching_user_disabled: false 15:47:23 7245 /canker/sooty-bark-maple/ wp_cache_get_cookies_values: return: 15:47:23 7245 /canker/sooty-bark-maple/ supercache dir: ABSPATH/wp-content/cache/supercache/forestpathology.org/canker/sooty-bark-maple/ 15:47:23 7245 /canker/sooty-bark-maple/ No Super Cache file found for current URL: ABSPATH/wp-content/cache/supercache/forestpathology.org/canker/sooty-bark-maple/index-https.html 15:47:23 7245 /canker/sooty-bark-maple/ wp_cache_get_cookies_values: return: 15:47:23 7245 /canker/sooty-bark-maple/ In WP Cache Phase 2 15:47:23 7245 /canker/sooty-bark-maple/ Setting up WordPress actions 15:47:23 7245 /canker/sooty-bark-maple/ Created output buffer 15:47:23 7245 /canker/sooty-bark-maple/ wp_cache_get_cookies_values: return: 15:47:23 7245 /canker/sooty-bark-maple/ wpcache_do_rebuild: doing rebuild for ABSPATH/wp-content/cache/supercache/forestpathology.org/canker/sooty-bark-maple/ 15:47:23 7245 /canker/sooty-bark-maple/ wpcache_do_rebuild: found rebuild file: ABSPATH/wp-content/cache/supercache/forestpathology.org/canker/sooty-bark-maple/index-https.html.gz.needs-rebuild 15:47:23 7245 /canker/sooty-bark-maple/ wpcache_do_rebuild: rebuild file deleted because it's too old: ABSPATH/wp-content/cache/supercache/forestpathology.org/canker/sooty-bark-maple/index-https.html.gz.needs-rebuild 15:47:23 7245 /canker/sooty-bark-maple/ wpcache_do_rebuild: found rebuild file: ABSPATH/wp-content/cache/supercache/forestpathology.org/canker/sooty-bark-maple/index-https.html.needs-rebuild 15:47:23 7245 /canker/sooty-bark-maple/ wpcache_do_rebuild: rebuild file deleted because it's too old: ABSPATH/wp-content/cache/supercache/forestpathology.org/canker/sooty-bark-maple/index-https.html.needs-rebuild 15:47:23 7245 /canker/sooty-bark-maple/ wpsc_is_caching_user_disabled: false 15:47:23 7245 /canker/sooty-bark-maple/ Output buffer callback 15:47:23 7245 /canker/sooty-bark-maple/ wp_cache_get_cookies_values: return: 15:47:23 7245 /canker/sooty-bark-maple/ Anonymous user detected. Only creating Supercache file. 15:47:23 7245 /canker/sooty-bark-maple/ wpsc_is_caching_user_disabled: false 15:47:23 7245 /canker/sooty-bark-maple/ wp_cache_get_cookies_values: return: 15:47:23 7245 /canker/sooty-bark-maple/ Gzipping buffer. 15:47:23 7245 /canker/sooty-bark-maple/ Writing non-gzipped buffer to supercache file. 15:47:23 7245 /canker/sooty-bark-maple/ Writing gzipped buffer to supercache file. 15:47:23 7245 /canker/sooty-bark-maple/ Renamed temp supercache file to ABSPATH/wp-content/cache/supercache/forestpathology.org/canker/sooty-bark-maple/index-https.html 15:47:23 7245 /canker/sooty-bark-maple/ Renamed temp supercache gz file to ABSPATH/wp-content/cache/supercache/forestpathology.org/canker/sooty-bark-maple/index-https.html.gz 15:47:23 7245 /canker/sooty-bark-maple/ Writing gzip content headers. Sending buffer to browser 15:47:23 7245 /canker/sooty-bark-maple/ wp_cache_shutdown_callback: collecting meta data. 15:47:23 7245 /canker/sooty-bark-maple/ Did not write meta file: meta-wp-cache-[XXX].php supercacheonly: 1 wp_cache_not_logged_in: 2 new_cache:1Forum: Plugins
In reply to: [WP Super Cache] Preload mode enabled but cache files disappearI changed it to Simple mode and restarted the preloading, but it’s still happening. My cache files get deleted and not consistently replaced, though some are. After first preloading I had about 100 cache files, now I have 57 It makes no sense based on my reading.
Here are my relevant settings:
Easy
Caching on
Advanced
Cache delivery method – Simple
Disable for logged-in visitors
Don’t cache w/ GET params
Compress
Cache rebuild
304 browser caching
Extra homepage checks
[ following 2 shouldn’t matter in preload mode, right? ]
Cache Timeout 86400 sec (24 hr)
Scheduler: once daily
Preload
Refresh preloaded cache files every 1440 min (24 hr)
All posts
Preload mode checkedForum: Plugins
In reply to: [Donations via PayPal] RedirectThe first paypal link above is now correct, but this one is still redirecting (for one silly pixel!):
https://www.paypal.com/en_US/i/scr/pixel.gifForum: Plugins
In reply to: [Donations via PayPal] RedirectThank you!
Forum: Plugins
In reply to: [Donations via PayPal] RedirectI thought you might just change the URL in the plugin to the new, redirected URL.
https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif
— in paypal-donations.php
— changes to:
https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gifhttps://www.paypal.com/en_US/i/scr/pixel.gif
— in paypal-button.php
— changes to:
https://www.paypalobjects.com/en_US/i/scr/pixel.gifProbably other images need to get updated as well.
Thanks
This will happen if you’re using Wordfence’s recaptcha feature and using a login page other than the WordPress login.
Turns out the Wordfence recaptcha feature only supports the native WordPress login form. Unfortunate that it isn’t more universal. Thanks for your time.
I too. I tried 3 different sidebar login widgets and they all got blocked by Wordfence recaptcha on every single login.
Forum: Themes and Templates
In reply to: [GeneratePress] Customizing Custom Post TypeOh my gosh, this stuff is way more mysterious than I thought. You are amazing.
I added an } else { to the copyright function to set the copyright for the rest of the site. I found if I set it for the whole site, and then set it conditionally for ncpage, the ncpage copyright just gets concatenated to the main copyright instead of replacing it.
Regarding the nav menu, what I really hope to do is remove that entirely for ncpages. Should I do that with css, “display: none” when it’s in a single-ncpage class, or is there a more efficient way?
Thanks so much. Although I don’t have a lot of visitors, I’m going to put “Powered by GeneratePress” into the footer and buy GP Premium, maybe it’ll help.
Forum: Themes and Templates
In reply to: [GeneratePress] Customizing Custom Post TypeYes, exactly. Here is what I currently have (and doesn’t do anything) in functions.php
if ( is_singular( 'ncpage' ) ) { // Custom copyright in footer add_filter( 'generate_copyright','ncfpw_custom_copyright' ); function ncfpw_custom_copyright() { ?> © <?php echo date( 'Y' ) ?> North Central Forest Pest Workshop <?php } // Change site name for heading on their pages add_filter( 'option_blogname', function( $name ) { return 'NCFPW'; } ); }- This reply was modified 5 years, 8 months ago by Jim.
Forum: Themes and Templates
In reply to: [GeneratePress] Customizing Custom Post TypeThat’s odd. If I put the following in the single-ncpage template, it displays ‘ncpage’. If I put it in the child functions.php, nothing happens:
$post_type = get_post_type(); echo $post_type;I think these are single posts, though I’m not 100% clear what that is. One of the pages of ncpage is served with this:
<body class="ncpage-template-default single single-ncpage postid-6025 single-format-standard logged-in admin-bar wp-embed-responsive right-sidebar nav-below-header fluid-header one-container active-footer-widgets-0 nav-search-enabled nav-aligned-left header-aligned-left dropdown-hover customize-support" itemtype="https://schema.org/Blog" itemscope="">
So one of the classes is single-ncpage.Thank you for trying to reproduce that. I think what might be required to reproduce it is setting up recaptcha in the Login Security settings of Wordfence.
Honestly I’m not sure if it’s a Wordfence or PB widget issue. But it only happens in the widget, not in the normal WordPress login (which is covered by recaptcha).
I know it’s a big pain to get those keys from Google if you don’t have them already (it requires the Google reCAPTCHA v3 Service), so I’ll look into that other option for now.
Forum: Themes and Templates
In reply to: [GeneratePress] Customizing Custom Post TypeThanks for the great tips.
I’m finding that putting this stuff in functions.php isn’t working. Experimenting, I think the post type is only available inside “the loop”. All attempts to display the post type from functions.php failed, but it did work when I put it in a single-ncpage.php template (ncpage being the custom post type).
functions.php is not getting executed in the loop:
if ( in_the_loop() ) { echo 'in the loop'; } else { echo 'Not in the loop'; }displays ‘Not in the loop’.
Should I put it in single-ncpage.php instead? Actually, if I did, the test using “if ( is_singular( ‘ncpage’ ) )” would be unnecessary.
- This reply was modified 5 years, 8 months ago by Jim.