Hello, if the screen is completely blank, that usually indicates a server-side error. If the page shows the main site header and footer, but the main content area is empty, that usually indicates a blank Content Template. If you edit one of the custom posts in the admin editor, is there a Content Template assigned to this post? If so, edit the content template and check to be sure you have added some content in the Content Template. Or choose "No template" in the Content Template setting for this post, and test again.
If the page is completely blank, we can try some troubleshooting steps.
- Temporarily switch to a default theme like Twenty Twenty One
- Temporarily deactivate any custom code snippets in Toolset > Settings > Custom Code
- Temporarily deactivate any plugins except Types and Blocks (or Views if you use the legacy Views plugin)
- Test the post again.
- If the problem is resolved, reactivate your theme, snippets, and other plugins one by one until the problem returns
- If the problem is not resolved, please provide your debug information in the debug fields provided for your next reply, as explained here: https://toolset.com/faq/provide-debug-information-faster-support/
Hello again. I get white screen if post has "go/" in the permalink. If I change the "go/" string in URL to something different, it's working. I don't have any idea why it may happen. Please help.
Thanks in advance.
Yes, I tried deactivating plugins, but as I said if the post permalink contains the string "go/" then the screen is blank, if I change "go/" string to something different then everything is working fine. Do you have any ideas why it might happen? Thank you.
Thank you! I'm feeling much better today, but I'm not sure why the /go in the URL would cause a problem. I see you are developing locally on a .local domain, is the problem happening on a live server as well, or only in a local development test? We should check the server logs for more information about the whitescreen error. If you are not familiar with WP / PHP server logs, I can show you how to activate one temporarily. Go in your wp-config.php file and look for
define('WP_DEBUG', false);
Change it to:
define('WP_DEBUG', true);
Then add these lines, just after the WP_DEBUG line:
Save the wp-config.php file updates to the server. Then try to visit one of the pages with /go in the URL. You should see a white screen again. If any server-side errors were triggered, it will create an error_log.txt file in your site's root directory. Please download this error_log.txt file to your computer, open it in any text editing software, and copy its contents. Paste those contents in your next reply. Once that is done, you can revert the changes you made to wp-config.php and delete the log file.
If no error_log.txt file is generated by loading one of the /go pages, I will need to log in and take a closer look on a live server environment. If that is okay, please provide login credentials in the private reply fields here.
The topic ‘[Closed] Custom post type page white screen’ is closed to new replies.