Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter sgt621

    (@sgt621)

    @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.

    Thread Starter sgt621

    (@sgt621)

    I 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!

    Thread Starter sgt621

    (@sgt621)

    That 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 751
    Thread Starter sgt621

    (@sgt621)

    So it looks like the error message is a standard GCP load balancer error message that you get when your server isn’t healthy.

    Thread Starter sgt621

    (@sgt621)

    Existing 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.

    Thread Starter sgt621

    (@sgt621)

    Hi,

    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.


    Thread Starter sgt621

    (@sgt621)

    I 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 |
    +———–+———————+——————————————-+———-+

    • This reply was modified 1 week, 6 days ago by sgt621.
    • This reply was modified 1 week, 6 days ago by sgt621.
    Thread Starter sgt621

    (@sgt621)

    @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.

    Thread Starter sgt621

    (@sgt621)

    I 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);
    Thread Starter sgt621

    (@sgt621)

    According 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.

    • This reply was modified 3 months, 1 week ago by sgt621.
    • This reply was modified 3 months, 1 week ago by sgt621.
Viewing 10 replies - 1 through 10 (of 10 total)