wp_kc
Forum Replies Created
-
Well done @gosuccess ! Thanks. And thanks @bruandet for rolling out the fix so quick.
I also see this…
/** * Create session dir if it doesn't exist. * Note: NFWSESSION_DIR can be defined in the .htninja file. */ if (! self::$session_dir ) { if ( defined('NFWSESSION_DIR') ) { self::$session_dir = NFWSESSION_DIR; } else { self::$session_dir = NFW_LOG_DIR .'/sessions'; } if (! is_dir( self::$session_dir ) ) { $res = mkdir( self::$session_dir, 0700, true ); if ( $res === false ) { return false; } } touch( self::$session_dir .'/index.html'); }I don’t think I have anything special in my security settings that would prevent mkdir() from working in the /wp-content/ folder. My directories are set to 755, and my files are set to 644. All files and directories are owned by the apache2 user, www-data.
Plugins and themes be installed and uninstalled without a problem, so it seems that directories and files can be created and deleted without problems in /wp-content/plugins/ and /wp-content/themes/.
There are six calls to NinjaFirewall_session::start(), but none of them handle a return value of false. It looks like this affects the login, logout, and captcha procedures.
Thanks for the reply. I was not aware of that constant and have not changed it. I do see this in your code…
/**
* Select whether we want to use PHP or NF (default since v4.8.1) sessions.
*/
if ( is_file( NFW_LOG_DIR .'/nfwlog/phpsession') ) {
require_once __DIR__ .'/lib/class-php-session.php';
} else {
if (! defined('NFWSESSION_DIR') ) {
/**
* NFWSESSION_DIR can be defined in the .htninja.
*/
define('NFWSESSION_DIR', NFW_LOG_DIR .'/session');
}
require_once __DIR__ .'/lib/class-nfw-session.php';
}I did recently upgrade all my sites from php8.2-fpm to php8.3-fpm. Is it possible that the change in PHP versions messed it up somehow? Because I do see a /wp-content/nfwlog/session/ directory on my sites, and they have a bunch of session files with date-time stamps that end the day before I did the switch in PHP versions.
- This reply was modified 5 months, 1 week ago by wp_kc.
Forum: Plugins
In reply to: [WP ADA Compliance Check Basic] “PHP Fatal error” when starting scanThanks again!
Forgot to mark resolved
That didn’t fix it. But based on your response, I deleted the plugin, made sure all the plugin files and directories were deleted from the server, then re-installed it. After that, the Quarantine tab started working again.
Thanks!
It is not a publicly accessible web site, and it has WP_DEBUG enabled. These messages only show up in the debug log file while accessing /wp-admin area of the web site. Nothing special has to be done, simply log in to the site. The log file grows by about 2MB per day with these types of messages.
No front end issues are noticeable. I just thought you might be interested, since it looks like these message will turn into errors in the future.
I still got the same result with that…
03-May-21 14:48:38 ERROR Fatal error: forking process failed (cURL error 56: OpenSSL SSL_read: error:1409445C:SSL routines:ssl3_read_bytes:tlsv13 alert certificate required, errno 0: AJAX API). AbortingBut, I figured it out. I have CloudFlare on the site with the problem, and I have “Authenticated Origin Pulls” enabled. When I disabled Authenticated Origin Pulls in my server configuration and paused CloudFlare, it started working. Just pausing CloudFlare alone did not fix it.
So I am assuming the problem is happening because the server can’t do a simple loopback when Authenticated Origin Pulls is on.
I’m research if there is a fix for this. But at this point, it does not look like it is a NinjaScanner problem. So I’m marking this as resolved. Any more ideas would be appreciated though.
I commented out both lines, but still got the same result.
30-Apr-21 05:25:32 ERROR Fatal error: forking process failed (cURL error 56: OpenSSL SSL_read: error:1409445C:SSL routines:ssl3_read_bytes:tlsv13 alert certificate required, errno 0: AJAX API). AbortingP.S. If I switch to WP-CRON mode, the error message is pretty much the same…
29-Apr-21 15:25:37 ERROR Fatal error: forking process failed (cURL error 56: OpenSSL SSL_read: error:1409445C:SSL routines:ssl3_read_bytes:tlsv13 alert certificate required, errno 0: WP-CRON). AbortingIt looks like the Elementor developers found the problem and fixed it. The latest version released 8 hours ago is no longer generating these messages.
Forum: Plugins
In reply to: [Nobs • Share Buttons] unescaped javascript stringFixed!
Thanks for the speedy response.
It works again! Thanks, you guys are awesome.
Thanks. I filed a bug report on your web site. Here is an update for others reading this support thread.
I found and fixed one problem only to find another. A plugin was adding a “defer” parameter to the link for jquery. Since Envira adds inline script in the header right after all the queued scripts are loaded, jquery wasn’t ready for it yet. There was a “jQuery undefined” error because of this. It might be better to surround that code in an onDocumentLoaded event.
After the defer issue was fixed, the images now load on the gallery page as normal. When you click on an image in the gallery, it opens in a lightbox, so that works too. But there is no way to close the lightbox or navigate to the next image in the gallery. When I looked at the javascript debug console, I saw this error immediately after clicking an image to view it…
Uncaught TypeError: s.get(...).style.removeAttribute is not a function F /wp-content/plugins/envira-gallery-lite/assets/js/min/envira-min.js?ver=1.8.3.1:11 jQuery 32 M /wp-content/plugins/envira-gallery-lite/assets/js/min/envira-min.js?ver=1.8.3.1:10 D /wp-content/plugins/envira-gallery-lite/assets/js/min/envira-min.js?ver=1.8.3.1:10 onload /wp-content/plugins/envira-gallery-lite/assets/js/min/envira-min.js?ver=1.8.3.1:10 L /wp-content/plugins/envira-gallery-lite/assets/js/min/envira-min.js?ver=1.8.3.1:10 envirabox /wp-content/plugins/envira-gallery-lite/assets/js/min/envira-min.js?ver=1.8.3.1:11 jQuery 2 envira-min.js:11:1033 F /wp-content/plugins/envira-gallery-lite/assets/js/min/envira-min.js?ver=1.8.3.1:11 jQuery 32 M /wp-content/plugins/envira-gallery-lite/assets/js/min/envira-min.js?ver=1.8.3.1:10 D /wp-content/plugins/envira-gallery-lite/assets/js/min/envira-min.js?ver=1.8.3.1:10 onload /wp-content/plugins/envira-gallery-lite/assets/js/min/envira-min.js?ver=1.8.3.1:10 (Async: EventHandlerNonNull) L /wp-content/plugins/envira-gallery-lite/assets/js/min/envira-min.js?ver=1.8.3.1:10 envirabox /wp-content/plugins/envira-gallery-lite/assets/js/min/envira-min.js?ver=1.8.3.1:11 jQuery 2Thanks.