• 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.

Viewing 1 replies (of 1 total)
  • Plugin Author winkm89

    (@winkm89)

    Hi,
    I think there is a problem with the custom path or there is a file in this path which shouldn’t be there:
    It seems that the plugin found a “template” with file name index.php and search there for a class called index which doesn’t exist. That is what the error says.
    Normally the default templates uses name pairs like:
    file name: tp_template_2021.php
    class name: TP_Template_2016

Viewing 1 replies (of 1 total)
  • The topic ‘Class ‘index’ not found in settings.php’ is closed to new replies.