Wordpress-seo: Getting an error after updating to Yoast SEO 7.4: Warning: Illegal string offset 'url'

Created on 1 May 2018  路  17Comments  路  Source: Yoast/wordpress-seo

Please give us a description of what happened.

After updating to Yoast SEO/Premium 7.4, a warning message is showing on customer's site:
Warning: Illegal string offset 'url'in /home/*/public_html/wp-content/plugins/wordpress-seo-premium/frontend/class-opengraph-image.php on line 151*

$image_url = trim( apply_filters( 'wpseo_opengraph_image', $attachment['url'] ) );

This message seems to be showing on pages where an image is uploaded but I could not reproduce the issue yet.

The same issue is reported in forums: https://wordpress.org/support/topic/version-7-4-breaks-site/

Please describe what you expected to happen and why.

No error/warning message showing.

How can we reproduce this behavior?

Unable to reproduce yet but customers reporting the issue said that the warning message is showing on pages with images.

Reverting to 7.3 fixed a customer's issue.

Technical info

  • WordPress version: 4.9.5
  • Yoast SEO version: 7.4
  • Relevant plugins in case of a bug: still investigating.
support

Most helpful comment

We have discovered a situation when unexpected arguments are being passed, this error occurs.
This should be fixed in the upcoming release of 7.5 (#9667)

All 17 comments

Please inform the customer of conversation # 355333 when this conversation has been closed.

Please inform the customer of conversation # 355227 when this conversation has been closed.

@tacoverdo

Per your request, uploaded code for page displaying this issue. It affects every page as far as I can see, so I'm just uploading the home page source code.

zfl-home.txt

Please inform the customer of conversation # 355148 when this conversation has been closed.

Please inform the customer of conversation # 355131 when this conversation has been closed.

Please inform the customer of conversation # 355486 when this conversation has been closed.

Can confirm that I am seeing this issue as well

Please inform the customer of conversation # 355213 when this conversation has been closed.

Please inform the customer of conversation # 355215 when this conversation has been closed.

Please inform the customer of conversation # 355294 when this conversation has been closed.

Please inform the customer of conversation # 355782 when this conversation has been closed.

Please inform the customer of conversation # 355812 when this conversation has been closed.

Same problem here.

Closed in #9612.

Same Problem here!
Yoast Seo Premium Version: 7.4.2

7 days and still broken

We have discovered a situation when unexpected arguments are being passed, this error occurs.
This should be fixed in the upcoming release of 7.5 (#9667)

Was this page helpful?
0 / 5 - 0 ratings