INN / link-roundups

A WordPress plugin to make it easy to collect links from around the web, turn them into roundup posts and streamline the production of daily/weekly roundup newsletters using MailChimp. Built and maintained by INN Labs.
https://wordpress.org/plugins/link-roundups/
GNU General Public License v2.0
20 stars 4 forks source link

'Saved Links' in search results throw errors if not running Largo #185

Open laurelfulford opened 4 years ago

laurelfulford commented 4 years ago

If you're running the latest version of the Link Roundups plugin (1.0.1), but not the Largo theme, when you run a search that returns one of the 'Saved Links', you get the following error:

Fatal error: Uncaught ArgumentCountError: Too few arguments to function SavedLinks::get_excerpt(), 0 passed in /srv/www/wordpress/public_html/wp-content/plugins/link-roundups/inc/saved-links/class-saved-links.php on line 636 and exactly 1 expected in /srv/www/wordpress/public_html/wp-content/plugins/link-roundups/inc/saved-links/class-saved-links.php:760 Stack trace: #0 /srv/www/wordpress/public_html/wp-content/plugins/link-roundups/inc/saved-links/class-saved-links.php(636): SavedLinks::get_excerpt() #1 /srv/www/wordpress/public_html/wp-includes/class-wp-hook.php(288): SavedLinks::the_excerpt('<p>Test Link Ya...') #2 /srv/www/wordpress/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters('<p>Test Link Ya...', Array) #3 /srv/www/wordpress/public_html/wp-includes/post-template.php(390): apply_filters('the_excerpt', 'Test Link Yay&n...') #4 /srv/www/wordpress/public_html/wp-content/themes/wordpress/template-parts/content/content-excerpt.php(34): the_excerpt() #5 /srv/www/ne in /srv/www/wordpress/public_html/wp-content/plugins/link-roundups/inc/saved-links/class-saved-links.php on line 760

Steps to recreate:

  1. On a test site, activate a theme that's not Largo, and install Link Roundups.
  2. Add a Saved Link with an easy to search for name.
  3. Save and publish.
  4. On the front-end of the site, run a search.