Menu

#41 File is not within the allowed path(s)

wont-fix
WTriple
True
2021-02-25
2021-02-25
Anonymous
No

Hi. I just installed WinNMP on localhost and installed Wordpress and enabled SSL. Everything seemed ok, however the site is terribly slow I keep getting errors when installing plugins. The error I get on the PHP log is:

File(C:\WinNMP\WWW\suplidorati/wp-content/plugins/https://mydomain.test/wp-admin/admin.php) is not within the allowed path(s): (c:/winnmp) in C:\WinNMP\WWW\mydomain\wp-admin\menu-header.php on line 256

As you can see, it is using a wrong path for some reason in the plugins folder.

Also, after importing my site using All-in-one Migration plugin, everything went worst. These are the errors:

Warning: is_readable(): open_basedir restriction in effect. File(C:\WinNMP\WWW\mydomain/wp-content/plugins/C:\WinNMP\WWW\mydomain\wp-content\plugins\ultimate-elementor/languages/uael-es_ES.mo) is not within the allowed path(s): (c:/winnmp) in C:\WinNMP\WWW\mydomain\wp-includes\l10n.php on line 741

Warning: Cannot modify header information - headers already sent by (output started at C:\WinNMP\WWW\mydomain\wp-includes\l10n.php:741) in C:\WinNMP\WWW\mydomain\wp-includes\pluggable.php on line 1296

Warning: Cannot modify header information - headers already sent by (output started at C:\WinNMP\WWW\mydomain\wp-includes\l10n.php:741) in C:\WinNMP\WWW\mydomain\wp-includes\pluggable.php on line 1299

When trying to access the website, also warnings and fatal errors:

Warning: is_readable(): open_basedir restriction in effect. File(C:\WinNMP\WWW\mydomain/wp-content/plugins/C:\WinNMP\WWW\mydomain\wp-content\plugins\ultimate-elementor/languages/uael-es_ES.mo) is not within the allowed path(s): (c:/winnmp) in C:\WinNMP\WWW\mydomain\wp-includes\l10n.php on line 741

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 20480 bytes) in C:\WinNMP\WWW\mydomain\wp-content\plugins\elementor\includes\base\widget-base.php on line 160

Attached the winnmp.log file.

1 Attachments

Discussion

  • WTriple

    WTriple - 2021-02-25
    • status: open --> wont-fix
     
  • WTriple

    WTriple - 2021-02-25

    This has nothing to do with WinNMP , it is a Wordpress issue.

    This is what happens when you migrate Wordpress instead of installing it from scratch.
    WinNMP has open_basedir restriction enabled by default in php.ini, it is for your own good..

    You need to make some changes in the Wordpress config file and in the database to get it to work.
    Try not to use backslash \ and replace it with slash / in paths

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.