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

Warning: Trying to access array offset on value of type null in /app/code/community/Zendesk/Zendesk/Model/Api/Tickets.php on line 85 #181

Open
m-overlund opened this issue Jan 25, 2023 · 7 comments · May be fixed by #185

Comments

@m-overlund
Copy link

Maybe a PHP8 error?
Using OpenMage 19.4.21

Warning: Trying to access array offset on value of type null  in app/code/community/Zendesk/Zendesk/Model/Api/Tickets.php on line 85

TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in app/code/community/Zendesk/Zendesk/Model/Api/Tickets.php:85

#0 app/design/adminhtml/default/default/template/zendesk/order/tickets.phtml(28): Zendesk_Zendesk_Model_Api_Tickets->forOrder()


@agrohs
Copy link
Contributor

agrohs commented Feb 8, 2023

Hello @m-overlund, thanks for reaching out on here. If you have any more info/details or a PR to resolve, we'd certainly appreciate any help on it.

@agrohs
Copy link
Contributor

agrohs commented Feb 8, 2023

Also, just wanted to confirm you are running the latest version of the code? I see that you have a forked version that is a decent number of commits behind and want to ensure the issue is in the main codebase/not your fork?

@m-overlund
Copy link
Author

We do use Extension Version: 3.0.1
( The fork is just related to pull request #141 )

m-overlund added a commit to m-overlund/magento_extension that referenced this issue Mar 30, 2023
@m-overlund m-overlund linked a pull request Mar 30, 2023 that will close this issue
@m-overlund
Copy link
Author

Created a pull request to fix this error

@agrohs
Copy link
Contributor

agrohs commented Apr 4, 2023

I'll have the team take a look over and get it merged. Thanks @m-overlund!

cc: @rsbowers

@agrohs
Copy link
Contributor

agrohs commented Jul 5, 2023

@rsbowers ?

@ajbonner
Copy link

@rsbowers just checking also re the above, and more generally if project is now 'sunsetted'?

ajbonner added a commit to muscleandstrength/zendesk-magento-extension that referenced this issue Jan 15, 2024
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

Successfully merging a pull request may close this issue.

3 participants