- October 17, 2017 at 10:38 pm #8108
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).October 18, 2017 at 9:12 am #8109
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.
Let me know how you come along 🙂October 18, 2017 at 10:09 am #8110
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 bestOctober 18, 2017 at 11:10 am #8111
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.October 18, 2017 at 12:28 pm #8118
Oh, great news 🙂
thank youOctober 18, 2017 at 12:39 pm #8119
For sure 🙂 Anytime.
You must be logged in to reply to this topic.