Class ‘index’ not found in settings.php
-
Hi Michael,
I get this error message when trying to view the content of the ‘Templates’ tab in the plugin settings:
Fatal error: Uncaught Error: Class ‘index’ not found in /home/customer/www/mywebsite.com/public_html/wp-content/plugins/teachpress/admin/settings.php:682
Stack trace: #0 /home/customer/www/mywebsite.com/public_html/wp-content/plugins/teachpress/admin/settings.php(655): TP_Settings_Page::list_templates() #1 /home/customer/www/mywebsite.com/public_html/wp-content/plugins/teachpress/admin/settings.php(150): TP_Settings_Page::get_template_tab() #2 /home/customer/www/mywebsite.com/public_html/wp-content/plugins/teachpress/admin/settings.php(14): TP_Settings_Page::load_page() #3 /home/customer/www/mywebsite.com/public_html/wp-includes/class-wp-hook.php(307): tp_show_admin_settings(”) #4 /home/customer/www/mywebsite.com/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array) #5 /home/customer/www/mywebsite.com/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #6 /home/customer/www/mywebsite.com/public_html/wp-admin/admin.php(259): do_action(‘sett in /home/customer/www/mywebsite.com/public_html/wp-content/plugins/teachpress/admin/settings.php on line 682
The path into the wp-config.php file is according to the one suggested inside the plugin:
// For changing the teachPress template directory (moving it to wp-content/uploads/)
define (‘TEACHPRESS_TEMPLATE_PATH’, ‘/home/customer/www/mywebsite.com/public_html/wp-content/uploads/teachpress/templates/’);
define (‘TEACHPRESS_TEMPLATE_URL’, ‘https://mywebsite.com/wp-content/uploads/teachpress/templates/’);Would you please check this out and confirm if there’s any issue that have to be fixed?
Thanks so much.
The topic ‘Class ‘index’ not found in settings.php’ is closed to new replies.