Title: Bug?: warning for static method
Last modified: August 21, 2016

---

# Bug?: warning for static method

 *  [hamukazu](https://wordpress.org/support/users/hamukazu/)
 * (@hamukazu)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/bug-warning-for-static-method/)
 * WordPress shows the following error message:
    Strict Standards: Non-static method
   MathJax::init() should not be called statically in /var/www/wp/wp-content/plugins/
   mathjax-latex/mathjax-latex.php on line 191
 * So I propose the following patch.
 *     ```
       $diff mathjax-latex.php mathjax-latex.php.orig
       40c40
       <   static function init(){
       ---
       >   function init(){
       181c181
       <   static function mathjax_settings_link( $links, $file ) {
       ---
       >   function mathjax_settings_link( $links, $file ) {
       ```
   
 * This symptom started to appear since I migrated an existing wordpress server,
   so it might be because of the setting of the server (or maybe because of the 
   version of PHP), but I think it is reasonable to modify MathJax-LaTeX to make
   it warning free.
 * [https://wordpress.org/plugins/mathjax-latex/](https://wordpress.org/plugins/mathjax-latex/)

The topic ‘Bug?: warning for static method’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [hamukazu](https://wordpress.org/support/users/hamukazu/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/bug-warning-for-static-method/)
 * Status: not resolved