Title: Finally Broken
Last modified: September 2, 2017

---

# Finally Broken

 *  [ciordia9](https://wordpress.org/support/users/ciordia9/)
 * (@ciordia9)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/finally-broken/)
 * Plugin has fully broken now. Love to see an alternative to this if anyone knows
   of one. Can’t fine one that made such a clean and basic A-Z Index.

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

 *  [tosh9i](https://wordpress.org/support/users/tosh9i/)
 * (@tosh9i)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/finally-broken/#post-9540380)
 * What sort of problems are you having? It was working fine for me, but when I 
   switched hosts, the index pages just came up as blank except for the Main title.
 *  [seanmolin](https://wordpress.org/support/users/seanmolin/)
 * (@seanmolin)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/finally-broken/#post-9687152)
 * FYI, it was very easy to fix for PHP 7 (which broke it for me).
 * All I did was go to az-index-cache.php in the plugins folder and around line 
   956 I replaced
    `$pos1 = ereg(‘[:alnum:](https://codex.wordpress.org/:alnum:)‘,
   $in1[‘initial’]); $pos2 = ereg(‘[:alnum:](https://codex.wordpress.org/:alnum:)‘,
   $in2[‘initial’]);` with `$pos1 = preg_match(‘/[:alnum:](https://codex.wordpress.org/:alnum:)/’,
   $in1[‘initial’]); $pos2 = preg_match(‘/[:alnum:](https://codex.wordpress.org/:alnum:)/’,
   $in2[‘initial’]);`
 *  [koozzz](https://wordpress.org/support/users/koozzz/)
 * (@koozzz)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/finally-broken/#post-9818318)
 * mine broke moving to php7 as well,
    updated as mentioned above in az-index-cache.
   php at around line 956 Thanks SeanMolin.
 * change from
 *     ```
       $pos1 = ereg(‘:alnum:‘, $in1[‘initial’]);
       $pos2 = ereg(‘:alnum:‘, $in2[‘initial’]);
       ```
   
 * with
 *     ```
       $pos1 = preg_match('/:alnum:/', $in1['initial']);
       $pos2 = preg_match('/:alnum:/', $in2['initial']);
       ```
   
 * the new code is not displaying with the surrounding double brackets around :alum:
    -  This reply was modified 8 years, 3 months ago by [koozzz](https://wordpress.org/support/users/koozzz/).
    -  This reply was modified 8 years, 3 months ago by [koozzz](https://wordpress.org/support/users/koozzz/).
 *  [Klatch](https://wordpress.org/support/users/klatch/)
 * (@klatch)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/finally-broken/#post-10427255)
 * Thank you SeanMolin, this worked for my site as well
 *  [WayneM1](https://wordpress.org/support/users/waynem1/)
 * (@waynem1)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/finally-broken/#post-10990912)
 * WOW! Thanks for this fix!!
 * I did not even realize this plugin had finally stopped working on a client’s 
   website. Yikes!
 * I just found that it was popping lots of errors to the error_log (one reason 
   I like to use the file monitor plugin to notice these changes – but I had that
   turned off because it was popping errors of its own).
 * Anyhow. If there is any confusion regarding what the new code should look like…
   All you need to do is replace
 * `ereg`
 * with
 * `preg_match`
 * in each of those two lines noted in the posts above.
 * Works like a charm 🙂
 * Still, would like to find a currently supported pluging that can do the same 
   as this one. Or, maybe some developer could take this one over and get it up 
   to date??

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

The topic ‘Finally Broken’ is closed to new replies.

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

 * 5 replies
 * 6 participants
 * Last reply from: [WayneM1](https://wordpress.org/support/users/waynem1/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/finally-broken/#post-10990912)
 * Status: not resolved