Title: Plugin install, fatal error, database
Last modified: April 24, 2022

---

# Plugin install, fatal error, database

 *  Resolved [AndiBo](https://wordpress.org/support/users/andibo/)
 * (@andibo)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/plugin-install-fatal-error-database/)
 * Hi, I have a problem with the activation of the plugin.
    I can not activate it,
   I get an error message.
 * On a fresh WordPress installation I can activate the plugin without any problems
   but I would like to try the plugin on my existing site and not set up everything
   from scratch.
 * Before Plugins Install:
    [https://dev.not-idea.de/wp-content/uploads/1.jpg](https://dev.not-idea.de/wp-content/uploads/1.jpg)
 * After Plugin Install:
    [https://dev.not-idea.de/wp-content/uploads/2.jpg](https://dev.not-idea.de/wp-content/uploads/2.jpg)
 *     ```
       Warning: Undefined property: WP_Post_Type::$custom_rewrite in /var/www/vhosts/hosting134183.a2e34.netcup.net/httpdocs/not-idea/dev/wp-content/plugins/acpt-lite/src/Includes/ACPT_Lite_DB.php on line 181
   
       Warning: Undefined property: WP_Post_Type::$custom_query_var in /var/www/vhosts/hosting134183.a2e34.netcup.net/httpdocs/not-idea/dev/wp-content/plugins/acpt-lite/src/Includes/ACPT_Lite_DB.php on line 183
   
       Warning: Undefined property: WP_Post_Type::$custom_rewrite in /var/www/vhosts/hosting134183.a2e34.netcup.net/httpdocs/not-idea/dev/wp-content/plugins/acpt-lite/src/Includes/ACPT_Lite_DB.php on line 181
   
       Warning: Undefined property: WP_Post_Type::$custom_query_var in /var/www/vhosts/hosting134183.a2e34.netcup.net/httpdocs/not-idea/dev/wp-content/plugins/acpt-lite/src/Includes/ACPT_Lite_DB.php on line 183
   
       Warning: Undefined property: WP_Post_Type::$custom_rewrite in /var/www/vhosts/hosting134183.a2e34.netcup.net/httpdocs/not-idea/dev/wp-content/plugins/acpt-lite/src/Includes/ACPT_Lite_DB.php on line 181
   
       Warning: Undefined property: WP_Post_Type::$custom_query_var in /var/www/vhosts/hosting134183.a2e34.netcup.net/httpdocs/not-idea/dev/wp-content/plugins/acpt-lite/src/Includes/ACPT_Lite_DB.php on line 183
   
       Warning: Undefined property: WP_Post_Type::$custom_rewrite in /var/www/vhosts/hosting134183.a2e34.netcup.net/httpdocs/not-idea/dev/wp-content/plugins/acpt-lite/src/Includes/ACPT_Lite_DB.php on line 181
   
       Warning: Undefined property: WP_Post_Type::$custom_query_var in /var/www/vhosts/hosting134183.a2e34.netcup.net/httpdocs/not-idea/dev/wp-content/plugins/acpt-lite/src/Includes/ACPT_Lite_DB.php on line 183
   
       Warning: Undefined property: WP_Post_Type::$custom_rewrite in /var/www/vhosts/hosting134183.a2e34.netcup.net/httpdocs/not-idea/dev/wp-content/plugins/acpt-lite/src/Includes/ACPT_Lite_DB.php on line 181
   
       Warning: Undefined property: WP_Post_Type::$custom_query_var in /var/www/vhosts/hosting134183.a2e34.netcup.net/httpdocs/not-idea/dev/wp-content/plugins/acpt-lite/src/Includes/ACPT_Lite_DB.php on line 183
   
       Warning: Undefined array key 0 in /var/www/vhosts/hosting134183.a2e34.netcup.net/httpdocs/not-idea/dev/wp-content/plugins/acpt-lite/src/Includes/ACPT_Lite_DB.php on line 227
       ```
   
 * `Fatal error: Uncaught Error: Call to a member function getId() on null in /var/
   www/vhosts/hosting134183.a2e34.netcup.net/httpdocs/not-idea/dev/wp-content/plugins/
   acpt-lite/src/Includes/ACPT_Lite_DB.php:229 Stack trace: #0 /var/www/vhosts/hosting134183.
   a2e34.netcup.net/httpdocs/not-idea/dev/wp-content/plugins/acpt-lite/src/Includes/
   ACPT_Lite_DB.php(106): ACPT_Lite\Includes\ACPT_Lite_DB::createNativeTaxonomies()#
   1 /var/www/vhosts/hosting134183.a2e34.netcup.net/httpdocs/not-idea/dev/wp-content/
   plugins/acpt-lite/advanced-custom-post-type-lite.php(82): ACPT_Lite\Includes\
   ACPT_Lite_DB::sync() #2 /var/www/vhosts/hosting134183.a2e34.netcup.net/httpdocs/
   not-idea/dev/wp-content/plugins/acpt-lite/advanced-custom-post-type-lite.php(
   92): ACPT_Lite::checkForPluginUpgrades() #3 /var/www/vhosts/hosting134183.a2e34.
   netcup.net/httpdocs/not-idea/dev/wp-admin/includes/plugin.php(2288): include_once('/
   var/www/vhosts...') #4 /var/www/vhosts/hosting134183.a2e34.netcup.net/httpdocs/
   not-idea/dev/wp-admin/plugins.php(192): plugin_sandbox_scrape('acpt-lite/advan...')#
   5 {main} thrown in /var/www/vhosts/hosting134183.a2e34.netcup.net/httpdocs/not-
   idea/dev/wp-content/plugins/acpt-lite/src/Includes/ACPT_Lite_DB.php on line 229`
 * Best Regards
    Andibo

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

 *  Plugin Author [mauretto1978](https://wordpress.org/support/users/mauretto1978/)
 * (@mauretto1978)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/plugin-install-fatal-error-database/#post-15587735)
 * Hi Andibo, and thank you so much for reporting this issue.
 * The errors seem to be in the sync process. I don’t know why this happens but 
   I can introduce a conditional statement in this part of the code to avoid the
   error.
 * Anyway, you can reach me at [info@acpt.io](https://wordpress.org/support/topic/plugin-install-fatal-error-database/info@acpt.io?output_format=md)
   in order to provide me more details to replicate the bug on my end.
 * Thank you in advance!
 * Mauro
 *  Plugin Author [mauretto1978](https://wordpress.org/support/users/mauretto1978/)
 * (@mauretto1978)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/plugin-install-fatal-error-database/#post-15593116)
 * The errors shown refer to a PHP8 incompatibility, there was a breaking change
   in `call_user_func_array` function.
 * **At the present time (2022-04-26) the plugin is not tested yet on PHP8**.
 * I’ll try to release the patch as soon as possible, then the topic will be updated
   and closed 🙂
 *  Thread Starter [AndiBo](https://wordpress.org/support/users/andibo/)
 * (@andibo)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/plugin-install-fatal-error-database/#post-15593302)
 * Thanks a lot for your time, with your help the plugin works now on my website!
 * Best Regards
    Andi

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

The topic ‘Plugin install, fatal error, database’ is closed to new replies.

 * ![](https://ps.w.org/acpt-lite/assets/icon-256x256.png?rev=3231354)
 * [Custom post types for Wordpress – ACPT Lite](https://wordpress.org/plugins/acpt-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/acpt-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/acpt-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/acpt-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acpt-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acpt-lite/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [AndiBo](https://wordpress.org/support/users/andibo/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/plugin-install-fatal-error-database/#post-15593302)
 * Status: resolved