by viznet

Easily fill out your work time and track project costs. With all your project spent time information in one place, you'll be a more organized and efficient business owner.

Cancel at any time!
Free Trial

#4108 - PHP Deprecated : Methods with the same name as their class

Open Bug? created by pranger 2 years ago

Hi! I have created a large number of projects, and now, if I try to add time to "all projects", my timesheet isn't saved, and I find this error in the log :

[03-Feb-2022 20:57:01 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; viz_SimpleTimesheet has a deprecated constructor in /home/crmbeladm/public_html/webapp/modules/viz_SimpleTimesheet/viz_SimpleTimesheet.php on line 44

If I select a single project from the dropdown, I can save my timesheet.

  1. pranger member avatar

    pranger

    2 years ago

    I realize this error is not responsible for the timesheet not beeing saved. I juste copied the first error in the log. Sorry about that.

    Still, I can't save my timesheet if "all projects" are displayed. And I can't find a relevant error in the log. I tried a quick repair wit hno luck. Any clue to where I should look?

  2. pranger member avatar

    pranger

    2 years ago

    Investigating further, I tried to enter time against every single one of my projects and it works.

    So I tried to reduce the number of projects in the timesheet. It works with 31 projects or less, but not with 32 or more. It might also be the number of project tasks : works with 141 or less and not with 142 or more.

    In php.ini all settings seemed fine (max execution time, max post size, etc) but I still rose everything with no change.

    Now I don't know where to look anymore.

  3. pranger member avatar

    pranger

    2 years ago

    Ok I found it.

    In php.ini, max_input_vars has to be very high. In my case, I have 60 projects with +- 5 project tasks each. Thats 300 lines, multiplied by 7 days, meaning I have more or less 2100 input variables.

    I think this should be added to the documentation.

  4. viznet member avatar

    viznet Provider

    2 years ago

    Hi, and thank you for your efforts with SimpleTimesheet add-on. If you still need support., please reach out to us directly via email: support@viznet.pl

    Regards

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating
  • "We needed a timesheet for all our office employees to log time against client projects, sales tasks and administrative tasks. This module is very us..." - pranger

    Read More Reviews