Title: Critical Error Generated
Last modified: March 22, 2022

---

# Critical Error Generated

 *  [globalexposures](https://wordpress.org/support/users/mom2nine/)
 * (@mom2nine)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/critical-error-generated/)
 *     ```
       I was using the free version, and it generated this error so I had to uninstall it, but I would love for it to work again:
   
       An error of type E_ERROR was caused in line 67 of the file /public_html/wp-content/plugins/auto-post-thumbnail/libs/factory/templates/pages/templates/impressive/class-pages.php. Error message: Uncaught TypeError: WBCR\Factory_Templates_106\Pages\PageBase::__construct(): Argument #1 ($plugin) must be of type Wbcr_Factory453_Plugin, WHLP_Plugin given, called in /public_html/wp-content/plugins/hide-login-page/admin/pages/hide-login.php on line 88 and defined in /public_html/wp-content/plugins/auto-post-thumbnail/libs/factory/templates/pages/templates/impressive/class-pages.php:67
       Stack trace:
       #0 /public_html/wp-content/plugins/hide-login-page/admin/pages/hide-login.php(88): WBCR\Factory_Templates_106\Pages\PageBase->__construct(Object(WHLP_Plugin))
       #1 /public_html/wp-content/plugins/hide-login-page/libs/factory/pages/pages.php(42): WHLP_HideLoginPage->__construct(Object(WHLP_Plugin))
       #2 /public_html/wp-content/plugins/hide-login-page/libs/factory/core/includes/class-factory-plugin-abstract.php(362): Wbcr_FactoryPages453::register(Object(WHLP_Plugin), 'WHLP_HideLoginP...')
       #3 /public_html/wp-content/plugins/hide-login-page/includes/class-plugin.php(77): Wbcr_Factory454_Plugin->registerPage('WHLP_HideLoginP...', '/...')
       #4 /public_html/wp-content/plugins/hide-login-page/includes/class-plugin.php(59): WHLP_Plugin->register_pages()
       #5 /public_html/wp-includes/class-wp-hook.php(307): WHLP_Plugin->plugins_loaded('')
       #6 /public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
       #7 /public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
       #8 /public_html/wp-settings.php(450): do_action('plugins_loaded')
       #9 /public_html/wp-config.php(63): require_once('/...')
       #10 /public_html/wp-load.php(50): require_once('/...')
       #11 /public_html/wp-admin/admin-ajax.php(22): require_once('/...')
       #12 {main}
       thrown
       ```
   

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

 *  [Temyk](https://wordpress.org/support/users/webtemyk/)
 * (@webtemyk)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/critical-error-generated/#post-15483778)
 * Hello.
 * Have you used the latest version of the plugin?
 *  Thread Starter [globalexposures](https://wordpress.org/support/users/mom2nine/)
 * (@mom2nine)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/critical-error-generated/#post-15483828)
 * Yes, I just installed it yesterday from the WP repository. I’m using PHP 8.0 
   on the site, too, if that makes any difference.
 *  [Temyk](https://wordpress.org/support/users/webtemyk/)
 * (@webtemyk)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/critical-error-generated/#post-15490353)
 * In the error message I see the hide-login-page plugin. Do you also have the latest
   version?
 *  Thread Starter [globalexposures](https://wordpress.org/support/users/mom2nine/)
 * (@mom2nine)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/critical-error-generated/#post-15492609)
 * Actually, I replaced that plugin after another site had similar errors.

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

The topic ‘Critical Error Generated’ is closed to new replies.

 * ![](https://ps.w.org/auto-post-thumbnail/assets/icon-256x256.gif?rev=3469511)
 * [Auto Featured Image (Auto Post Thumbnail)](https://wordpress.org/plugins/auto-post-thumbnail/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/auto-post-thumbnail/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/auto-post-thumbnail/)
 * [Active Topics](https://wordpress.org/support/plugin/auto-post-thumbnail/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/auto-post-thumbnail/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/auto-post-thumbnail/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [globalexposures](https://wordpress.org/support/users/mom2nine/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/critical-error-generated/#post-15492609)
 * Status: not resolved