Title: Errors on setup page
Last modified: August 30, 2016

---

# Errors on setup page

 *  [jstalewski](https://wordpress.org/support/users/jstalewski/)
 * (@jstalewski)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/errors-on-setup-page/)
 * I am setting up a stage>prod site setup on a single web host. The development/
   staging site has PushLive installed, and I am configuring it. On the configuration
   page, I see a few issues:
    1) immediately following the words Exclusion Settings,
   a warning message appears:
 * > Warning: call_user_func() expects parameter 1 to be a valid callback, function‘
   > admin_exclude_settings_callback’ not found or invalid function name in /home/
   > myweb/public_html/stage/wp-admin/includes/template.php on line 1321
 * 2) After the note about “first push” where you select what should be pushed, 
   I get a series of warning messages before the first checkbox shows up.
 * > Warning: in_array() expects parameter 2 to be array, boolean given in /home/
   > myweb/public_html/stage/wp-content/plugins/pushlive/views/exclude.php on line
   > 31
 * This repeats for a total of 12 instances, then the line at the top of the include
   selections, “Include Selected Table Name”, and the list of tables to include 
   displays.
 * [https://wordpress.org/plugins/pushlive/](https://wordpress.org/plugins/pushlive/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [jstalewski](https://wordpress.org/support/users/jstalewski/)
 * (@jstalewski)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/errors-on-setup-page/#post-6652322)
 * Seems to me as though something is missing from my installation – I will try 
   reinstalling the plugin.
 *  Thread Starter [jstalewski](https://wordpress.org/support/users/jstalewski/)
 * (@jstalewski)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/errors-on-setup-page/#post-6652463)
 * 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..
 *  Thread Starter [jstalewski](https://wordpress.org/support/users/jstalewski/)
 * (@jstalewski)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/errors-on-setup-page/#post-6652471)
 * default htaccess made no difference…
 *  Plugin Author [Jamin Szczesny](https://wordpress.org/support/users/jxaxmxixn/)
 * (@jxaxmxixn)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/errors-on-setup-page/#post-6652495)
 * 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
 *  Plugin Author [Jamin Szczesny](https://wordpress.org/support/users/jxaxmxixn/)
 * (@jxaxmxixn)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/errors-on-setup-page/#post-6652705)
 * 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.
 *  [remymedranda](https://wordpress.org/support/users/remymedranda/)
 * (@remymedranda)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/errors-on-setup-page/#post-6652750)
 * 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.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Errors on setup page’ is closed to new replies.

 * ![](https://ps.w.org/pushlive/assets/icon-256x256.png?rev=1254685)
 * [PushLive - Staging Sites to Live in One Click](https://wordpress.org/plugins/pushlive/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pushlive/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pushlive/)
 * [Active Topics](https://wordpress.org/support/plugin/pushlive/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pushlive/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pushlive/reviews/)

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)
 * [boolean](https://wordpress.org/support/topic-tag/boolean/)
 * [callback](https://wordpress.org/support/topic-tag/callback/)

 * 6 replies
 * 3 participants
 * Last reply from: [remymedranda](https://wordpress.org/support/users/remymedranda/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/errors-on-setup-page/#post-6652750)
 * Status: not resolved