sgt621
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: multisite deployment fails, but no log file generated@bigtomato BTW, what did you use to hit the browser last night? I posted my response to you and left my seat for a few minutes. That’s about when the error messages appeared in the log file. I’ve been using Chrome, but haven’t been able to generate anything in the logs.
Forum: Fixing WordPress
In reply to: multisite deployment fails, but no log file generatedI think you’re right! I have not configured these. Let me play with the configuration and get back to you. Thanks for all your help!
Forum: Fixing WordPress
In reply to: multisite deployment fails, but no log file generatedThat would make sense if it never worked, but it’s been working for months without multisite. It’s been working on https with the domain name and certificate for a few months now. I will look through that thread though. Maybe I’ll find something.
FYI, I just went through the debug.log -- the timestamp is set to GMT:
[09-Nov-2024 04:07:11 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /var/www/html/wp-includes
/ms-settings.php on line 57
[09-Nov-2024 04:07:11 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of
type string is deprecated in /var/www/html/wp-includes/ms-settings.php on line 57
[09-Nov-2024 04:07:11 UTC] PHP Warning: Undefined array key "host" in /var/www/html/wp-includes/cano
nical.php on line 716
[09-Nov-2024 04:07:11 UTC] PHP Deprecated: strtolower(): Passing null to parameter #1 ($string) of t
ype string is deprecated in /var/www/html/wp-includes/canonical.php on line 716
[09-Nov-2024 04:07:11 UTC] PHP Warning: Undefined array key "host" in /var/www/html/wp-includes/cano
nical.php on line 727
[09-Nov-2024 04:07:11 UTC] PHP Warning: Undefined array key "host" in /var/www/html/wp-includes/cano
nical.php on line 730
[09-Nov-2024 04:07:11 UTC] PHP Warning: Undefined array key "scheme" in /var/www/html/wp-includes/ca
nonical.php on line 751
[09-Nov-2024 04:07:11 UTC] PHP Warning: Undefined array key "host" in /var/www/html/wp-includes/cano
nical.php on line 716
[09-Nov-2024 04:07:11 UTC] PHP Deprecated: strtolower(): Passing null to parameter #1 ($string) of t
ype string is deprecated in /var/www/html/wp-includes/canonical.php on line 716
[09-Nov-2024 04:07:11 UTC] PHP Warning: Undefined array key "host" in /var/www/html/wp-includes/cano
nical.php on line 727
[09-Nov-2024 04:07:11 UTC] PHP Warning: Undefined array key "host" in /var/www/html/wp-includes/cano
nical.php on line 730
[09-Nov-2024 04:07:11 UTC] PHP Warning: Undefined array key "scheme" in /var/www/html/wp-includes/ca
nonical.php on line 751Forum: Fixing WordPress
In reply to: multisite deployment fails, but no log file generatedSo it looks like the error message is a standard GCP load balancer error message that you get when your server isn’t healthy.
Forum: Fixing WordPress
In reply to: multisite deployment fails, but no log file generatedExisting WordPress site. I am currently converting it to multisite.
There is nothing logging to debug.log, even though it is working.
https://samgcom.com
If I take the multisite config out of wp-config.php, it works just fine. If multisite is configured, I cannot see the front end, but I can access the backend — all the files and the DB.Forum: Fixing WordPress
In reply to: multisite deployment fails, but no log file generatedHi,
Thanks for your reply. I actually removed the logfile generation from the if clause. So, now, the code unconditionally creates a log file. I also introduced a bug and verified that the log file is generated, then I removed the bug.
And that actually was my entire .htaccess file listed above.
I followed the link that you listed. I cannot find anything they are doing that does not match what I am doing. I also added the following lines to wp-config.php, but there is still nothing being logged to wp-content/debug.log:
define( 'SCRIPT_DEBUG', true );
define( 'SAVEQUERIES', true );
define('WP_DEBUG_DISPLAY', true);
FYI, if I remove the changes from the wp-config.php file, I can get the webapp to load. I don't know if that means the .htaccess file is correct or if the file is ignored without a multisite config in wp-config.php.
Also, the error appears to be 502 Bad Gateway. I am running on GCP (Google Cloud) and am responsible for managing the gateway myself, but why would changing to multisite affect the gateway? Maybe something else is misconfigured somewhere.
Please let me know if you have any thoughts.Forum: Fixing WordPress
In reply to: multisite deployment fails, but no log file generatedI should note that my plugins are inactive, but I have noticed an issue with permalink. It looks like it’s on the right setting, but I don’t believe it’s working properly. Here is a sample link to editing a post (I’ve changed the domain, so you won’t be able to follow the link.):
https://mysite.com/wp-admin/post.php?post=17&action=edit
Here is my SQL:mysql> select * from wp_options where option_name=’permalink_structure’;
+———–+———————+——————————————-+———-+
| option_id | option_name | option_value | autoload |
+———–+———————+——————————————-+———-+
| 28 | permalink_structure | /blog/%year%/%monthnum%/%day%/%postname%/ | yes |
+———–+———————+——————————————-+———-+Forum: Developing with WordPress
In reply to: cannot comment on post through API@shyamgadde thanks for looking into this. I made all the changes in #2, but that did not solve the issue. I’ve tried to switch the permalink on the Settings > Permalinks page, but the change has not worked. I still have to use the old URL, even after I save the changes. Not sure if there is something else misconfigured.
Forum: Fixing WordPress
In reply to: cannot login to wp-login.phpI added the following lines to wp-config.php, but I don’t see different behavior:
define('FORCE_SSL_ADMIN', true); define('FORCE_SSL_LOGIN', true);
Forum: Fixing WordPress
In reply to: cannot login to wp-login.phpAccording to the db, siteurl and home in wp_options are set to the same value: https://mysite.com
I have not gotten to a point where I can install plugins. Not sure if there are some installed by default.
I did a clean install on localhost, then did a clean install on GCP (Google Cloud). The steps are the same, with the exception that GCP has increased complexity built in.