Title: Array to string conversion in php-typography.php on line 1377
Last modified: August 22, 2016

---

# Array to string conversion in php-typography.php on line 1377

 *  Resolved [TiKu](https://wordpress.org/support/users/tiku/)
 * (@tiku)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/array-to-string-conversion-in-php-typographyphp-on-line-1377/)
 * Hi,
 * After updating WordPress to 3.9.2 and PHP to 5.4, we get tons of this warning:
 * Array to string conversion in php-typography.php on line 1377
 * Does anybody know how to fix this?
 * Regards
    TiKu
 * [https://wordpress.org/plugins/wp-typography/](https://wordpress.org/plugins/wp-typography/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [TiKu](https://wordpress.org/support/users/tiku/)
 * (@tiku)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/array-to-string-conversion-in-php-typographyphp-on-line-1377/#post-5238767)
 * I think I found a solution. Search for this code in php-typography.php:
 * `if(isset($this->settings["smartFractions"]) && $this->settings["smartFractions"]){`
 * Shortly afterwards the variable $pat is set. Replace
 *     ```
       $pat = "/
       				(?<=\A|\s|$nbsp|$nbnsp)																# lookbehind assertion: makes sure we are not messing up a url
       				(\d+)
       				(?:\s?\/\s?".$this->chr["zeroWidthSpace"].")										# strip out any zero-width spaces inserted by wrap_hard_hyphens
       				(\d+)
       				(
       					(?:\<sup\>(?:st|nd|rd|th)<\/sup\>)?												# handle ordinals after fractions
       					(?:\Z|\s|$this->chr['noBreakSpace']|$this->chr['noBreakNarrowSpace']|\.|\!|\?|\)|\;|\:|\'|\")			# makes sure we are not messing up a url
       				)
       			/xu";
       ```
   
 * with
 *     ```
       $pat = "/
       				(?<=\A|\s|$nbsp|$nbnsp)																# lookbehind assertion: makes sure we are not messing up a url
       				(\d+)
       				(?:\s?\/\s?".$this->chr["zeroWidthSpace"].")										# strip out any zero-width spaces inserted by wrap_hard_hyphens
       				(\d+)
       				(
       					(?:\<sup\>(?:st|nd|rd|th)<\/sup\>)?												# handle ordinals after fractions
       					(?:\Z|\s|".$this->chr["noBreakSpace"]."|".$this->chr["noBreakNarrowSpace"]."|\.|\!|\?|\)|\;|\:|\'|\")			# makes sure we are not messing up a url
       				)
       			/xu";
       ```
   
 * Regards
    TiKu

Viewing 1 replies (of 1 total)

The topic ‘Array to string conversion in php-typography.php on line 1377’ is closed
to new replies.

 * ![](https://ps.w.org/wp-typography/assets/icon.svg?rev=2663995)
 * [wp-Typography](https://wordpress.org/plugins/wp-typography/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-typography/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-typography/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-typography/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-typography/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-typography/reviews/)

## Tags

 * [php 5.4](https://wordpress.org/support/topic-tag/php-5-4/)

 * 1 reply
 * 1 participant
 * Last reply from: [TiKu](https://wordpress.org/support/users/tiku/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/array-to-string-conversion-in-php-typographyphp-on-line-1377/#post-5238767)
 * Status: resolved