Title: Network install problems
Last modified: January 24, 2019

---

# Network install problems

 *  [Nagmay](https://wordpress.org/support/users/gabrielmcgovern/)
 * (@gabrielmcgovern)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/network-install-problems/)
 * This is a great plugin – thank you. Unfortunately, it does not install well on
   WordPress networks (multisite).
 * The core issue seems to be that mathjax_install() does not add the default options
   to individual sites when the plugin is activated network wide. Therefore, the
   options are not available when the shortcode tries to run. Yes, I could visit
   each site individually and update the options page, but our network has hundreds
   of sites – so, a network option page would be great!
 * I quickly hacked around this by triggering mathjax_install() if the options are
   missing:
 *     ```
       public static function init() {
       	register_activation_hook( __FILE__, [ __CLASS__, 'mathjax_install' ] );
       	register_deactivation_hook( __FILE__, [ __CLASS__, 'mathjax_uninstall' ] );
   
               // hack to set defaults on all sites in network
               if(!get_option('kblog_mathjax_config')){
                   add_action( 'init', [ __CLASS__, 'mathjax_install' ] );
               }
               // end hack
       ```
   

The topic ‘Network install problems’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mathjax-latex.svg)
 * [MathJax-LaTeX](https://wordpress.org/plugins/mathjax-latex/)
 * [Support Threads](https://wordpress.org/support/plugin/mathjax-latex/)
 * [Active Topics](https://wordpress.org/support/plugin/mathjax-latex/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mathjax-latex/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mathjax-latex/reviews/)

## Tags

 * [Install](https://wordpress.org/support/topic-tag/install/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)
 * [network](https://wordpress.org/support/topic-tag/network/)

 * 0 replies
 * 1 participant
 * Last reply from: [Nagmay](https://wordpress.org/support/users/gabrielmcgovern/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/network-install-problems/)
 * Status: not resolved