Package: wordpress
Version: 5.0.10+dfsg1-0+deb10u1
Severity: normal

Dear Maintainer,

  When attempting to log out of a newly installed WordPress site, it redirects 
to "http://wp-login.php/?loggedout=true"; (it's miss  ing the hostname). I 
followed the instructions on the wiki to install: 
https://wiki.debian.org/WordPress, but will post my proce  dure below as well.
  
  There are no custom themes or plugins installed. It was a fresh install of 
WordPress on a fresh install of Debian. Everything el  se seems to work as 
intended except for logging out. As a test, I upgraded a previous installation 
to Testing and the issue I'm   describing does not occur in the newer version 
of the WordPress package, so I'm assuming that it only affects Stable (or just 
me  ?). I also installed using the tar.gz from the WordPress site and the issue 
is not present using that method either.

#####################
# Steps to reproduce
#####################
Install Debian 10.6 on KVM virtual machine in Proxmox
 
Update Debian:
    sudo apt update && sudo apt upgrade

Install packages:
    sudo apt install wordpress curl apache2 mariadb-server

Secure database:
    sudo mysql_secure_installation

Set hostname
    sudo hostnamectl set-hostname wpbug

Edit /etc/hosts:
    sudoedit /etc/hosts
    127.0.0.1 wpbug.local.lan wpbug

Run wordpress helper script:
    cd /usr/share/doc/wordpress/examples
    sudo bash setup-mysql -n wordpress wpbug.local.lan

Configure apache:
    sudoedit /etc/apache2/sites-available/wordpress.conf 
  
  <VirtualHost *:80>
          ServerName wpbug.local.lan
  
          ServerAdmin webmas...@local.lan
          DocumentRoot /usr/share/wordpress
  
          Alias /wp-content /var/lib/wordpress/wp-content
          <Directory /usr/share/wordpress>
              Options FollowSymLinks
              AllowOverride Limit Options FileInfo
              DirectoryIndex index.php
              Require all granted
          </Directory>
          <Directory /var/lib/wordpress/wp-content>
              Options FollowSymLinks
              Require all granted
          </Directory>
  
          ErrorLog ${APACHE_LOG_DIR}/error.log
          CustomLog ${APACHE_LOG_DIR}/access.log combined
  </VirtualHost>
  
Disable default site:
    sudo a2dissite 000-default.conf

Enable site:
    sudo a2ensite wordpress.conf

Reload apache:
    sudo systemctl reload apache2

Visit site: http://wpbug.local.lan

Perform initial setup

Log in: http://wpbug.local.lan/wp-login.php

Use 'Log Out' in upper right corner of the screen in the admin header.

It redirects to http://wp-login.php/?loggedout=true (hostname is missing)

#####################
# Tests
#####################
I changed sources.list from buster to testing then upgraded. I did not change 
any config files or anything else. The log out iss  ue was gone.

On a new vm I downloaded the latest version of WordPress from the wordpress 
site, extracted it to /var/www/wordpress, changed th  e apache config to point 
to that directory and there was no log out issue.

On a new vm I downloaded the same version as in stable (5.0.10), extracted it 
to /var/www/wordpress, changed the apache config t  o point to that directory 
and there was no log out issue.


-- System Information:
Debian Release: 10.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-11-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages wordpress depends on:
ii  apache2 [httpd]                             2.4.38-3+deb10u4
ii  ca-certificates                             20200601~deb10u1
ii  libapache2-mod-php                          2:7.3+69
ii  libapache2-mod-php7.3 [libapache2-mod-php]  7.3.19-1~deb10u1
ii  libjs-cropper                               1.2.2-1
ii  mariadb-client-10.3 [virtual-mysql-client]  1:10.3.23-0+deb10u1
ii  php-gd                                      2:7.3+69
ii  php-getid3                                  1.9.17+dfsg-1
ii  php-mysql                                   2:7.3+69
ii  php7.3-gd [php-gd]                          7.3.19-1~deb10u1
ii  php7.3-mysql [php-mysqlnd]                  7.3.19-1~deb10u1

Versions of packages wordpress recommends:
ii  wordpress-l10n                  5.0.10+dfsg1-0+deb10u1
ii  wordpress-theme-twentynineteen  5.0.10+dfsg1-0+deb10u1

Versions of packages wordpress suggests:
ii  mariadb-server-10.3 [virtual-mysql-server]  1:10.3.23-0+deb10u1
pn  php-ssh2                                    <none>

-- no debconf information

Reply via email to