question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fail gracefully if the Yoast plugin is not installed

See original GitHub issue

Describe the expected behavior

The package @frontity/yoast should fail gracefully if the https://github.com/maru3l/wp-api-yoast-meta plugin is not installed.

It should probably point the user out to the relevant docs.

Describe the observed behavior

Write now it only shows this message in the server: TypeError: Cannot read property 'yoast_wpseo_social_defaults' of undefined

Descriped the steps involved to reproduce the problem

Install the @frontity/yoast plugin, include it in your frontity.settings.js file and connect to a WP without the https://github.com/maru3l/wp-api-yoast-meta plugin installed.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
DAreRodzcommented, Mar 27, 2020

Just FYI:

We are maintaining now our own WP plugin called REST API - Head Tags, which exposes the meta tags of SEO plugins in the REST API. The way to integrate this plugin with Frontity is simply to install the @frontity/head-tags package.

1reaction
luisherranzcommented, Jul 12, 2019

Sorry, we’ve just released it and the docs are coming 😅

Yes, the plugin we are going to recommend is that one: https://github.com/maru3l/wp-api-yoast-meta

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common installation and update errors - Yoast
In rare cases, you will receive an error message when installing or updating Yoast SEO for WordPress. Below, we list the errors that...
Read more >
Yoast SEO missing, can't reinstall (folder exists), clean re ...
I just noticed today that the Yoast SEO plugin is not in the plugins list on this site, and not functioning on the...
Read more >
Best WordPress SEO Plugins to Boost Your SEO Game - 2022
In this article, we're going to discuss a few of our top-picks for your must-have WordPress SEO plugins for 2022, and which one's...
Read more >
Graceful RxJS Error Handling | HTMLGoodies.com
Instead, RxJS provides a few of its own mechanisms for gracefully ... which signify that there were no settings found for that user....
Read more >
[OzzModz] SEO & Index Tools - Updates | Page 2 | XenForo ...
Added new settings page under Admin -> SEO: Schema & branding. ... Added graceful failure on certain PHP versions after install when no...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found