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) {
CommentFileSizeAuthor
#1 explicit_by-reference_2129335.patch3.84 KBBarrett
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Barrett’s picture

Status: Active » Needs review
FileSize
3.84 KB
ZeiP’s picture

Status: Needs review » Closed (duplicate)
Related issues: +#2311185: Broken module in PHP 5.4