Cannot add Clients and Projects

[ad_1]

I am failing to add clients and Projects. I have the buttons but entries are not being saved.
I press the save button but the record is not saved! Running Version 1.33.5

Can you install the plugin “Query Monitor” (it’s by John Blackbourn). Once you have that installed, try to add a client and/or project. You’ll then get a new menu at the top with the amount of time and size of the page showing. If you mouse over that there might be a database errors page. Click on that, and if you can send me what it says, I can figure out why it isn’t happy.

Hi MrDenny.

Thanks for the prompt response. I have carried out the instructions above and here is the error dump

Fatal error: Uncaught Error: Undefined constant “hourly_rate”
in /var/www/wp-content/plugins/time-sheets/manage-projects.php on line 545

Call stack:

  1. time_sheets_manage_projects::SaveNewProject()
    wp-content/plugins/time-sheets/manage-projects.php:381
  2. time_sheets_manage_projects::NewProject()
    wp-content/plugins/time-sheets/manage-projects.php:43
  3. time_sheets_manage_projects::main()
    wp-includes/class-wp-hook.php:310
  4. WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:334
  5. WP_Hook::do_action()
    wp-includes/plugin.php:517
  6. do_action()
    wp-admin/admin.php:259

Query Monitor

—-

NOTE: the error messages come when adding a new Project only. With adding new Client I get a message saying Client added successfully, however its not populating any table or showing up anywhere that client has been added.

I’m also seeing a massive dump of logs/ warning messages at the bottom after installing the Query monitor plugin. Not sure if you want to see this as well. I can copy it into notepad and send as an attachment.

Database ErrorsQueryCallerComponentError MessageError Codeinsert into wp_yx6h2c2ddb_timesheet_clients_users (ClientId, user_id) values (11, 1)+

  1. time_sheets_db->query()
    wp-content/plugins/time-sheets/db.php:21
  2. time_sheets_manage_projects->add_client()
    wp-content/plugins/time-sheets/manage-projects.php:311
  3. time_sheets_manage_projects->main()
    wp-content/plugins/time-sheets/manage-projects.php:37
  4. do_action('time-sheets_page_timesheet_manage_clients')
    wp-includes/plugin.php:517

Plugin: time-sheetsDuplicate entry ’11-1′ for key ‘wp_yx6h2c2ddb_timesheet_clients_users.PRIMARY’1062

  • This reply was modified 7 hours, 4 minutes ago by jayfines1983.
  • This reply was modified 6 hours, 34 minutes ago by jayfines1983.

Looks like I missed a $ when accessing a variable. There’s an updated build being uploaded right now which fixed this (and another bug). You should see it shortly.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer