WordPress.org

Ready to get started?Download WordPress

Forums

All in One SEO Pack
[resolved] xml sitemap undefined function fnmatch() (7 posts)

  1. peterkings
    Member
    Posted 7 months ago #

    Hi.
    When I go to XML Sitemap I get a fatal error:

    Fatal error: Call to undefined function fnmatch() in C:\Inetpub\vhosts\mysite.com\httpdocs\wp-content\plugins\all-in-one-seo-pack\aioseop_sitemap.php on line 349

    Does anyone know how to solve this ?

    Thanks

    http://wordpress.org/plugins/all-in-one-seo-pack/

  2. Peter Baylies
    Member
    Plugin Author

    Posted 7 months ago #

    peterkings,

    It looks like the fnmatch() function isn't present in PHP on the Windows platform before version 5.3.0; I'll see about fixing this in the next version, and in the meantime, here's a workaround, add this to the plugin or to the functions.php of your theme:

    if(!function_exists('fnmatch')) {
        function fnmatch($pattern, $string) {
            return preg_match("#^".strtr(preg_quote($pattern, '#'), array('\*' => '.*', '\?' => '.'))."$#i", $string);
        } // end
    } // end if
  3. lojacerta
    Member
    Posted 6 months ago #

    Perfect stopped giving the error, Thanks! But now reports have a conflict: "Potential conflict with unknown file E :/ vhosts / xxxxxxxxxxxxxx / httpdocs / sites / sitemap.xml"
    I really need to remove my previous sitemap?
    Thanks 2!

  4. Peter Baylies
    Member
    Plugin Author

    Posted 6 months ago #

    lojacerta,

    Yes, you won't need it now! You can rename it or save a copy first if you like.

  5. lojacerta
    Member
    Posted 6 months ago #

    Ok, thank you!
    :)
    there is some link tips how should I properly configure this part espexĂ­ica site maps of the All in One SEO?

  6. Peter Baylies
    Member
    Plugin Author

    Posted 6 months ago #

    lojacerta,

    There is inline documentation and links in the plugin; my advice - use dynamic sitemaps if you can, static sitemaps if you can't; don't use indexed sitemaps unless you have to, i.e., you actually have a ton of content on your site (thousands of posts) and it all needs indexing.

  7. lojacerta
    Member
    Posted 6 months ago #

    I really appreciate your suggestion, I will only use the sitemap vnculado the "All in One SEO Pack"
    Thank you really!

Reply

You must log in to post.

About this Plugin

About this Topic