I have the following error in my apache2 error log(Ubuntu 18.04, local LAMP dev environment), that I believe is causing a The page isn’t redirecting properly
error:
[:error] [pid ] avahi_entry_group_add_service_strlst("localhost") failed: Invalid host name
I have been searching online for a few hours, but have not found anyway to resolve this error.
The contents of my /etc/hosts file is as follows:
127.0.0.1 localhost
127.0.0.1 localhost.example *.localhost.example
127.0.0.1 someothername www.someothername
127.0.0.1 blog.localhost.example
127.0.0.1 seminar.localhost.example
#The line below is for shared folder access. DP Edit.
127.0.0.1 machinename.local
To ensure that the error is NOT being caused by wordpress, I have tried the following:
- disabled all plugins = redirecting error still present NOTE: no new htaccess was generated by wp
- used db query to update siteurl value to match localhost
UPDATE wp_options SET option_value='' WHERE option_name='siteurl'
= redirecting error still present - updated wp-config to reflect define('WP_HOME',''); define('WP_SITEURL','');
- I also tried creating a simplified htaccess file according to these instructions = redirection error still present
Any ideas?