• I am getting the following error many times in the server’s debug log.

    [02-Feb-2024 15:20:35 UTC] PHP Notice: Undefined variable: id in /home/mysite/P4ML4XO9/htdocs/wp-content/plugins/events-manager/templates/templates/search/form-advanced-trigger.php on line 5

    Is there a fix for this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Create the directory wp-content/plugin-templates/events-manager/templates/search then copy wp-content/plugins/events-manager/templates/templates/search/form-advanced-trigger.php to that directory then in the copied version add the following after the first line:

    if ( empty( $id ) ) $id = rand();
    Thread Starter bobjgarrett

    (@bobjgarrett)

    Are you sure about that new directory path?

    Yes.

    My suggestion won’t work. This PHP notice occurs when the file is accessed directly so adding a template override won’t help. The only way to fix this is to change the plugin file

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Notice Undefined Variable’ is closed to new replies.