[Resolved] One or more errors were found for Ultra when checked with Theme Check plugin

This topic contains 5 replies, has 2 voices, and was last updated by  Andrew Misplon 1 month ago.

  • Author
    Posts
  • #8108

    Matsa
    Participant

    Please help, I’am absolute non-techie.
    The report I got after checking Ultra theme:

    One or more errors were found for Ultra.
    • WARNING: error_log PHP error log found.
    • RECOMMENDED: No reference to add_theme_support( “custom-header”, $args ) was found in the theme. It is recommended that the theme implement this functionality if using an image for the header.
    • RECOMMENDED: No reference to add_editor_style() was found in the theme. It is recommended that the theme implement editor styling, so as to make the editor content match the resulting post output in the theme, for a better user experience.
    • INFO: Possible hard-coded links were found in the file parts/bottom-bar.php.
    Line 23: printf( esc_html__( ‘Theme by %1$s’, ‘ultra’ ), ‘<a href=’https://purothemes.com/’ rel=’designer’ title=’A Free WordPress Theme by Pu
    • INFO: Only one text-domain is being used in this theme. Make sure it matches the theme’s slug correctly so that the theme will be compatible with WordPress.org language packs.
    The domain found is ultra
    • INFO: inc/settings/settings.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
    Line 65: include( dirname( __FILE__ ) . ‘/inc/control/’ . $file . ‘.php’ );
    Line 69: include( dirname( __FILE__ ) . ‘/inc/’ . $file . ‘.php’ );
    • INFO: inc/customizer/customizer.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
    Line 10: $google_web_fonts = include ( dirname(__FILE__) . ‘/google-fonts.php’ );
    Line 307: $google_fonts = include( dirname(__FILE__).’/google-fonts.php’ );

    Btw, in the beginning of the check page there’s a warning:
    “WARNING WP_DEBUG is not enabled! Please test your theme with debug enabled before you upload!”
    which I don’t know how to fix.

    However, when I checked all other themes on my site and some of them also have errors: 2017, 2014, Adelhyde, Adelhyde child, but 2016+2015 have no errors (i.e. passed the test).

    #8109

    Andrew Misplon
    Keymaster

    Hi Matsa

    Welcome 🙂

    The Theme Check plugin is mostly used by theme developers. Each time we upload an update for Ultra it has to pass this check to be allowed on WordPress.org.

    The following item:

    WARNING: error_log PHP error log found.

    That isn’t contained in the theme, that’s been inserted on your server side, no problem with it being there.

    Everything else consists of recommendations and information, there are no hard errors. If there were, the update earlier this week wouldn’t have passed and been allowed to be upload.

    If you’re new to WordPress you might consider using our Polestar theme which has less options by design, you might find it easier to implement.

    Polestar

    Let me know how you come along 🙂

    #8110

    Matsa
    Participant

    Hi there,
    Thank you Andrew for your prompt reply.
    My silly question: When you say “that’s been inserted on your server side” do I correctly conclude that the error has to be removed through cpanel i.e. php files?
    As for Ultra theme, I’ve been using it for almost 2 years and had no problems so for the time being don’t want to change it.

    Thank you once again and all the best

    #8111

    Andrew Misplon
    Keymaster

    No problem at all. The log file in the theme folder is harmless, I’d leave it there. It’ll be automatically removed the next time I do a theme update and you run it. Theme Check plugin is highlighting that file because it doesn’t want me to send a theme out for distribution with that file in it, the theme would fail the automated checks as I uploaded it. That file however is fine on your own server.

    #8118

    Matsa
    Participant

    Oh, great news 🙂
    thank you

    #8119

    Andrew Misplon
    Keymaster

    For sure 🙂 Anytime.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Scroll to top