wordpress-seo icon indicating copy to clipboard operation
wordpress-seo copied to clipboard

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

Open Jerparx opened this issue 8 years ago • 17 comments

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.

Jerparx avatar May 01 '18 18:05 Jerparx

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

mayada-ibrahim avatar May 01 '18 18:05 mayada-ibrahim

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

mayada-ibrahim avatar May 01 '18 19:05 mayada-ibrahim

@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

michaelnorthern avatar May 01 '18 19:05 michaelnorthern

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

Pcosta88 avatar May 01 '18 19:05 Pcosta88

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

devnihil avatar May 01 '18 19:05 devnihil

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

mmikhan avatar May 01 '18 19:05 mmikhan

Can confirm that I am seeing this issue as well

willgorham avatar May 01 '18 21:05 willgorham

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

Jerparx avatar May 01 '18 23:05 Jerparx

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

Jerparx avatar May 01 '18 23:05 Jerparx

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

Jerparx avatar May 01 '18 23:05 Jerparx

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

michaelbriantina avatar May 02 '18 06:05 michaelbriantina

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

michaelbriantina avatar May 02 '18 07:05 michaelbriantina

Same problem here.

iliepandia avatar May 02 '18 08:05 iliepandia

Closed in #9612.

atimmer avatar May 02 '18 11:05 atimmer

Same Problem here! Yoast Seo Premium Version: 7.4.2

bemarl avatar May 06 '18 20:05 bemarl

7 days and still broken

philip47 avatar May 07 '18 15:05 philip47

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)

andizer avatar May 08 '18 11:05 andizer