• Resolved Rah

    (@botnop)


    Hi,

    I’ve installed the latest version of W3 Total Cache plugin.

    The issue I get when I click on purge all cache is something like “Call to undefined function W3TC\fnmatch() in ./wp-content/plugins/w3-total-cache/Cache_File_Cleaner_Generic.php:58”
    Full error message here: https://pastebin.com/fG4v3eQ1

    Can you please assist on this issue?

    Thank you in advance!

    Server Info: Apache / ZoneOS
    PHP Version: 7.2.21-pl0-zoneos
    MySQL Version: 5.5.5-10.3.17-MariaDB-log
    W3 Total Cache: 0.9.7.5

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @botnop,

    It looks like you’re using PHP 5.2 or even older. The function is introduced in PHP 5.3
    Both are ancient versions of PHP, I suggest you upgrade to PHP7 (preferably 7.3, as that is the latest stable), but at least to PHP 5.6
    Backward compatibility to 5.2 is better in 5.6 as there are a lot of deprecated functions removed in PHP7.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello,
    Just to add, you might be blocking the function in your php.ini disable_functions
    In any case, it’s related to oyur installation as it’s a PHP core function. It’s not related to our plugin. You should contact your server provider for assistance.

    Thread Starter Rah

    (@botnop)

    Thank you for looking into it.

    But the php version used is 7.2 (mentioned in my first message)
    Screenshot: https://drive.google.com/file/d/15mARX9WtMhvq0DbC0Ec19s6LfHzMTPg2/

    There is no php.ini or user.ini defined. Can this still be the issue from the webhost?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello,
    Yes, I’ve noticed your PHO version but as said in the previous message, it’s related to your installation as it’s a PHP core function. It’s not related to our plugin. You should contact your server provider for assistance.

    @botnop hi my friend,i meet the same problem like you,did you solve this?

    @vmarko hi,so what shall we tell the host provider?and Which function needs to be enable?

    Thread Starter Rah

    (@botnop)

    I contacted host with the error as mentioned above and they addressed themselves.
    I didn’t need to provide any additional info.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Error while ‘Purge all caches’ – Call to undefined function’ is closed to new replies.