segment-boneyard / analytics-magento

[DEPRECATED] The hassle-free way to integrate analytics into any Magento store.
15 stars 19 forks source link

Missing argument 2 for Segment_Analytics_Helper_Data::{closure}() thrown on product detail page #81

Open ryanmcdonnell opened 9 years ago

ryanmcdonnell commented 9 years ago

Stack trace points to app/code/community/Segment/Analytics/Helper/Data.php line 144

sperand-io commented 9 years ago

@ryanmcdonnell thanks for reporting! what version of PHP are you running? likely related: https://github.com/segmentio/analytics-magento/commit/5e2a2c99f956e9aeb999bac976f8f4ee92a8864a#commitcomment-13604528

ryanmcdonnell commented 9 years ago

Latest Apache and PHP5 from the Ubuntu 14.04 LTS repo.

root@localhost:~# php -v
PHP 5.5.9-1ubuntu4.13 (cli) (built: Sep 29 2015 15:24:49)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
liuggio commented 9 years ago

Same problem here on product page on Nginx Stack

"Warning: Missing argument 2 for Segment_Analytics_Helper_Data::{closure}() in /var/www/htdocs/app/code/community/Segment/Analytics/Helper/Data.php on line 144"

PHP 5.5.9-1ubuntu4.13 (cli) (built: Sep 29 2015 15:24:49)                       
Copyright (c) 1997-2014 The PHP Group                                           
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies                   
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies