Marcos Nobre
Forum Replies Created
-
Forum: Plugins
In reply to: [Audio Player Block – Advanced Block for Embedding Audio Files] Safari issue@shamim10 great, updated and now it shows perfecly, thank you!
Forum: Plugins
In reply to: [Audio Player Block – Advanced Block for Embedding Audio Files] Safari issuePlugin Version 1.2.1
Safari Version 18.1.1 (20619.2.8.11.12)
MacOS 15.1.1
Forum: Plugins
In reply to: [Nginx Cache] PHP Warning: Undefined variable $itemThe warnings you’re seeing are due to the fact that the variable
$itemis not defined properly before it is accessed in thevalidate_dirlistmethod of your plugin. Specifically, the code is trying to access the array offset on a variable that may not have been initialized.The issue lies in this part of the code in the
validate_dirlistmethod (around line 211):if ( $item['type'] === 'f' && strpos( $item, "." ) !== false ) { return true; }The variable
$itemis being used without being initialized first. To resolve this, you’ll need to iterate through the$listarray properly and ensure that$itemis defined before trying to access its properties.Here’s the corrected version of your
validate_dirlistfunction:private function validate_dirlist( $list ) { foreach ( $list as $item ) { // Ensure $item is defined and is an array if ( ! isset( $item['type'] ) || ! is_array( $item ) ) { continue; // Skip invalid or undefined items } // check if it's a file and contains a dot (.) if ( $item['type'] === 'f' && strpos( $item['name'], "." ) !== false ) { return true; } // validate subdirectories recursively if ( $item['type'] === 'd' && ! empty( $item['files'] ) && is_array( $item['files'] ) ) { if ( ! $this->validate_dirlist( $item['files'] ) ) { return false; } } } return true; }@andrewza thank you.
@andrewza Would it be possible to use the Developer’s Toolkit to target just one day? not all members in one particular level?
Forum: Plugins
In reply to: [PHP Native Password Hash] undefined constant PASSWORD_ARGON2IDYou are right, I was testing on my local environment with php 7.2 installed using brew…
for anyone having the same issue see below:
To check whether PHP is compiled with Argon2:
➜ php -r 'print_r(get_defined_constants());' | grep -i argon [PASSWORD_ARGON2I] => 2 [PASSWORD_ARGON2_DEFAULT_MEMORY_COST] => 1024 [PASSWORD_ARGON2_DEFAULT_TIME_COST] => 2 [PASSWORD_ARGON2_DEFAULT_THREADS] => 2 [SODIUM_CRYPTO_PWHASH_ALG_ARGON2I13] => 1 [SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13] => 2 [SODIUM_CRYPTO_PWHASH_STRPREFIX] => $argon2id$If you don’t get the above output, either re-compile PHP 7.2+ with the flag –with-password-argon2 or:
Ubuntu
➜ sudo add-apt-repository ppa:ondrej/php ➜ sudo apt-get update ➜ sudo apt-get install php7.2 or php7.3macOS
➜ brew update ➜ brew install phpForum: Plugins
In reply to: [PHP Native Password Hash] undefined constant PASSWORD_ARGON2ID@ayeshrajans Im on PHP Version 7.2.9, setting “define(‘WP_PASSWORD_HASH_ALGO’, PASSWORD_ARGON2I);”
Still gives error.
( ! ) Warning: Use of undefined constant PASSWORD_ARGON2I – assumed ‘PASSWORD_ARGON2I’ (this will throw an Error in a future version of PHP) in /wp-config.php on line 85
Ok, I tried everything possible, no luck…
deactivated all plugins but buddypress and buddypress activity plus, didn’t work.
downgraded wordpress to prior versions, no luck.to replicate, just add a user with the user role of “subscriber” and try adding a link. it doesn’t work.
Im also having this issue, administrator user can post links, etc… subscribers can’t, it was working fine a few days ago…
Forum: Plugins
In reply to: [BuddyPress Activity Plus] PHP Noticesdo you have wp_debug set to true?
I tried restarting php on the server and hit the “refresh tables” and it doesn’t change…
just run into this issue, and solved by editing the password-protected.php
add a new line at line 70
add_filter( 'pre_option_password_protected_status', array( $this, 'allow_page' ) );then add this code around line 218
public function allow_page( $bool ) { if ( is_page('page-to-exclude-slug') && (bool) get_option( 'password_protected_users' ) ) { return 0; } return $bool; }You may change “page-to-exclude-slug” to the slug or id of the pages you want to exclude, if you need to exclude more of one page please see https://developer.ww.wp.xz.cn/reference/functions/is_page/#user-contributed-notes
- This reply was modified 8 years, 9 months ago by Marcos Nobre.
Forum: Plugins
In reply to: [rtMedia for WordPress, BuddyPress and bbPress] Not working in httpsI had the same issue, fixed by adding the following code to the functions.php file
function _bd_force_https() { if ( empty( $_SERVER['HTTPS'] ) ) return; ob_start(); } add_action( 'template_redirect', '_bd_force_https', 1 ); function _bd_output_https_page() { if ( empty( $_SERVER['HTTPS'] ) ) return; echo str_ireplace( 'http://', 'https://', ob_get_clean() ); } add_action( 'wp_footer', '_bd_output_https_page', 99 );OK I think Im getting somewhere, for some reason it seems to be scanning all over the place, the activity logs say this
Scan interrupted. Scanned 23168 files, 21 plugins, 1 themes, 1536 pages, 103 comments and 842286 records in 3 hours 2 seconds.
I checked the website folder and there is only 1900 files total, why is it scanning 23k files?
What are 842286 records?
Thank you!
- This reply was modified 9 years, 1 month ago by Marcos Nobre.
- This reply was modified 9 years, 1 month ago by Marcos Nobre.
Version 6.3.4, I run 4 different websites in different machines, and all 4 of them have this issue with exceeding the time limit for scanning…