Strict warning: Only variables should be passed by reference in include() & __lambda_func()

by jmu   Last Updated January 12, 2018 22:07 PM

I got the error message:

  1. Strict warning: Only variables should be passed by reference in include() (line 68 of /var/www/html/sites/all/themes/mobile/templates/page--product_display.tpl.php).
  2. Strict warning: Only variables should be passed by reference in __lambda_func() (line 2 of /var/www/html/sites/all/modules/views_php/plugins/views/views_php_handler_field.inc(207) : runtime-created function)

For the first one, in Line 68, I have code: $mfgname = array_pop(taxonomy_get_parents_all($node->field_company[LANGUAGE_NONE][0]['tid']))->name;

BUT, the second error, I have no idea what it is. I installed
Views PHP Module - 7.x-2.x-dev, and didn't modify anything.

Tags : 7 views debugging


Related Questions



Handling sql query errors to avoid page crashes

Updated July 21, 2017 12:07 PM

Debug: Handler views_handler_field_node_revision

Updated August 03, 2015 14:03 PM

ajax fields do not work on custom page with drupal_render

Updated September 20, 2017 07:07 AM