Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter jayfines1983

    (@jayfines1983)

    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

    Plugin Author mrdenny

    (@mrdenny)

    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.

    Thread Starter jayfines1983

    (@jayfines1983)

    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 1 year, 1 month ago by jayfines1983.
    • This reply was modified 1 year, 1 month ago by jayfines1983.
    Plugin Author mrdenny

    (@mrdenny)

    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.

    Thread Starter jayfines1983

    (@jayfines1983)

    It is working fine now. Thanks heaps!!

    Plugin Author mrdenny

    (@mrdenny)

    No problem. Thanks for letting me know about the issue.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cannot add Clients and Projects’ is closed to new replies.