Closed (fixed)
Project:
Automatic Entity Label
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Jul 2016 at 07:59 UTC
Updated:
24 Apr 2017 at 13:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
nitrocad commentedIt's very annoying, could this be solution?
/auto_entitylabel.module 282
Comment #3
beumont commentedI have the same problem and cannot find any solution for this. I am using PHP 7
Comment #4
beumont commentedTested:
/auto_entitylabel.module 282
+ $clone = clone $entity;
- drupal_alter('auto_entitylabel_title', $titles, clone $entity);
+ drupal_alter('auto_entitylabel_title', $titles, $clone);
Works!
Comment #5
zhouhana commentedWorks for me as well. I made a patch out of nitrocad's solution. (If I did this wrong, be nice, it's my first patch in years.)
Comment #6
zhouhana commentedSo I have this change committed in a separate issue branch in my local auto_entitylabel git repo, but I can't push. I get the error "fatal: unable to access 'https://git.drupal.org/project/auto_entitylabel.git/': The requested URL returned error: 403". Is this because I'm not a maintainer of the module? Should I let someone else push the change? Please excuse a patch newbie.
Comment #7
atiba commentedI've tried zhouhana's patch and I can confirm it works with PHP7. No notices anymore.
Comment #8
plazik commentedPath from #5 works for me too.
Comment #9
alesr commentedThis issue usually happens when you update PHP or deal with its error and exception handling settings.
http://php.net/manual/en/migration70.incompatible.php
So you may now end up with this notice:
Here's a rerolled patch from #5 to lose the hunks on applying.
RTBC without a doubt.
Comment #10
bmango commentedPatch from #9 fixed the error for me. Thank you
Comment #11
geraldito commentedPatch from #9 works for me too on PHP 7.0.16
Comment #12
giorgosk#9 applies and works please commit
Comment #13
nwom commented#9 worked great. Thank you!
Comment #14
renatog commentedHi people.
Works Good. Thanks everyone.
Comment #16
renatog commentedCommited in dev branch: 7.x-1.x.
Thank you very much.
Good Work and Good Week.
Regards.