jbarlowga
Forum Replies Created
-
Our admin alert settings keep getting reset back to default settings as well.
Forum: Fixing WordPress
In reply to: PHP Fatal error: Uncaught Error: Class ‘Requests_Hooks’Problem solved (I hope). We had to do a container restart on the web server. Doesn’t appear that this issue had anything to do with WordPress – just a hosting issue. Thanks for the help!
Forum: Fixing WordPress
In reply to: PHP Fatal error: Uncaught Error: Class ‘Requests_Hooks’I have already restored the WordPress core with UpdraftPlus from a backup created when the site was working fine, so I feel like I’ve already done this. Unfortunately, even after restoring from a working version’s backup and clearing the WP cache the problem persists. Since the critical error is intermittent, I’ve reached out to our hosting team to see if there are any issues with server cache or anything else that might be causing this, but that’s beyond my technical knowledge.
Thanks @geoffbel
Appreciate the information and look forward to this getting resolved.
For what it’s worth, I subscribed to the demo calendar on your website and the events in February (from 2/10 on) synced, but the one event in March did not sync. I’m thinking this would confirm that this is a plugin defect rather than an issue specific to my setup or site since the demo appears to be working the same.
@geoffbel Thanks for the reply. The filter I am using is…
add_filter( 'tribe_ical_feed_posts_per_page', function() { return 100; } );The feed is working and it adds new events that were added for this month, but the feed stops on Feb. 28. Nothing in March or beyond has been added to either Google or iCalendar feeds.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Search results showing old content in excerptsI am using the premium version that our vendor set up. A developer wrote the code before I was hired, so I am not entirely sure how it all works. The code used is below. I hope this helps a little more. All I know is that the excerpt that is showing for search results contains content from old page versions.
add_filter('relevanssi_excerpt_content', 'excerpt_function', 10, 3); function excerpt_function($content, $post, $query) { global $wpdb; $fields = $wpdb->get_col("SELECT DISTINCT(meta_key) FROM $wpdb->postmeta"); // ignore these fields $ignore = array('_edit_lock', '_edit_last', '_wp_page_template'); foreach($fields as $key => $field){ if(!in_array($field, $ignore)){ $field_value = get_post_meta($post->ID, $field, TRUE); if(!ctype_digit($field_value)) $content .= ' ' . ( is_array($field_value) ? implode(' ', $field_value) : $field_value ); } } // Remove random terms from showing in the search. These are related to the names of the ACF field names $wordlist = array('acf_id_1', 'acf_id_2', 'acf_id_3', 'acf_id_4'); foreach ($wordlist as &$word) { $word = '/\b' . preg_quote($word, '/') . '\b/'; } $wordlist = array('/field_\w*/', '/\w*_callout/', '/\w*_content/', '/banner_image/', '/banner_image_with_overlay/', '/small_gray_tile_links/', '/large_gray_tile_blocks/', '/gray_tile_blocks/', '/profile_blocks/', '/block_links/', '/three_columns_and_image/', '/leadership_profiles/', '/gray_tile_blocks/', '/vertical_slider/', '/tile_layout/', '/two_columns_70-30/', '/two_columns_50-50/', '/two_columns_with_small_accordions/', '/content_with_2_column_text/', '/page_header/', '/content_header/', '/content content_subheader/', '/content small_accordions/', '/content sidebar/', '/content accordions/', '/content two_columns accordions/', '/\[download_tools\]/', '/\[related_info\]/', '/two_columns/', '/sidebar/', '/content/', '/\#bb0000/', '/notify/', '/onehr_category/'); $content = preg_replace($wordlist, '', $content); // The excerpt ready with bits removed from it return $content; }and it is being called on search.php with
<?php if ( have_posts() ) { while ( have_posts() ) { the_post(); <div class="content-article search-entry clearfix"> <a class="content-article-title" href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <div class="content-article-text"><?php the_excerpt(); ?></div> </div> <?php } } else { ?> <div class="search-no-results"><p>No results were found.</p></div> <?php } ?>Forum: Plugins
In reply to: [Relevanssi - A Better Search] Search results showing old content in excerptsThe content only appears in previous versions. It does not appear anywhere on the current page. This is why I don’t understand where the excerpt is coming from. It’s like Relevanssi is looking at version history and pulling content from there. However, it also appears to only be the accordion repeater field that is having this issue.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Search results showing old content in excerptsI am using Advanced Custom Fields. The excerpts that are showing in search results contain content that is no longer on the respective pages.
I might add that the content I am having issues with is in ACF accordion repeater fields. I don’t know if other fields are impacted as well, but in the particular case I am referring to the old excerpts are coming from these fields. Not sure if that helps or not.
- This reply was modified 7 years, 3 months ago by jbarlowga.
Forum: Plugins
In reply to: [Enable Media Replace] PDF Image PreviewsI just noticed this had been marked resolved, but the issue still exists. Every time a pdf file is replaced, a new set of images is created. Can the new set of images replace the existing set of images, just as the new pdf file replaces the existing pdf file?
Forum: Plugins
In reply to: [Enable Media Replace] PDF Image PreviewsAny update on this feature?
Forum: Plugins
In reply to: [Enable Media Replace] PDF Image PreviewsCreating image representations of pdf uploads was added in WordPress 4.7.
https://make.ww.wp.xz.cn/core/2016/11/15/enhanced-pdf-support-4-7/
With each upload to replace a current file with the Enable Media Replace plugin, a new set of images is created and leaves behind the previous set(s).
Forum: Plugins
In reply to: [Shibboleth] redirect_to attribute not working in Shibboleth 2.0.2The code is at the top of the page.php template. Selected pages on the site require a Shibboleth login, and this code checks to see if the current page requires the login. The login piece works, but the user is not returned to the page that initiated the login. The user is instead directed to the wp-login page. This works fine in v1.8.1, which is why I suspected there was a change in v2. The complete piece of this code is:
$prot1 = get_field('level_1_protected_pages', 'option'); if($prot1) { foreach($prot1 as $page_id) { if($page_id['page'] === $post->ID) { if (!shibboleth_session_active()) { header('Location: ' . home_url() . '/wp-login.php?redirect_to=' . get_the_permalink($post->ID) . '&reauth=1&action=shibboleth'); } else { $emp_id = $_SERVER['HTTP_****']; $emp_cat = $_SERVER['HTTP_AFFILIATION']; //test if student but not employee if (strpos($emp_cat, 'student') !== false && strpos($emp_cat, 'employee') === false) { header('Location: ' . home_url() . '/access-denied'); } } } } }