Active
Project:
Flex Slider
Version:
7.x-2.0-rc2
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Dec 2022 at 21:53 UTC
Updated:
8 Aug 2023 at 09:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
RBlackman commentedComment #3
sgroundwater commentedI hit the same error w/ PHP 8.x. I let AI help me with a possible fix. In case it helps others.
---
The error message indicates that the property "options" is being modified on a null value in the function flexslider_optionset_load().
To fix this issue, you can add a null check before attempting to modify the "options" property. Here's an updated version of the code that includes the null check:
In the updated code, we added an if statement to check if $optionset is not null before attempting to modify the "options" property. If $optionset is null, the modification will not be executed.
By including this null check, you can prevent the "Attempt to modify property on null" error.
Comment #4
dineshkumarbollu commentedProvided the patch changes suggested in #3, please review