Has This Changed For Anyone Else?

Using a addon.xml section of:

  
    my_install_function
  

No longer seems to work on a new install when my_install_function() is in func.php. It used to work.

So how does one now call a private installation function when the addon is first installed?

And of course, there is no error indication at all.

Thoughts?

We use functions for integration of new payment methods. And it works for us on 4.11.x

I have in the past as well and it no longer seems to work on a client site (4.11.3). I've added a mode for 'check_install' that will call it after the install, but seems like it should load func.php after the settings are created and that 'my_install_function' would be called.... Wish there were some kind of logging of installation issues other than what's reported as errors via notifications.

Using a addon.xml section of:

  
    my_install_function
  

No longer seems to work on a new install when my_install_function() is in func.php. It used to work.

So how does one now call a private installation function when the addon is first installed?

And of course, there is no error indication at all.

Thoughts?

Using the new object oriented addon style, haven't really found an issue with the install functions.

Are you sure you don't have a duplicate function declaration or if you maybe have a typo?

If there was a duplicate function name, I’d get a php error at runtime.
Here is the exact copy/paste from addon.xml.



ez_euro_texts_install


Using the new object oriented addon style

What do yo mean by the above? Documentation link?

I have in the past as well and it no longer seems to work on a client site (4.11.3). I've added a mode for 'check_install' that will call it after the install, but seems like it should load func.php after the settings are created and that 'my_install_function' would be called.... Wish there were some kind of logging of installation issues other than what's reported as errors via notifications.

Do you want to call function before addon installation?

No, before it completes. I.e. for="install". Didn't know there was a for="preinstall".