Hi
That’s odd. NinjaScanner uses the ABSPATH constant defined in your wp-config.php script.
Is your site working or have you been hacked?
Check you wp-config.php; The last 10 lines should look like this:
...
...
/* That's all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
Thread Starter
m0nter
(@m0nter)
Site was hacked, but now is ok. Also wp-config.php is correct.
Unfortunately, the plugin doesn’t react to path changes in the wp-config. ‘Blog directory’ box is still empty (only grey background)…
Is your blog chrooted, e.g., the ABSPATH is “/” only?
Thread Starter
m0nter
(@m0nter)
wp-config.php looks the same as yours. The ABSPATH is “/” only. When I changed it to my server root path (e.g. /my-site/) then it didn’t work. In settings ‘blog directory’ box was still empty.
On my server are many pages, each in a different directory and a domains are assigned to each.
-
This reply was modified 8 years, 3 months ago by
m0nter.
-
This reply was modified 8 years, 3 months ago by
m0nter.
Try the development version of NinjaScanner, it works with ‘/’ as the ABSPATH.
1. Make sure you are running NinjaScanner v1.1.
2. Download those 4 files:
https://plugins.trac.wordpress.org/export/HEAD/ninjascanner/trunk/lib/report_html.php
https://plugins.trac.wordpress.org/export/HEAD/ninjascanner/trunk/lib/report_text.php
https://plugins.trac.wordpress.org/export/HEAD/ninjascanner/trunk/lib/scan.php
https://plugins.trac.wordpress.org/export/HEAD/ninjascanner/trunk/lib/tab_settings.php
3. Upload them over FTP to the “wp-content/plugins/ninjascanner/lib/” folder, and replace the 4 original files.
Alternatively, you can download the whole development version and install it: https://downloads.wordpress.org/plugin/ninjascanner.zip
Then try again to run a scan.
Don’t activate the “Always verify NinjaScanner’s files integrity before starting a scan” option in the settings, because this is the development files and their checksum will not match the original files.
Thread Starter
m0nter
(@m0nter)
I replaced those 4 files and it works. Thank you!