Title: Errors when moving between lower environments
Last modified: January 10, 2022

---

# Errors when moving between lower environments

 *  Resolved [srsimonson](https://wordpress.org/support/users/srsimonson/)
 * (@srsimonson)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/errors-when-moving-between-lower-environments/)
 * Is the plugin compatible with PHP version 8? If not, which is the highest compatible
   version of PHP? Thanks!
 * > Notice: Trying to get property ‘query_var’ of non-object in \<path>\plugins\
   > remove-cpt-base\remove-cpt-base.php on line 219
 * and
 * > Deprecated: strpos(): Non-string needles will be interpreted as strings in 
   > the future. Use an explicit chr() call to preserve the current behavior in \
   > <path>\plugins\remove-cpt-base\remove-cpt-base.php on line 223
 * I get the above 2 error messages when moving code between lower environments.
   Both occur if a CPT base is checked on one environment, but code is moved between
   environments where CPT data isn’t yet 100% synched. Synching all content/data
   between lower environments makes the errors go away, just reporting these FYI.

Viewing 1 replies (of 1 total)

 *  Plugin Author [kubiq](https://wordpress.org/support/users/kubiq/)
 * (@kubiq)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/errors-when-moving-between-lower-environments/#post-15237488)
 * Hello,
 * these are NOTICES not ERRORS so everything should work 😉
 * query_var has nothing to do with PHP version, but it’s weird that it’s not an
   object
 * second Notice about strpos is there just because of that previous one is not 
   an object so it will return false
 * so it has nothing to do with PHP version and it should working with PHP 8 without
   any problem 😉

Viewing 1 replies (of 1 total)

The topic ‘Errors when moving between lower environments’ is closed to new replies.

 * ![](https://ps.w.org/remove-cpt-base/assets/icon-256x256.png?rev=1759289)
 * [Remove CPT base](https://wordpress.org/plugins/remove-cpt-base/)
 * [Support Threads](https://wordpress.org/support/plugin/remove-cpt-base/)
 * [Active Topics](https://wordpress.org/support/plugin/remove-cpt-base/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/remove-cpt-base/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/remove-cpt-base/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 1 reply
 * 2 participants
 * Last reply from: [kubiq](https://wordpress.org/support/users/kubiq/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/errors-when-moving-between-lower-environments/#post-15237488)
 * Status: resolved