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

mittalpatel’s picture

What version of PHP are you using?

kozmicblues’s picture

5.2.16

mittalpatel’s picture

Try to update your PHP to 5.3.0 or later and see if the problem is resolved.

kozmicblues’s picture

Yeah 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

toastyghost’s picture

I 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.

rooby’s picture

@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.

rooby’s picture

Also, 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.

joelstein’s picture

Project: Date Repeat Instance » Date
Version: 7.x-1.2 » 8.x-1.x-dev
Issue summary: View changes

Looks like this has nothing to do with Date Repeat Instance.

DamienMcKenna’s picture

Status: Active » Closed (won't fix)

Per 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.