delcroip / dolibarr_project_timesheet

Timesheet view for project in Dolibarr
https://demo-timesheet.pmpd.eu
GNU Affero General Public License v3.0
36 stars 32 forks source link

Project Report Error 500 with timesheet 5.0.2 and dolibarr 20.0.2 #264

Open funsurfer2008 opened 1 week ago

funsurfer2008 commented 1 week ago

if i want to create a prjectreport and become error 500 in web. this is the log in cli: AH01071: Got error 'PHP message: PHP Warning: Undefined array key 25 in /home/A-SQUARE/web/erp.a-square.at/public_html/custom/timesheet/core/modules/pdf/pdf_rat.modules.php on line 159; PHP message: PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /home/A-SQUARE/web/erp.a-square.at/public_html/custom/timesheet/core/modules/pdf/pdf_rat.modules.php:159\nStack trace:\n#0 /home/A-SQUARE/web/erp.a-square.at/public_html/custom/timesheet/TimesheetReportProject.php(150): pdf_rat->writeFile()\n#1 {main}\n thrown in /home/A-SQUARE/web/domain.xxx/public_html/custom/timesheet/core/modules/pdf/pdf_rat.modules.php on line 159', referer: https://domain.xxx/custom/timesheet/TimesheetReportProject.php?action=reportproject

funsurfer2008 commented 6 days ago

@tronx2100 do you know if this has to do with the bug in core too? how can we fix this?

tronx2100 commented 5 days ago

@tronx2100 do you know if this has to do with the bug in core too? how can we fix this?

i don't think so because it has to do with the extraattributes handling in the dolibarr core...