Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After I view a page with a YouTube video embedded in it with Video Embed Field, the next page I visit displays the following error:
Strict warning: Only variables should be passed by reference in template_preprocess_video_embed_field_embed_code() (line 355 of /var/www/ldw/cms/drupal/sites/all/modules/video_embed_field/video_embed_field.module).
Comments
Comment #1
paulhhowells CreditAttribution: paulhhowells commentedI get the same error in the same circumstances:
Strict warning: Only variables should be passed by reference in template_preprocess_video_embed_field_embed_code() (line 355 of /home/prince/public_html/sites/all/modules/video_embed_field/video_embed_field.module).
The first page contains a YouTube video embedded using Video Embed Field.
The second page (when the error is displayed) does not have a Video Embed Field.
I notice that this seems similar to http://drupal.org/node/1679118 which was fixed (?) in August 2012.
I am using Drupal 7.19.
Comment #2
paulhhowells CreditAttribution: paulhhowells commented7.x-2.0-beta5 was released June 21 2012, so I guess that the fix for this might be in 7.x-2.x-dev
Comment #3
plopescThis was fixed in #1679118: Only variables should be passed by reference in template_preprocess
Thank you