Skip to content

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

@laurelfulford

Description

@laurelfulford

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions