Sidemenu laptop styles PHP error
Hello,
I'm seeing PHP errors on array to string conversions for line 133 of functions/modules/class-mfn-sidemenu.php
Looking into it, the code used for the laptop size styles differs from that of others; making me think it has been missed.
Can you please add the if(is_array($value)... coding to the laptop styles section too?
Comments
Hey,
Please send us the WordPress dashboard and FTP access privately through the contact form, which is on the right side at http://themeforest.net/user/muffingroup#contact, and we will check what might be the reason.
Notice!
Please attach a link to this forum discussion.
Sending incorrect or incomplete data will result in a longer response time.
Therefore, please ensure that the data you send are complete and correct.
Thanks
Sorry, this isn't possible here, hence why I provided specific files/line numbers.
It should be apparent to the developers from the difference in coding that something has been overlooked.
Can you provide more details on how to reproduce this problem, please?
What steps did you proceed when the error appeared?
Best regards
I believe this was setting the padding of the sidebar custom template.
I checked that, and modifying this value does not trigger any error.
Are there any other steps?
Best regards
Not that I recall. Running on PHP 8.1, if that makes a difference.
But if you please look at the source code, you will see the difference in the laptop styles vs tablet styles coding.
Tablet has further options that laptop doesn't - which resolves the issue if the tablet code is used in laptop too.
It specifically checks if the variables are arrays, which the laptop doesn't.
As we cannot replicate this issue in our environment, we are not sure if the adjustments we made in the files are correct.
If you would be so kind as to download this file, replace it with your theme package, and let us know if everything works fine.
If you confirm that it works and does not break anything else, we will introduce this correction in the upcoming update.
Best regards
Hello, yes - this is exactly what I have in the file at the moment - which works.
Alright, we will introduce it in the upcoming update.
Best regards
Thank you!