Error 500

  • Solved
  • Posted 3 weeks ago

Hello,

I am experiencing a server error 500 on a website using the Voxel theme.

The issue occurs only for logged-out visitors.
As soon as I am logged into WordPress (admin or regular user), the site works normally.

Here is the exact error reported in the Apache / PHP logs:

“PHP Warning: Attempt to read property `post_type` on null in
`/wp-content/themes/voxel/single.php` on line 8

PHP Fatal error: Uncaught Error: Call to a member function `get_key()` on null in
`/wp-content/themes/voxel/single.php` on line 10”

It appears that `single.php` is trying to access a post object or a Voxel-related object that is `null` in certain contexts (specifically for logged-out users), which results in a fatal error.

Technical context:

* WordPress up to date
* Voxel theme up to date
* PHP 8.4 (also tested with PHP 8.2, same behavior)
* The error occurs on the frontend, referrer: [https://jobinu.net/](https://jobinu.net/)
* Same with all plugins deactivated

Could you please confirm whether this is a known issue with the theme, and if so, provide a fix or recommendation (for example, a proper object existence check, fallback handling, or the appropriate hook to use)?

Thank you in advance for your assistance.

Best regards,
Kevin