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

Trying to access array offset on value of type null #18

Closed
aanimation opened this issue Feb 23, 2023 · 8 comments
Closed

Trying to access array offset on value of type null #18

aanimation opened this issue Feb 23, 2023 · 8 comments

Comments

@aanimation
Copy link

Hi, im using craft-inventory to check fields, but actually after install on craft 4.3.10
i got this, pls help

Trying to access array offset on value of type null

in /var/www/html/vendor/doublesecretagency/craft-inventory/src/services/InventoryService.php line 179

@lindseydiloreto
Copy link
Collaborator

Hi @aanimation, sorry for the late response.

Do you have any other information regarding this error? Can you still reproduce the issue?

If you can, please take a screenshot of the full stack trace.

@lindseydiloreto
Copy link
Collaborator

This sounds a lot like #16... Unfortunately, I'm having trouble reproducing it.

@aanimation Would you be willing to provide a copy of your database? I suspect this only happens to sites which have been updated from an older version of Craft.

@MattWilcox
Copy link

MattWilcox commented Apr 21, 2023

I've just installed this on a new project and instantly hit the error. Not an updated Craft. I can throw a DB your way if it helps.

Screenshot 2023-04-21 at 15 47 21

@lindseydiloreto
Copy link
Collaborator

That sounds great @MattWilcox, thanks! I'll ping you on Discord 👍

@lindseydiloreto
Copy link
Collaborator

Great news, this is fixed in v3.0.0! 🎉

Thanks for lending me your database @MattWilcox, it made a huge difference. 🙏

@anita-chouhan
Copy link

Hello, I am also getting the same error for craft-inventory plugin on Craft CMS version 4.5.9

Screenshot 2023-11-09 at 3 16 49 PM

Additional Info
Craft CMS version: 4.5.9
Field Inventory version: 3.1.1
PHP version: 8.0.15

@anita-chouhan
Copy link

Hello @lindseydiloreto, any updates on the reported issue?

@lindseydiloreto
Copy link
Collaborator

Hi @anita-chouhan,

Despite the similar error message, this seems unrelated to the original post.

Would you mind sharing a copy of your database with me? That would make it much easier for me to track down the problem.

Feel free to DM me on Discord, where you can send me the files needed to reproduce the issue.

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

4 participants