• I have a start time and a duration defined, but timeslots are not shown on the event page. Instead, this error is produced where the slots should be:

    
    Notice: Undefined variable: firstrow in /[...]/wp-content/plugins/rsvpmaker-custom.php on line 2040
    Notice: Undefined variable: firstrow in /[...]/wp-content/plugins/rsvpmaker-custom.php on line 2041
    
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author davidfcarr

    (@davidfcarr)

    Looks like you took advantage of the option to override pluggable functions with your own rsvpmaker-custom.php file. For the past year or more, I have been trying to weed out some PHP code that used to work fine but now raises errors. Either PHP or WordPress core or both have gotten fussier about little details like initializing variables.

    You will need to modify your custom code to initialize $firstrow = NULL before the first time it is accessed. Or start over from the current code for whatever function you are overriding and make the changes you want to make.

    Plugin Author davidfcarr

    (@davidfcarr)

    Correction: Looks like the timeslots feature isn’t working at all in my current release, regardless of customizations. Will have to look at that this weekend.

    Do you remember why you created your plugin override function?

    Thread Starter tPenguinLTG

    (@tpenguinltg)

    Yes, I did have an override for the event_content function. I tried it out without the customization and it was indeed not working, as you have observed. (I realize now that I copied the wrong error message. I had meant to copy the rsvpmaker-plugabble one, but I instead copied the custom one and changed the line numbers to reflect the plugabble error, forgetting about the filename.)

    The reason I made the override was to have the “Show attendees” button shown only when the user was logged in, and I had a sed command run every time the plugin was updated so that it always used the updated code. In hindsight, I should have just made that a feature request.

    • This reply was modified 8 years, 1 month ago by tPenguinLTG. Reason: error message clarification
    Plugin Author davidfcarr

    (@davidfcarr)

    version 4.5.6 has a fix for the timeslots function. While I was at it, I added the option of only displaying attendees to logged in members.

    Thread Starter tPenguinLTG

    (@tpenguinltg)

    I’ve just had a chance to update my site and the timeslots work again. Thanks for fixing it.

    I noticed that the option to only display the attendees to logged in members is per event, but I would like to be able to set this as default. Can you please add this to the global options?

    Thanks again.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘No timeslots shown’ is closed to new replies.