Add images to your Article Schema throws fatal error
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- wordpress
- Domain
- documentation
Research direction
Start with the “Add images to your Article Schema” example linked in the issue and reproduce it using the reported filter, attachment ID, and Article schema settings. Check why the example refers to WPSEO_Schema_Image, then update the documented example so it no longer produces the reported fatal error and verify the generated page source.
Written by the indexing model from the issue text.
Description
Please give us a description of the issue
When I use the filter wpseo_schema_article and use the example code provided here, I see fatal error.
Steps to replicate:
- I used the code snippet plugin to add the example code.
- Changed the value of $attachment_id in the example. I added an image and used the ID for that image
- Then I saved the code and activated it.
- I checked a post where I set schema type as webpage and page type as article. I noticed fatal error in the page source that says: WPSEO_Schema_Image is not found.
Screenshot:
- I've read and understood the contribution guidelines.
- I've searched for any related issues and avoided creating a duplicate issue.
- Dominant language
- JavaScript
- Stars
- 15
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Yoast/developer
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Typos Open
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Automattic/safe-publish#594 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
dream-num/dsh-univer-office#104 ·
-
comp/dashboard invalid P3
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
NousResearch/hermes-agent#121143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
avniproject/avni-webapp#1811 ·
-
area/auroraboot area/webui bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100