Closed thepalk closed 8 months ago
This issue doesn't happen for me. Please provide a repo that reproduces the issue. Happy to take a look at it.
https://github.com/thepalk/trytorepseoprob
Hello Aerni,
Apologies for the delay in responding. To replicate the error you mentioned, please follow these steps:
Log in using the credentials: Email: test@test.test Password: testtest After logging in, please impersonate the user 'testy'. Alternatively,
You can directly log in as 'testy' using: Email: testy@tets.test Password: testtest Once you have completed these steps, you should be able to observe the error in question.
Thank you for your patience and cooperation.
Best regards, Pavlo
Thanks. This was an easy fix.
Awesome, thank you.
Description
After a recent update, our Statamic application started encountering a 500 Server Error for non-super users. The error is specifically related to the
Aerni\AdvancedSeo\Policies\SeoVariablesPolicy::view()
method. The method is expecting an argument of typeAerni\AdvancedSeo\Data\SeoDefaultSet
, butnull
is provided instead.Error Message
Environment
Troubleshooting Steps Taken
Temporary Solution
Uninstalling the
aerni/advanced-seo
addon resolved the issue, indicating a potential problem with the addon in the given environment.Expected Behavior
The
SeoVariablesPolicy::view()
method should handle the provided arguments correctly without causing a server error.Actual Behavior
The method is throwing an error due to a
null
value being passed where an instance ofAerni\AdvancedSeo\Data\SeoDefaultSet
is expected.