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

Attempt to read property "ID" on null in #42

Open
dougherty-dev opened this issue Jun 30, 2022 · 2 comments
Open

Attempt to read property "ID" on null in #42

dougherty-dev opened this issue Jun 30, 2022 · 2 comments

Comments

@dougherty-dev
Copy link

class-urvanov-syntax-highlighter-plugin.php on line 666:

$post_id = strval($post->ID);

There is no post-ID for 404s.

@urvanov-ru
Copy link
Owner

I didn't fix it with this update. But I will try to fix it with the next one.

@urvanov-ru
Copy link
Owner

Actually, it is really strange, that global $post variable is null. I don't know why it should be...

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

2 participants