• Resolved Surya Panda

    (@suryapanda)


    I got following error while saving a project.

    Fatal error: Uncaught Error: Call to undefined function sanitize_textarea_field() in D:\Project\eCom\wp-content\plugins\time-sheets\manage-projects.php:427 Stack trace: #0 D:\Project\eCom\wp-content\plugins\time-sheets\manage-projects.php(336): time_sheets_manage_projects->SaveNewProject() #1 D:\Project\eCom\wp-content\plugins\time-sheets\manage-projects.php(36): time_sheets_manage_projects->NewProject() #2 D:\Project\eCom\wp-includes\plugin.php(525): time_sheets_manage_projects->main(”) #3 D:\Project\eCom\wp-admin\admin.php(236): do_action(‘time-sheets_pag…’) #4 {main} thrown in D:\Project\eCom\wp-content\plugins\time-sheets\manage-projects.php on line 427

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

    (@suryapanda)

    Also I want to know if there is any way so that the site admin can view/edit timesheet of all users irrespective of the company/users. I understand when a timesheet is submitted the approver can do that. But say there is a super admin which creates and controls all clients, projects, users for employee and aprovers, so is there a way for the admin to see all the timesheets?

    More i explore this plugin, more i like this. Thanks for the great work, with some documentations and tweaks will be even greater. I read about you making documentations, but until it’s done please help to find way around it.

    Plugin Author mrdenny

    (@mrdenny)

    Hum, I’ll look in to that error. That sure shouldn’t happen. Are you on the newest version?

    For a page to just view the timesheets, there isn’t one. If you know what project the timesheets are on, you can go into the edit project screen. From there the number of hours uses is clickable, and that’ll give you a list of all the timesheets for that project. And from there you can just click the one you’d like to view.

    Do you think that a page in the admin screen to list all time sheets would be useful?

    Thread Starter Surya Panda

    (@suryapanda)

    Sorry about that error, yeah it’s fixed after I updated WP to latest version.

    I am sure adding a page where admin can see all timseheets would be super use full. The way you gave also serves the purpose, but it’s little indirect way. Rather it should be like at first show list of all timesheets to the admin and then can give options to filter by clients and projects or by name of the employee, date range etc.

    Anyway, thank you very much for developing this plugin, and helping out here.

    Surya

    Plugin Author mrdenny

    (@mrdenny)

    OK, cool. I’m less scared of you now. ??

    What version of WordPress were you running? I may need to update the minimum supported version that’s listed on the plugin.

    OK, I think I see where you’re going with that. Just a general backend search for the admins. I’ll add that to my list of stuff to add.

    Thread Starter Surya Panda

    (@suryapanda)

    Sorry, i didn’t notice my previous version of WP before i updated. It was on my local install of around 4 months or so old.

    Plugin Author mrdenny

    (@mrdenny)

    Looks like that function that I’m calling was introduced in 4.7.0, so I’m guessing you were running an older version. I’ve updated the minimum required version in the latest update of the plugin so hopefully this won’t come up again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal Error’ is closed to new replies.