Support

Home Forums Event Espresso Premium FHEE__EE_Form_Input_Base___construct__input_args breaks system

FHEE__EE_Form_Input_Base___construct__input_args breaks system

Posted: March 14, 2019 at 3:52 am


ARAGATO

March 14, 2019 at 3:52 am

In reference to this thread https://eventespresso.com/topic/how-to-filter-venue-list-in-event-details-page-back-end/

Today I installed a new dev environment with all the latest version of PHP and stuff. It is a complete fresh install of WP and EE4 and the filter FHEE__EE_Form_Input_Base___construct__input_args “breaks” the EE4 system in some way. I am just calling the filter without any logic and it makes texts disappear, entered information disappear etc.

This is the EE4 – Events – Default Settings with the filter active:
https://i.imgur.com/6GCHGWb.png

This without using the filter
https://i.imgur.com/4viwbKx.png

When the filter is not used it shows the correct language (site settings, in this case German), it shows all texts + description and most importantly it shows the values that are actually store in those settings.


Tony

  • Support Staff

March 14, 2019 at 4:22 am

Hi ARAGATO

It’s not the filter, it is the code you are using to hook into the filer.

I know this because the filter on its own does nothing, it’s a point for you to hook into to do your own thing, so the problem isn’t the filter, it’s the code hooking into it.

I’ve just text the example I gave you again and used it to add your username to the venues on one of my test sites, works fine there – https://take.ms/Emf0f

Heres my default setting page with that function still active – https://monosnap.com/file/Iu6U8KMk7QlOW9sq3IObGDv7iubmdd

I am just calling the filter without any logic and it makes texts disappear, entered information disappear etc.

Please post the code you are using to Pastebin or a Gist so I can see what you have.


ARAGATO

March 14, 2019 at 4:34 am

Yes, I was wondering, too. Because it used to work. Now I installed a fresh VVV and it does not work anymore.

This would be the code:
https://gist.github.com/ARAGATO/cb8a09570155145ba3902b77a758ed47

I have many many of those calls, so the implementation should be correct. As mentioned it worked before, but now after a complete new vvv install it does not anymore.


Tony

  • Support Staff

March 14, 2019 at 4:45 am

That doesn’t show me enough to know if the code is correct, but what I suspect is happening is one of the functions you are using to hook into FHEE__EE_Form_Input_Base___construct__input_args is not returning the $input_args passed to the callback, which it must do in order for it to work.

So what does the acms_addon_global_settings_venue_settings_meta_data_locations_show_callback function look like?


ARAGATO

March 14, 2019 at 4:54 am

Jeeez. *Giant head from the sky looking at me: DISQUALIFED!*
Solved. The return parameter $input_args was lost in some if statements and was not returned in a particular case. Thanks.


Tony

  • Support Staff

March 14, 2019 at 4:59 am

🙂 Great, I’m glad you found it.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  Tony 5 days, 12 hours ago ago

Topic Tags

Tagged: , , ,

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!