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.
In the D6 version, the template_preprocess... functions all expect $vars to be passed by reference at call-time. This results in incorrectly structured output when versions of PHP greater than 5.4 are used.
To resolve the problem, alter the definition of the functions below so that $vars is managed by reference explicitly.
grep -Hinr 'function template_preprocess' .
./views_views_rdf_style.theme.inc:22:function template_preprocess_views_views_rdf_style_foaf($vars) {
./views_views_rdf_style.theme.inc:168:function template_preprocess_views_views_rdf_style_sioc($vars) {
./views_views_rdf_style.theme.inc:505:function template_preprocess_views_views_rdf_style_doap($vars) {
./views_views_xhtml_style.theme.inc:17:function template_preprocess_views_views_xhtml_style_hcard($vars) {
./views_views_xhtml_style.theme.inc:179:function template_preprocess_views_views_xhtml_style_hcalendar($vars) {
./views_views_json_style.theme.inc:17:function template_preprocess_views_views_json_style_simple($vars) {
./views_views_json_style.theme.inc:60:function template_preprocess_views_views_json_style_exhibit($vars) {
./views_views_xml_style.theme.inc:17:function template_preprocess_views_views_xml_style_raw($vars) {
./views_views_xml_style.theme.inc:91:function template_preprocess_views_views_xml_style_opml($vars) {
./views_views_xml_style.theme.inc:224:function template_preprocess_views_views_xml_style_atom($vars) {
Comment | File | Size | Author |
---|---|---|---|
#1 | explicit_by-reference_2129335.patch | 3.84 KB | Barrett |
Comments
Comment #1
Barrett CreditAttribution: Barrett commentedComment #2
ZeiP CreditAttribution: ZeiP as a volunteer commentedAlready fixed in #2311185: Broken module in PHP 5.4.