Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: Cannot instantiate abstract class WC_Settings_Page #6

Open
abada opened this issue Apr 11, 2015 · 1 comment
Open

Fatal error: Cannot instantiate abstract class WC_Settings_Page #6

abada opened this issue Apr 11, 2015 · 1 comment

Comments

@abada
Copy link

abada commented Apr 11, 2015

Fatal error: Cannot instantiate abstract class WC_Settings_Page in /Library/WebServer/Documents/ticart/wp-content/plugins/woocommerce-extension-boilerplate-lite/woocommerce-extension-boilerplate-lite.php on line 382
Call Stack

Time Memory Function Location

1 0.0030 390184 {main}( ) ../plugins.php:0
2 0.3764 26899336 plugin_sandbox_scrape( ) ../plugins.php:153
3 0.3772 27000672 include( '/Library/WebServer/Documents/ticart/wp-content/plugins/woocommerce-extension-boilerplate-lite/woocommerce-extension-boilerplate-lite.php' ) ../plugins.php:151
4 0.3772 27000704 WC_Extend_Plugin_Name( ) ../woocommerce-extension-boilerplate-lite.php:590
5 0.3772 27000784 WC_Extend_Plugin_Name::instance( ) ../woocommerce-extension-boilerplate-lite.php:586
6 0.3772 27001088 WC_Extend_Plugin_Name->__construct( ) ../woocommerce-extension-boilerplate-lite.php:168
7 0.3774 27002472 WC_Extend_Plugin_Name->includes( ) ../woocommerce-extension-boilerplate-lite.php:213
8 0.3779 27023160 WC_Extend_Plugin_Name->admin_includes( ) ../woocommerce-extension-boilerplate-lite.php:357

@marcomarsala
Copy link

To solve this issue replace line 382 with the following two lines:

include_once( 'includes/admin/class-XXXX-admin-settings.php' );
$this->wc_settings_page = new XXXX_Admin_Settings(); // Call the settings page for WooCommerce.

where XXXX is your plugin name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants