Support » Plugins » [Plugin: Participants Database] Looks like 'database.php' file is missing

  • Resolved infazz


    Looks like ‘database.php’ file is missing

    Getting php warning and nothing loads on Participants database plugin first page.

    The error:

    Warning: include(database.php) [function.include]: failed to open stream: No such file or directory in /xx/xx/xx/xx/xx/wp-content/plugins/participants-database/participants-database.php on line 422

    Warning: include() [function.include]: Failed opening ‘database.php’ for inclusion (include_path=’.:/x/x/lib/php’) in /xx/xx/xx/xx/xx/wp-content/plugins/participants-database/participants-database.php on line 422

    Any one have a sollution for this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Seems to be solved now.

    Looks like some errors in menu

    It were duplicating the same first link tice in menu and linking to not existing page.

    After digging, I found out that first link is should be linked to “List Participants” page.

    Here’s how I fixed it:

    In “participants-database.php” in

    public function plugin_menu(){ on line 261

    Ireplaced THIS:
    [53 lines of code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    [55 lines of code moderated.]

    and defined a “add_menu_page” like a $listpage with adding to it a listpage function and menuslug. AND replaced all submenu pages slugs with new one.

    And that’s it 🙂

    Replaced THIS (original code):
    lines 271 to 323

    with THIS:

    have replaced the code as above, but didnt quite understand the last bit about defining a”add_menu_page”…, is that already done in the pasted bit?

    I am now getting….
    Warning: current() [function.current]: Passed variable is not an array or object in /wp-content/plugins/participants-database/classes/PDb_List.class.php on line 172

    the plugin looks like it could be great, but havent been able to play with it yet.
    any help would be greatly appreciated.


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Participants Database] Looks like 'database.php' file is missing’ is closed to new replies.