Cannot add Clients and Projects
-
My bad. User error. Issue fixed
-
This topic was modified 2 years, 7 months ago by
jayfines1983.
The page I need help with: [log in to see the link]
-
This topic was modified 2 years, 7 months ago by
-
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.5Can 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 545Call stack:
time_sheets_manage_projects::SaveNewProject()
wp-content/plugins/time-sheets/manage-projects.php:381time_sheets_manage_projects::NewProject()
wp-content/plugins/time-sheets/manage-projects.php:43time_sheets_manage_projects::main()
wp-includes/class-wp-hook.php:310WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:334WP_Hook::do_action()
wp-includes/plugin.php:517do_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 Code
insert into wp_yx6h2c2ddb_timesheet_clients_users (ClientId, user_id) values (11, 1)+time_sheets_db->query()
wp-content/plugins/time-sheets/db.php:21time_sheets_manage_projects->add_client()
wp-content/plugins/time-sheets/manage-projects.php:311time_sheets_manage_projects->main()
wp-content/plugins/time-sheets/manage-projects.php:37do_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 2 years, 7 months ago by
jayfines1983.
-
This reply was modified 2 years, 7 months 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.
It is working fine now. Thanks heaps!!
No problem. Thanks for letting me know about the issue.
The topic ‘Cannot add Clients and Projects’ is closed to new replies.