Hi @codejp3,
Thanks for using our plugin. our plugin is working as an add-on to the Loco Translate plugin. it is just used to translate all plugins and theme strings automatically. Please check Network Plugins Page after deactivating the main loco translate plugin.
Thanks & Regards
I know that your plugin is an add-on to Loco translate.
How does that address the issue with your plugin breaking the network admin plugins page anytime your plugin is network-activated on multisite?
Loco Translate works fine when network activated. Your plugin breaks the network admin plugins page when it’s network activated.
Here’s a demo video to drive the point home:
https://wp-multisite.local-dev.codejp3.com/temp-videos/automatic-translate-breaks-netowrk-admin-plugins-page.webm
Hi @codejp3,
Thanks for detecting the issue. Soon we will release a plugin update Now you can fix it by using the below-shared guidelines:-
Go to automatic-translator-addon-for-loco-translate >> includes >> Feedback >> class.feedback-form.php replace line no. 32 to 39 below-shared code:-
function enqueue_feedback_scripts() {
$screen = get_current_screen();
if ( isset( $screen ) && $screen->id == ‘plugins’ ) {
if ( $hook == ‘plugins.php’ ) {
wp_enqueue_script( ‘atlt-free-feedback-script’, $this->plugin_url . ‘includes/Feedback/js/admin-feedback.js’, array( ‘jquery’ ), $this->plugin_version );
wp_enqueue_style( ‘cool-plugins-feedback-style’, $this->plugin_url . ‘includes/Feedback/css/admin-feedback.css’, null, $this->plugin_version );
}
}
Hope this will helps you! Let me know if you are still facing any issue.
Thanks & Regards
Thank you for the quick reply!
I wish I could have given you more information, but no debug messages were being kicked out. It just “broke” all URLs on the page without any indication ‘why’.
Just confirming that this did fix the network admin plugins page issue.
function enqueue_feedback_scripts() {
$screen = get_current_screen();
if ( isset( $screen ) && $screen->id == 'plugins' ) {
if ( $hook == 'plugins.php' ) {
wp_enqueue_script( 'atlt-free-feedback-script', $this->plugin_url . 'includes/Feedback/js/admin-feedback.js', array( 'jquery' ), $this->plugin_version );
wp_enqueue_style( 'cool-plugins-feedback-style', $this->plugin_url . 'includes/Feedback/css/admin-feedback.css', null, $this->plugin_version );
}
}
}
Thank you for the temporary fix until the update is released.