Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
funsurfer2008 opened this issue Nov 14, 2024 · 10 comments
Open

Comments

@funsurfer2008
Copy link

funsurfer2008 commented Nov 14, 2024

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 funsurfer2008 changed the title Project Report Error 500 with timesheet 5.0.2 and dolibarr 5.0.2 Project Report Error 500 with timesheet 5.0.2 and dolibarr 20.0.2 Nov 14, 2024
@funsurfer2008
Copy link
Author

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

@tronx2100
Copy link
Collaborator

tronx2100 commented Nov 20, 2024

@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...

@funsurfer2008
Copy link
Author

@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...

i dont think that it is a bug: Dolibarr/dolibarr#31782
What i am understanding is, that the want make a script für migration. and i dont find any bug about extraatributes.

@funsurfer2008
Copy link
Author

btw i can not make any timesheet at the moment for my projects.
hope you can fix it soon ;)

brgds

@tronx2100
Copy link
Collaborator

Hi again,
the reason why it causes errors is the sql inside the extra attributes from timesheet. but also when the syntax is fixed (changed to the new syntax).. the dolibarr 20x does not work because 20xx and newer des not correct read the sql inside the extra attributes. maybe any guru from dolibarr can check the reason inside the extraattributes reader ... and no timesheet is not the only affected modules.

@patrice-go-dsi
Copy link

I have exactly the same issue :
Timesheet : 5.0.2
Dolibarr : 20.0.2

@patrice-go-dsi
Copy link

Any news for this issue ?

@tronx2100
Copy link
Collaborator

Same problem exists. Because dolibarr can not read the seql syntax from extra option fields

@funsurfer2008
Copy link
Author

sorry for closing. the Bug is also exist in 20.0.3
-> we need this report really for work.

@funsurfer2008
Copy link
Author

as i wrote here: #261 i changed the syntax an extrafields are working again. can you explain a littel more why dolibarr is the thing taht dont work?

brgds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants