• Resolved merzakabderrahim

    (@merzakabderrahim)


    Dear tareq, could you please help? Many Thanks.

    On a wordpress installation with only “wp erp” activated, I get this when I click on the “Employees” tab (themes twenty twenty or astra):

    Fatal error: Uncaught Exception: Table ‘ttttt.wp_8_usermeta’ doesn’t exist in xxxx/wp-content/plugins/erp/vendor/tareq1988/wp-eloquent/src/Eloquent/Database.php:150 Stack trace:
    #0 xxxx/wp-content/plugins/erp/vendor/illuminate/database/Query/Builder.php(1705): WeDevs\ORM\Eloquent\Database->select(‘select `wp_8_er…’, Array, true)
    #1 xxxx/wp-content/plugins/erp/vendor/illuminate/database/Query/Builder.php(1690): Illuminate\Database\Query\Builder->runSelect()
    #2 xxxx/wp-content/plugins/erp/vendor/illuminate/database/Eloquent/Builder.php(462): Illuminate\Database\Query\Builder->get(Array)
    #3 xxxx/wp-content/plugins/erp/vendor/illuminate/database/Eloquent/Builder.php(446): Illuminate\Database\Eloquent\Builder->getModels(Array)
    #4 xxxx/wp-content/plugins/erp/vendor/tareq1988/wp-eloquent/src/Eloquent/Database.php on line 150
    There has been a critical error on your website. Please check your site admin email inbox for instructions.

    With query monitor activated, I get This:

    Fatal error: Uncaught Exception: Table ‘ttttt.wp_8_usermeta’ doesn’t exist (SQL: select wp_8_erp_hr_employees.user_id, display_name from wp_8_erp_hr_employees left join wp_users on wp_8_erp_hr_employees.user_id = wp_users.ID left join wp_8_usermeta as gender on wp_8_erp_hr_employees.user_id = gender.user_id and gender.meta_key = ‘gender’ left join wp_8_usermeta as marital_status on wp_8_erp_hr_employees.user_id = marital_status.user_id and marital_status.meta_key = ‘marital_status’ where status = ‘active’ and wp_8_erp_hr_employees.deleted_at is null order by hiring_date desc limit 20 offset 0)
    in xxxx/wp-content/plugins/erp/vendor/tareq1988/wp-eloquent/src/Eloquent/Database.php on line 150

    Call stack:

    WeDevs\O\E\Database::select()
    wp-content/plugins/erp/vendor/illuminate/database/Query/Builder.php:1705
    Illuminate\D\Q\Builder::runSelect()
    wp-content/plugins/erp/vendor/illuminate/database/Query/Builder.php:1690
    Illuminate\D\Q\Builder::get()
    wp-content/plugins/erp/vendor/illuminate/database/Eloquent/Builder.php:462
    Illuminate\D\E\Builder::getModels()
    wp-content/plugins/erp/vendor/illuminate/database/Eloquent/Builder.php:446
    Illuminate\D\E\Builder::get()
    wp-content/plugins/erp/modules/hrm/includes/functions-employee.php:149
    erp_hr_get_employees()
    wp-content/plugins/erp/modules/hrm/includes/class-employee-list-table.php:389
    WeDevs\E\H\Employee_List_Table::prepare_items()
    wp-content/plugins/erp/modules/hrm/views/employee.php:23
    include()
    wp-content/plugins/erp/modules/hrm/includes/admin/class-menu.php:284
    WeDevs\E\H\A\Admin_Menu::employee_page()
    call_user_func()
    wp-content/plugins/erp/modules/hrm/includes/admin/class-menu.php:233
    WeDevs\E\H\A\Admin_Menu::router()
    wp-includes/class-wp-hook.php:287
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:311
    WP_Hook::do_action()
    wp-includes/plugin.php:478
    do_action()
    wp-admin/admin.php:254
    There has been a critical error on your website. Please check your site admin email inbox for instructions.

    Abderrahim from Casablanca – Morocco

Viewing 1 replies (of 1 total)
  • Plugin Support Mehedi Hasan

    (@thebengalboy)

    Hello @merzakabderrahim

    Can you please try once again after deactivating the WPERP and then activating it? The missing database table should be created once you re-activate it.

    However, if it doesn’t help, please share the Site Health information.

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘wp erp “employees” broken’ is closed to new replies.