Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I've added two ministry contents so far and on both of them after they save I get the following error.
Notice: Undefined index: und in eval() (line 4 of /home/www/aplighthouse.org/profiles/openchurch/modules/contrib/views/plugins/views_plugin_argument_validate_php.inc(52) : eval()'d code).
But other than that the page will display fine.
Comments
Comment #1
jamesacoker CreditAttribution: jamesacoker commentedI get the same error but also on the Events pages that I make. Seems to be the same error.
Comment #2
jamesacoker CreditAttribution: jamesacoker commentedI'm not sure if this is the best way to fix this but if you can access the settings.php file in your sites>default folder and add error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); to the bottom of that file it turns off error reporting. Whatever the error is it is probably still relevant but it doesn't plaster the red box at the top of your pages. Hope this helps.
Comment #3
TRPrecht CreditAttribution: TRPrecht commentedComment #4
drupalninja99 CreditAttribution: drupalninja99 commentedOh ok this is embedded PHP somewhere, I bet I can find it. You are correct that you can turn off errors but I still need to fix it. It is not a functionality problem per se, just an issue where I need to declare a variable or something in embedded php.
Comment #5
ezesapo CreditAttribution: ezesapo commentedI'm also experiencing this errors both in ministries and events.
Anyone solved it? (Beside the 'hidding' thing).
Thanks!
Comment #6
drupalninja99 CreditAttribution: drupalninja99 commentedI think I fixed this in dev. Going to roll out a new stable release this morning.
Comment #7
drupalninja99 CreditAttribution: drupalninja99 commentedReleased in alpha2 - http://drupal.org/node/1591396
Comment #8
Code Monkey CreditAttribution: Code Monkey commentedI'm not seeing the alpha2 release. Did you get it finished and posted?
Comment #9
drupalninja99 CreditAttribution: drupalninja99 commentedIt's here but its hidden for some reason? http://drupal.org/node/1591396 - I think only I can see it. This hasn't happened before.
Comment #10
drupalninja99 CreditAttribution: drupalninja99 commentedAdded 1.10-alpha3, we'll see if that shows up as public. I marked alpha2 as a security release bc it included a drupal security update but maybe that is some kind of flag that holds up the release or something?
Comment #11
Code Monkey CreditAttribution: Code Monkey commentedI see that one. I'll download it tomorrow and check it out.
Comment #12
revivefellowship CreditAttribution: revivefellowship commentedJust an update on this, I'm running alpha3 and still getting those same error messages as those above in this discussion. I'm going to turn off error reporting though so the red boxes won't post up all the time. But, wanted to bring that to your attention.
Mine specifically shows up on the particular events themselves and the ministries page:
Notice: Undefined index: und in eval() (line 4 of /home1/revivefe/public_html/profiles/openchurch/modules/contrib/views/plugins/views_plugin_argument_validate_php.inc(52) : eval()'d code).
Comment #13
drupalninja99 CreditAttribution: drupalninja99 commentedK I will look into this
Comment #14
drupalninja99 CreditAttribution: drupalninja99 commentedupping the priority
Comment #15
drupalninja99 CreditAttribution: drupalninja99 commentedDid you upgrade to alpha3 or do a complete new install?
Comment #16
drupalninja99 CreditAttribution: drupalninja99 commentedThe thing you need to check is this view -
/admin/structure/views/view/openchurch_related_downloads/edit in the Nid argument
The thing that you should see in alpha2/3 is the isset() function which keeps PHP from firing the undefined index warning. This I know is present in the latest version. When I made the change locally to an older install I had running on my machine, it fixed the issue. I am currently doing a full re-install to check but this should work:
Comment #17
drupalninja99 CreditAttribution: drupalninja99 commentedComment #18
Code Monkey CreditAttribution: Code Monkey commentedThis fixes the bug.
Comment #19
drupalninja99 CreditAttribution: drupalninja99 commentedPushed to 7.x-1.10-alpha5