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.
Is this a known issue with PHP 7?
When trying to access feeds configuration or a Feature that is tracking feeds tamper configuration I get:
Fatal error: Redefinition of parameter $source in /Users/daniel/sites/myproject/wwwroot/sites/all/modules/contrib/feeds_tamper/plugins/default_value.inc on line 36
Call Stack
# Time Memory Function Location
1 0.0006 365592 {main}( ) .../index.php:0
2 0.3832 37007112 menu_execute_active_handler( ) .../index.php:21
3 0.3843 37099040 drupal_get_form( ) .../menu.inc:527
4 0.3843 37100216 drupal_build_form( ) .../form.inc:130
5 0.3843 37100536 drupal_retrieve_form( ) .../form.inc:350
6 0.3843 37101368 feeds_tamper_ui_list_form( ) .../form.inc:841
7 0.3998 37993816 feeds_tamper_load_by_importer( ) .../feeds_tamper_ui.admin.inc:23
8 0.4142 40964624 feeds_tamper_get_plugins( ) .../feeds_tamper.inc:159
9 0.4142 40964624 ctools_get_plugins( ) .../feeds_tamper.inc:238
10 0.4143 40965432 ctools_plugin_load_includes( ) .../plugins.inc:278
On PHP 5.6.10 it's working fine.
Comments
Comment #2
Daniel Wentsch CreditAttribution: Daniel Wentsch commentedComment #3
twistor CreditAttribution: twistor as a volunteer commentedThis is fixed in dev.
#2567431: [PHP 7 Compatibility] case: feeds_tamper_default_value_callback function
Comment #4
Shiraz Dindarthanks for timely fix.
Comment #5
foxesden34 CreditAttribution: foxesden34 as a volunteer and commentedHi this is still not working with 7.50 and php7?
mod_fcgid: stderr: PHP Fatal error: Redefinition of parameter $source in /var/www/clients/client2/web7/web/dir/sites/all/modules/feeds_tamper/plugins/default_value.inc on line 36, referer: http://bbbb.co.uk/admin/structure/feeds/gbusers
root@fd:/var/www/web/dir#
Comment #6
kellyimagined CreditAttribution: kellyimagined commented7.54 is not working either. In order to get the import to work, I needed to turn off feeds_tamper + feeds_tamper_ui
Comment #7
waverate CreditAttribution: waverate commentedAs indicated by twistor, patch provided at #2 of #2567431: [PHP 7 Compatibility] case: feeds_tamper_default_value_callback function.
Verified using:
Comment #8
apermuy CreditAttribution: apermuy commentedHi!
Feeds Tamper 7.x-1.1+4-dev works fine for me with:
:)
Comment #9
Jens Peter CreditAttribution: Jens Peter commentedThis is not working for me.
PHP 7.1 gives error 500.
PHP 5.6 is working perfectly.
Core (7.56) and all modules updated is updated to latest version.
Comment #10
andres.torres CreditAttribution: andres.torres commentedcan confirm, still present with php 7.0.22 on Ubuntu
php --version
PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.22-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies
with Xdebug v2.4.0, Copyright (c) 2002-2016, by Derick Rethans
Comment #11
ikeigenwijs CreditAttribution: ikeigenwijs commentedmigration to php7.1
Switching to tamper dev branche worked for us.
php --version
PHP 7.1.8-2+ubuntu16.04.1+deb.sury.org+4 (cli) (built: Aug 4 2017 13:04:12) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.8-2+ubuntu16.04.1+deb.sury.org+4, Copyright (c) 1999-2017, by Zend Technologies
with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans
Comment #12
jose-khemistry CreditAttribution: jose-khemistry commentedRunning PHP 7.0.15
Drupal 7.56
Feeds Tamper 7.x-1.1
Renaming the one of the parameters fixed the issue for me in this case the last parameter $source to $sourceb
Comment #13
kevster CreditAttribution: kevster commentedAs per #11 I can confirm that switching to latest dev also fixed the issue for me - many thx.
7.56
php 7.0.22
nginx
Comment #14
jamesrward CreditAttribution: jamesrward as a volunteer commentedThis has been solved on dev but it has not made it into the latest stable release. If you aren't using the dev branch or applying this patch you will still get this error.