Title: Warning: Wrong parameter count for parse_ini_file()
Last modified: August 31, 2016

---

# Warning: Wrong parameter count for parse_ini_file()

 *  [gr3gthompson](https://wordpress.org/support/users/gr3gthompson/)
 * (@gr3gthompson)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/warning-wrong-parameter-count-for-parse_ini_file/)
 * So I have done a clean install of the theme. And played with the file in question
   to make it work. But it still isn’t. The full error is:
    “Warning: Wrong parameter
   count for parse_ini_file() in **************/wp-content/themes/the-next/admin/
   OptionFields.class.php on line 131” (I have starred out my server info)
 * So I check out the block of code around line 131 and have this:
 *     ```
       public static function GetFonts(){
               $ini_directory= get_template_directory().'/theme-data/';
               $font_array = parse_ini_file("$ini_directory/fonts.php", true, INI_SCANNER_RAW);
               return $font_array;
           }
       ```
   
 * Any ideas on how to fix this?

Viewing 1 replies (of 1 total)

 *  Theme Author [Shahriar Alam](https://wordpress.org/support/users/shahriar0822/)
 * (@shahriar0822)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/warning-wrong-parameter-count-for-parse_ini_file/#post-6982068)
 * Hi!
    Try following code,
 *     ```
       public static function GetFonts(){
               $ini_directory= get_template_directory().'/theme-data/fonts.php';
               $font_array = parse_ini_file( $ini_directory, true, INI_SCANNER_RAW);
               return $font_array;
       }
       ```
   
 * if issue not resolved yet please post a support question here [http://wpeden.com/forums/forum/general-questions/](http://wpeden.com/forums/forum/general-questions/)
   for further discussion.
 * Thanks.

Viewing 1 replies (of 1 total)

The topic ‘Warning: Wrong parameter count for parse_ini_file()’ is closed to new
replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/the-next/1.1.0/screenshot.png)
 * The Next
 * [Support Threads](https://wordpress.org/support/theme/the-next/)
 * [Active Topics](https://wordpress.org/support/theme/the-next/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/the-next/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/the-next/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shahriar Alam](https://wordpress.org/support/users/shahriar0822/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/warning-wrong-parameter-count-for-parse_ini_file/#post-6982068)
 * Status: not resolved