$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>posts - Multisite Issue on Subdomain's article pages|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

posts - Multisite Issue on Subdomain's article pages

matteradmin9PV0评论

I created an article under the subdomain that is in my multisite. Let's call the subdomain ztak.mydomain When I go to the main page of ztak.mydomain, the page shows appropriately. When I click any of the article that is in my home page, I get redirected to a blank white page (500 Error).

I checked to make sure my virtual host is setup correctly .htaccess is setup correctly database is setup correctly

Not exactly sure what's causing this. My dev works just fine. I copied the cod e and are exact. My only guess is that something else is in the server, where ztak.domain lives, that's causing 500 Error, but haven't been able to narrow it down yet.

Anyone encountered this? If yes, how did you resolved the issue?

I created an article under the subdomain that is in my multisite. Let's call the subdomain ztak.mydomain When I go to the main page of ztak.mydomain, the page shows appropriately. When I click any of the article that is in my home page, I get redirected to a blank white page (500 Error).

I checked to make sure my virtual host is setup correctly .htaccess is setup correctly database is setup correctly

Not exactly sure what's causing this. My dev works just fine. I copied the cod e and are exact. My only guess is that something else is in the server, where ztak.domain lives, that's causing 500 Error, but haven't been able to narrow it down yet.

Anyone encountered this? If yes, how did you resolved the issue?

Share Improve this question asked Jan 18, 2019 at 23:41 ztakztak 1 1
  • 1 This would be a white screen of death with a http 500 error code. This is your Apache servers way of saying "I asked PHP to do stuff, but something went wrong, I don't know what it is though, ask PHP, here's the standard 500 error code". You need to look up your PHP error logs to find out what the actual error message is – Tom J Nowell Commented Jan 19, 2019 at 0:14
Add a comment  | 

1 Answer 1

Reset to default 0

Welcome!

As Tom mentions in his comment, a 500 error is just a generic error code for a php error. In most server environments, you can go to your wp-config.php file and make sure define( 'WP_DEBUG', true ); is set. This will try to print the actual PHP error to the screen.

After that, fix the PHP error(s) you see and you should be golden!

If all your code is the same, and it is working on your dev environment but not your production server, I'd suggest checking PHP versions. PHP 5.x and PHP 7.x have a lot of differences. Many things that were warnings in the older version are now fatal errors in the newer version, and some features changed which could cause functions and variables to no longer work and throw fatal errors.

If you have trouble fixing your PHP error after you get a print-out of it, just make a question about it and we'll help you out with that too.

Post a comment

comment list (0)

  1. No comments so far