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

PHP Warning: Attempt to read property "comment_parent" on null in .../mdx/functions.php on line 346 #272

Open
x-Felix opened this issue Sep 2, 2024 · 1 comment

Comments

@x-Felix
Copy link

x-Felix commented Sep 2, 2024

My apache log constantly shows this php error message. Not sure it is mdx theme related. Thanks.

@x-Felix
Copy link
Author

x-Felix commented Sep 3, 2024

Possible fix.
Replace functions.php line 346,
if($comment->comment_parent > 0) {
with
if(isset($comment->comment_parent) && $comment->comment_parent > 0) {
Haven’t tested yet.

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

1 participant