Please help support the continued development of AZIndex, particularly if you are using the plugin in your work or as part of a for-profit website. All contributions, no matter what size, will be gratefully received.

Still Here…

Hey guys.  It’s been a week, so I thought I’d better just let you know that I haven’t gone back into hiding. It’s been a busy week, so I haven’t been able to do much with AZIndex except for getting back up to speed with it. It’s amazing how much you can forget in a year :-). The good news seems to be that the plugin is still working well on the latest version of WordPress (2.9.2) although I have noticed a small bug in the CSS code for grouped entries, where the headings are being displayed on the same line as the subheadings, when they should appear above them. This is being caused by a missing “float:left” in the CSS.

If you are seeing this problem, to work-around it, simply turn on the custom CSS option and change the following line:

.azindex .head {font-weight:bold;}

to

.azindex .head {font-weight:bold; float:left;}

Once I have read through all the comments to see what other issues people are having I’ll probably upload a new (minor) version of AZIndex with this fix, and any other minor bug fixes that might be necessary.

Finally, I am aware that WordPress 3.0 is just around the corner. I haven’t tested AZIndex on it yet, but I guess that with any major version change there is an increased risk of plugin breakage. I will be testing AZIndex before the 3.0 is official, but if anyone has already tried the plugin on the 3.0 beta code, it would be great to have some feedback.

51 comments to Still Here…

  • I use AZIndex for my Web site and I’m very happy with this plugins. But since a few months it doesn’t work anymore on my Website. Here is what it says : Do you have a solution? Thanks.

    Fatal error: Uncaught Error: Call to undefined function ereg() in /home/clients/ca8b7c18f015852dd7b0715d7017c99d/web/plusbellechanson/wp-content/plugins/azindex/az-index-cache.php:956 Stack trace: #0 [internal function]: az_compare(Array, Array) #1 /home/clients/ca8b7c18f015852dd7b0715d7017c99d/web/plusbellechanson/wp-content/plugins/azindex/az-index-cache.php(567): usort(Array, ‘az_compare’) #2 /home/clients/ca8b7c18f015852dd7b0715d7017c99d/web/plusbellechanson/wp-content/plugins/azindex/az-index-cache.php(352): az_index_cache->get_index_items(Object(az_request)) #3 /home/clients/ca8b7c18f015852dd7b0715d7017c99d/web/plusbellechanson/wp-content/plugins/azindex/az-index-cache.php(335): az_index_cache->build_index() #4 /home/clients/ca8b7c18f015852dd7b0715d7017c99d/web/plusbellechanson/wp-content/plugins/azindex/az-index-cache.php(40): az_index_cache->az_index_cache(Object(az_request), 71, 0) #5 /home/clients/ca8b7c18f015852dd7b0715d7017c99d/web/plusbellechanson/wp-content/plugins/azindex/az-index-content.php(55): az_cache_ in /home/clients/ca8b7c18f015852dd7b0715d7017c99d/web/plusbellechanson/wp-content/plugins/azindex/az-index-cache.php on line 956

    • Simbad

      I have the same issue / error code – something maybe broke?
      Be grateful if there is a fix for this? Thanks,

    • Dirk

      Hello, exactly the same problem here. Perhaps someone has an idea to solve the problem? Thanks…

    • DT

      ereg() is history in PHP 7 so you need to go to the AZ-index plugin folder and

      update az-index-cache.php at around line 956

      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’]);

      It made mine work again. Since there are no more updates for this plugin, I hope I get a few more years out of it.

    • DG

      Tried updating code as suggested but just keep getting: FATAL ERROR syntax error, unexpected ‘:’ on line number 956 – Checked that I added it correctly, any ideas? Thanks

  • IB

    This worked for me, thanks @DT

    @DG make sure you delete the single quote and replace it with a new single quote – this web page does not like the ‘ character so it replaces it with something not standard to code (perhaps to prevent exploiting breaking code via the comment form here).

    In short, just delete and replace the single quote with a new single quote in the code:

    $pos1 = preg_match(‘/:alnum:/’, $in1[‘initial’]);
    $pos2 = preg_match(‘/:alnum:/’, $in2[‘initial’]);

    starting from line 956, then save and reactivate the azindex plugin. It worked for me.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>