fgerneth
Forum Replies Created
-
Hi Chris,
please let me know if you have received my email. Had some troubles sending it.
Thanks
Hi Chris,
let me provide some more debug information for you.
In the wp-config.php we have defined these additional constants regarding the plugin directory:
define('WP_PLUGIN_DIR', ABSPATH . 'modules'); define('WP_PLUGIN_URL', 'https://domain.dev/modules'); define('PLUGINDIR', 'modules');
Using a debugger, the value of the variables in a certain line of the
init.php
file are:Line 15: $content_dir: {wordpress_root}/assets Line 16: $dir: {wordpress_root}/modules/better-wp-security/lib/icon-fonts Line 21: $url: https://domain.dev/{site_path}/modules/better-wp-security/lib/icon-fonts Line 37: $url: https://domain.dev/{site_path}/modules/better-wp-security/lib/icon-fonts
Apparently, the path to the modules (former plugins) directory, should not contain the {site_path} sub-directory in the URL.
If you need any further information, I’ll do my best to provide these as well. Unfortunately, I can’t provide access to the site directly.
Hi Chris,
yes they are both set:
define('WP_CONTENT_DIR', ABSPATH . 'assets'); define('WP_CONTENT_URL', 'https://domain.dev/assets');
Having the same issue on Windows as described and analyzed by Jeff-Lewis, there is an easy temporary fix until this is fixed by IThemes: replace the Windows Path Separators by the Linux ones. Luckily for us changes are only required in two places:
– core/class-itsec-core.php:82 : Replace with
'plugin_dir' => str_replace('\\', '/', plugin_dir_path( $plugin_file )), //the path of the plugin directory
– core/class-itsec-global-settings:388 : Replace with$path = str_replace( $itsec_globals['plugin_dir'], '', str_replace('\\', '/', dirname( $file )) );