• Problem is reproduced by using Save from within Appearance – Menus function on a Windows system.

    The problem occurs in 2 PHP functions in WpFastestCache.php (delete_cache_of_term and rm_folder_recursively) on saving Menu changes for sites hosted on Windows system.
    The issue is caused by the question mark embedded in the directory path as in the following example…
    D:\Home\ApacheRoot\dfprof\httpdocs\wp-content/cache/all/?taxonomy=nav_menu&term=direct-xxxx-main-menu/page
    The use of is_dir or file_exists on these path names generates an invalid file/open_basedir error.
    My (temporary) solution was to modify the code to test for ? in the path name and bypass this part of the code.
    A better, robust and more permanent handling of invalid characters in a file name needs to added to this routines. (I am fairly sure that this will fail on Linux, but the error will occur silently in this case).

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Emre Vona

    (@emrevona)

    ddi you enable the WPFC_CACHE_QUERYSTRING option?

    https://www.wpfastestcache.com/tutorial/cache-url-with-querystring/

    Thread Starter nufocusuk

    (@nufocusuk)

    I do not have that flag used on my system nor do I believe it ever has been on this system so I dont think that is the issue.

    I think the 2 functions I mentioned are associated with ‘clearing’ cache files so I wondered if these are called without reference to the code that prevents query URL pages being cached in the first place.

    Plugin Author Emre Vona

    (@emrevona)

    do you have the issue often?

    Thread Starter nufocusuk

    (@nufocusuk)

    Well currently it occurs everytime you save anything with Appearance – Menu function. The error only occurs in the backend and does not seem to interfere with the actual save functionality so it is annoying but not catastrophic.

    I am no longer actively making menu changes so it is not a big concern for this project.

    I guess my lingering concern is if this is going to manifest itself on another project/site.

    Plugin Author Emre Vona

    (@emrevona)

    thank you so much

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Open_basedir on Windows on Saving Menu’ is closed to new replies.