Seems to me as though something is missing from my installation – I will try reinstalling the plugin.
Reinstalling the plugin didn’t fix the warning messages.
A little more info – I am using htaccess and a root directory index.php file to handle having two different hosts on the same web server (dev & test.)
My htaccess file at web root looks like this (using generic urls and pretending my stage and live wordpress installs are at /stage/ and /live/):
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# rule to rewrite dev calls to dev site
Options +FollowSymLinks
RewriteCond %{HTTP_HOST} dev.mysite.com$ [NC]
RewriteCond %{REQUEST_URI} !^/stage/.*$
RewriteRule ^(.*) /stage/$1 [L]
# Rule to rewrite www (or not) calls to www site
RewriteCond %{HTTP_HOST} ^(www\.)?mysite.com$ [NC]
RewriteRule %{REQUEST_URI} !^/live/.*$
RewriteRule ^(.*)$ /live/$1 [L]
# END rewrites
and my index.php at web root looks like this:
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
/** This is added by JES 10/15/15 to address multiple sites on same server issue
*/
$host = $_SERVER['SERVER_NAME'];
$site = "stage";
if(@host == ('www.mysite.com' | 'mysite.com' ))
{
$site = "live";
}
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/'. $site .'/wp-blog-header.php' );
As you can see, I added a bit of php code to the basic WP index.php to make the one index.php work for both not-installed-at-root sites, in order to attempt to follow the wordpress instructions for moving your site to a subdirectory instead of leaving it at web root.
I am using the permalink config pre-set by the install, by the way. It has, after the site url: /%year%/%monthnum%/%day%/%postname%/
Perhaps I will try the default htaccess..
default htaccess made no difference…
The question I have is despite the warnings did everything work properly?
Warnings with PHP in many or most cases do not cause the program to fail in any way at all and can be quite common. I usually turn off PHP warning messages completely and only have PHP return error messages when they occur. I believe this is the default PHP behavior anyhow.
I will look into what’s causing the warnings in the meantime and see if I can prevent these from popping up for anyone in the next release (Likely this weekend). PushLive should still work perfectly despite the warnings – so If you see that your live site is 100% you’ll know that’s the case.
Thank you for your input, it helps!
Jamin
Though only a warning that does not throw an actual error, I have for good practice cleaned up the code and this particular warning will no longer show in version 0.6.9 or greater. I will mark this topic as resolved once 0.6.9 is released.
I think this warning decide to rear its ugly head again…. I have dozens of the same warning repeated over and over again on setup page.