• Resolved leeml

    (@leeml)


    After network activating the Theme My Login plugin on a WP Multisite the following error message was received on the login page, all other pages in the WP instance were loading without issue. The only other networked plugin were Classic Widgets and Force Login.

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/wp-content/themes/olcl-app-bs/header.php:12) in /var/www/html/wp-includes/pluggable.php on line 1340 Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/wp-content/themes/olcl-app-bs/header.php:12) in /var/www/html/wp-includes/pluggable.php on line 1343

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    The error message points you right to the culprit – your theme: themes/olcl-app-bs/header.php on line 12.

    Thread Starter leeml

    (@leeml)

    Hi Jeff,

    Thanks for your response. I found the issue. it related to a requirement for a plugin that is associated with the theme to have been network enabled. Anyway I have encountered another issue with WP Multisite.

    In testing all plugins and themes are disabled besides the Theme My Login plugin and Twenty Twenty One. The Theme My Login plugin is Network enabled…

    It works perfectly okay, apart from the login page on the main site in the network.

    The .htaccess file is the standard WP Multisite .htaccess file and I have cleared all browser cookies. I am going to be digging a bit deeper to see if I can isolate the issue, but not sure if has arisen before with Multisite and TML.

    The subsites are clones of the main site as opposed to conventional WP Multisite subsites that are created via WP admin.

    Just wondering if it is an issue that has been reported before.

    If not is probably the cloning process that needs to be revised!

    Thread Starter leeml

    (@leeml)

    Had a closer look and it seems to have been an issue with port number. I was running a multisite on port 8080 with Docker. I rebuilt my dev environment on a localhost with XAMPP using a more conventional port (80) and everything worked as expected.

    Not sure if it was browser cookies as I was running tow instances of WordPress with the same IP, but different ports in the same browser. But did delete browser cookies for it to have no effect on the redirect loops issue I was experiencing.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Headers already sent WP Multisite’ is closed to new replies.