Title: Script guard update
Last modified: August 20, 2016

---

# Script guard update

 *  Resolved [ceslava](https://wordpress.org/support/users/ceslava/)
 * (@ceslava)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/script-guard-update/)
 * Hi,
 * I just resolved the problem with Avada Theme but the script guard alert still
   shows and the theme translation is deactivated.
 * Should I see the database in order to restore the plugin?
 * Thanks.
 * [http://wordpress.org/extend/plugins/codestyling-localization/](http://wordpress.org/extend/plugins/codestyling-localization/)

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

 *  Plugin Author [codestyling](https://wordpress.org/support/users/codestyling/)
 * (@codestyling)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/script-guard-update/#post-3359923)
 * I do not understand, what you try to explain. I have tested Avada Theme at my
   local install and it can be translated even if there are Scripting Guard warning
   about PHP issues of type STRICT.
    I don’t get any other problem, could you please
   descibe your problem more in detail?
 *  Thread Starter [ceslava](https://wordpress.org/support/users/ceslava/)
 * (@ceslava)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/script-guard-update/#post-3359924)
 * Sorry for my bad english, the script guards alerts about a script which I have
   removed here:
 * PHP runtime error reporting detected !
    Reason: some executed PHP code is not
   written proper | Originator: desconocido (probably by Theme or Plugin) Below 
   listed error reports has been traced and removed during page creation: NOTICE
   Error: [8] Undefined property: kdMultipleFeaturedImages::$args /home2/nhdsemwe/
   public_html/wp-content/themes/Avada/framework/plugins/multiple-featured-images/
   multiple-featured-images.php on line 69
 * And the theme shows as deactivated
 * Avada © ThemeFusion
 * Textdomain: Avada
    Versión: 2.0.3 Estado: desactivado
 *  Plugin Author [codestyling](https://wordpress.org/support/users/codestyling/)
 * (@codestyling)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/script-guard-update/#post-3359925)
 * Ok, I’ve tested 1.0.8 (free version), may be a lot differences.
    Would it be 
   ok, if you could provide the Theme for testing purpose by mail (can be found 
   at my imprint page)?
 *  [choegl](https://wordpress.org/support/users/choegl/)
 * (@choegl)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/script-guard-update/#post-3359940)
 * Same problem for me, using the most recent Avada theme 2.0.6
 *  Thread Starter [ceslava](https://wordpress.org/support/users/ceslava/)
 * (@ceslava)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/script-guard-update/#post-3359941)
 * Hi choegl,
 * The great Haiku resolved the problem with this theme vía email.
 * His solution:
 * If a child theme is active and it doesn’t load any own translation, the main 
   theme will still load the translations but will appear as deactivated.
 * The error listed is caused by a wrong implementation within the multiple-featured-
   images.php file line 69. Currently this is:
 *     ```
       $this->nonce        = 'mfi-'.$this->args['id'].$this->args['post_type']; 
   
       but should be 
   
                   $this->nonce        = 'mfi-'.$this->id.$this->post_type;
       ```
   
 * I also commented out these lines to avoid the warning
 *     ```
       public function kd_admin_init() {
               /* translation problem
                          wp_enqueue_script(
                         'kd-multiple-featured-images',
                         get_bloginfo('template_directory').'/framework/plugins/multiple-featured-images/js/kd-admin.js',
                         'jquery'
                 );*/
             }
       ```
   
 * Thanks again to Haiku for this great plugin and for his great and fast support.
 *  [choegl](https://wordpress.org/support/users/choegl/)
 * (@choegl)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/script-guard-update/#post-3359942)
 * It works!
 * What a relief! I had been dealing with this for hours.
 * Thank you! Thank you! Thank you!

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

The topic ‘Script guard update’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/codestyling-localization_e6e1e3.svg)
 * [Codestyling Localization](https://wordpress.org/plugins/codestyling-localization/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/codestyling-localization/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/codestyling-localization/)
 * [Active Topics](https://wordpress.org/support/plugin/codestyling-localization/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/codestyling-localization/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/codestyling-localization/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [choegl](https://wordpress.org/support/users/choegl/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/script-guard-update/#post-3359942)
 * Status: resolved