67 posts
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
Wpsmart says

Hi

Im new WP theme Developer, I developing new WP theme. And I Used TGM Plugin Activation For My theme. today i checked my theme and i seen many errors. all of errors from “class-tgm-plugin-activation.php” file.

i developed my theme for themeforest. so please help me to fix this. anyone face like this error?

155 posts ThemeTon
  • Elite Author: Sold more than $75,000 on Envato Market
  • Won a Most Wanted contest
  • Has referred 100+ members
  • Has sold $250,000+ on Envato Market
+7 more
themeton says

I don’t know what kind of problems out there. But if you need configuration tips, you should check this that we talked about recently http://themeforest.net/forums/thread/tgm-plugin/112677

67 posts
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
Wpsmart says

Thanks To reply my post

RECOMMENDED: Possible variable $this found in translation function in lib/plugins/class-tgm-plugin-activation.php. Translation function calls must NOT contain PHP variables.
Line 704: 'dismiss'  => '<a class="dismiss-notice" href="" .="" add_query_arg="" target="_parent">' . __( 'Dismiss this notice', $this->domain ) . '</a>',
RECOMMENDED: Possible variable $this found in translation function in lib/plugins/class-tgm-plugin-activation.php. Translation function calls must NOT contain PHP variables.
Line 545: $msg = sprintf( __( 'The following plugin was activated successfully: %s.', $this->domain )
RECOMMENDED: Possible variable $this found in translation function in lib/plugins/class-tgm-plugin-activation.php. Translation function calls must NOT contain PHP variables.
Line 517: echo '<p>' .  sprintf( $this->strings['complete'], '<a href="" .="" admin_url="" title="" __="" to="" the="" dashboard="">domain ) . ''>' . __( 'Return to the 
RECOMMENDED: Possible variable $this found in translation function in lib/plugins/class-tgm-plugin-activation.php. Translation function calls must NOT contain PHP variables.
Line 502: echo '<p><a href="" .="" add_query_arg="">menu, admin_url( $this->parent_url_slug ) ) . '' title='' . esc_attr( $this->strings['return'] ) . '' target='_parent'>' . __( $this->strings['return'], $this->domain ) . '</a></p>';
Line 539: echo '<p><a href="" .="" add_query_arg="">menu, admin_url( $this->parent_url_slug ) ) . '' title='' . esc_attr( $this->strings['return'] ) . '' target='_parent'>' . __( $this->strings['return'], $this->domain ) . '</a></p>';
RECOMMENDED: Possible variable $this found in translation function in lib/plugins/class-tgm-plugin-activation.php. Translation function calls must NOT contain PHP variables.
Line 375: <?php if ( isset( $this->message ) ) _e( wp_kses_post( $this->message ), $this->domain ); ?>
RECOMMENDED: Possible variable $this found in translation function in lib/plugins/class-tgm-plugin-activation.php. Translation function calls must NOT contain PHP variables.
Line 180: 'complete'                        => __( 'All plugins installed and activated successfully. %1$s', $this->domain
RECOMMENDED: Possible variable $this found in translation function in lib/plugins/class-tgm-plugin-activation.php. Translation function calls must NOT contain PHP variables.
Line 179: 'plugin_activated'                => __( 'Plugin activated successfully.', $this->domain ),
RECOMMENDED: Possible variable $this found in translation function in lib/plugins/class-tgm-plugin-activation.php. Translation function calls must NOT contain PHP variables.
Line 178: 'return'                          => __( 'Return to Required Plugins Installer', $this->domain ),
Line 490: echo '<p><a href="" .="" add_query_arg="">menu, admin_url( $this->parent_url_slug ) ) . '' title='' . esc_attr( $this->strings['return'] ) . '' target='_parent'>' . __( 'Return to Required Plugins Installer', $this->domain ) . '</a></p>';
RECOMMENDED: Possible variable $this found in translation function in lib/plugins/class-tgm-plugin-activation.php. Translation function calls must NOT contain PHP variables.
Line 167: 'oops'                            => __( 'Something went wrong.', $this->domain ),
RECOMMENDED: Possible variable $this found in translation function in lib/plugins/class-tgm-plugin-activation.php. Translation function calls must NOT contain PHP variables.
Line 166: 'installing'                      => __( 'Installing Plugin: %s', $this->domain ),
RECOMMENDED: Possible variable $this found in translation function in lib/plugins/class-tgm-plugin-activation.php. Translation function calls must NOT contain PHP variables.
Line 165: 'menu_title'                      => __( 'Install Plugins', $this->domain ),
RECOMMENDED: Possible variable $this found in translation function in lib/plugins/class-tgm-plugin-activation.php. Translation function calls must NOT contain PHP variables.
Line 164: 'page_title'                      => __( 'Install Required Plugins', $this->domain ),
RECOMMENDED: Possible variable $this found in translation function in lib/plugins/class-tgm-plugin-activation.php. Translation function calls must NOT contain PHP variables.
RECOMMENDED: Possible variable $theme_text_domain found in translation function in lib/plugins/functions.php. Translation function calls must NOT contain PHP variables.
Line 77: 'complete'                                     => __( 'All plugins installed and activated successfully. %s', $theme_text_dom
RECOMMENDED: Possible variable $theme_text_domain found in translation function in lib/plugins/functions.php. Translation function calls must NOT contain PHP variables.
Line 76: 'plugin_activated'                             => __( 'Plugin activated successfully.', $theme_text_domain ),
RECOMMENDED: Possible variable $theme_text_domain found in translation function in lib/plugins/functions.php. Translation function calls must NOT contain PHP variables.
Line 75: 'return'                                       => __( 'Return to Required Plugins Installer', $theme_text_domain ),
RECOMMENDED: Possible variable $theme_text_domain found in translation function in lib/plugins/functions.php. Translation function calls must NOT contain PHP variables.
Line 64: 'oops'                                         => __( 'Something went wrong with the plugin API.', $theme_text_domain ),
RECOMMENDED: Possible variable $theme_text_domain found in translation function in lib/plugins/functions.php. Translation function calls must NOT contain PHP variables.
Line 63: 'installing'                                   => __( 'Installing Plugin: %s', $theme_text_domain ), // %1$s = plugin name
RECOMMENDED: Possible variable $theme_text_domain found in translation function in lib/plugins/functions.php. Translation function calls must NOT contain PHP variables.
Line 62: 'menu_title'                                   => __( 'Install Plugins', $theme_text_domain ),
RECOMMENDED: Possible variable $theme_text_domain found in translation function in lib/plugins/functions.php. Translation function calls must NOT contain PHP variables.
Line 61: 'page_title'                                   => __( 'Install Required Plugins', $theme_text_domain ),
RECOMMENDED: Possible variable $instance found in translation function in lib/plugins/class-tgm-plugin-activation.php. Translation function calls must NOT contain PHP variables.
Line 2058: echo '<p>' .  sprintf( TGM_Plugin_Activation::$instance->strings['complete'], '<a href="" .="" admin_url="" title="" __="" to="" the="" dashboard="" tgm_plugin_activation::="">domain ) .
RECOMMENDED: Possible variable $instance found in translation function in lib/plugins/class-tgm-plugin-activation.php. Translation function calls must NOT contain PHP variables.
Line 2043: echo '<p><a href="" .="" add_query_arg="" tgm_plugin_activation::="">menu, admin_url( TGM_Plugin_Activation::$instance->parent_url_slug ) ) . '' title='' . esc_attr( TGM_Plugin_Activation::$instance->strings['return'] ) . '' target='_parent'>' . __( TGM_Plugin_Activation::$instance->strings['return'], TGM_Plugin_Activat
</a></p></a></p></a></p>

This is sample. too many errors show like this. but theme working well.

67 posts
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
Wpsmart says

Fixed

I installed ThemeForest-Check (http://wordpress.org/plugins/themeforest-check/)

Thanks “Japh”. I found Your Comment Here – https://github.com/thomasgriffin/TGM-Plugin-Activation/issues/120#issuecomment-21353100

Thanks All :)

5 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 100+ items on Envato Market
griffinjt says

(Note: I am the developer of TGM Plugin Activation).

I have just pushed out version 2.4.0, which addresses many of the issues found in previous versions. I highly encourage you to check out the updated version and use that in your themes, as it fixes nearly all of the listed bugs and incompatibilities with the theme check process. It is also more efficient as well. :-)

67 posts
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
Wpsmart says

(Note: I am the developer of TGM Plugin Activation). I have just pushed out version 2.4.0, which addresses many of the issues found in previous versions. I highly encourage you to check out the updated version and use that in your themes, as it fixes nearly all of the listed bugs and incompatibilities with the theme check process. It is also more efficient as well. :-)

Thanks Very much For your Reply. TGM Plugins Very Used-full For Themeforest Authors :)

by
by
by
by
by
by