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.
When I try to detach a date, i click edit and can modify my info. After i click on save to create the node, I get:
Fatal error: Call to a member function getName() on a non-object in /sites/all/modules/date/date_api/date_api.module on line 278
Comments
Comment #1
mittalpatel CreditAttribution: mittalpatel commentedWhat version of PHP are you using?
Comment #2
kozmicblues CreditAttribution: kozmicblues commented5.2.16
Comment #3
mittalpatel CreditAttribution: mittalpatel commentedTry to update your PHP to 5.3.0 or later and see if the problem is resolved.
Comment #4
kozmicblues CreditAttribution: kozmicblues commentedYeah that doesn't work for me. Just say somewhere in the description that this module doesn't work with lower versions of php.
I won't upgrade the php that will affect many sites so that one module will work. You can close the bug. I'm no longer using this module. Thanks
Comment #5
toastyghost CreditAttribution: toastyghost commentedI hate how a lot of module developers don't stand by their work and try to pass the buck any time there's a problem they don't feel like figuring out. Better switch to nginx and recompile your kernel while you're at it; you're not getting any real help from this guy.
Comment #6
rooby CreditAttribution: rooby commented@toastyghost:
Remember that you are not paying this guy to work for you and he has no obligation to you at all.
It is very possible that he works on it in his own time, which he could instead be spending with his friends or family.
There is also nothing that states anywhere that you have to make a module work for any specific version of PHP.
PHP 5.2 is old now and 5.3 is technically better.
If someone specifically needs < 5.3 support they are welcome to make a patch to fix any issues (including you).
Looking at your account it seems you have not spent much of your own time contributing to the community you are expecting to do everything for you as you berate them.
Comment #7
rooby CreditAttribution: rooby commentedAlso, seeing as the error in the original post is from the date module it would be a good idea to also check over there.
See #1697322: Call to a member function getName() on a non-object in date api
It could possibly be a fix to this issue.
Comment #8
joelstein CreditAttribution: joelstein commentedLooks like this has nothing to do with Date Repeat Instance.
Comment #9
DamienMcKennaPer our discussion in #2613454: Port Date module functionality missing from 8.x core, the D8 branch is no longer going to be worked on, all changes should be made directly to core's datetime module. That said, we appreciate everyone's efforts, so thank you.