Title: Marcos Nobre's Replies | WordPress.org

---

# Marcos Nobre

  [  ](https://wordpress.org/support/users/onyx808/)

 *   [Profile](https://wordpress.org/support/users/onyx808/)
 *   [Topics Started](https://wordpress.org/support/users/onyx808/topics/)
 *   [Replies Created](https://wordpress.org/support/users/onyx808/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/onyx808/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/onyx808/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/onyx808/engagements/)
 *   [Favorites](https://wordpress.org/support/users/onyx808/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 32 total)

1 [2](https://wordpress.org/support/users/onyx808/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/onyx808/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/onyx808/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Audio Player Block – Advanced Block for Embedding Audio Files] Safari issue](https://wordpress.org/support/topic/safari-issue-16/)
 *  Thread Starter [Marcos Nobre](https://wordpress.org/support/users/onyx808/)
 * (@onyx808)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/safari-issue-16/#post-18266157)
 * [@shamim10](https://wordpress.org/support/users/shamim10/) great, updated and
   now it shows perfecly, thank you!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Audio Player Block – Advanced Block for Embedding Audio Files] Safari issue](https://wordpress.org/support/topic/safari-issue-16/)
 *  Thread Starter [Marcos Nobre](https://wordpress.org/support/users/onyx808/)
 * (@onyx808)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/safari-issue-16/#post-18265264)
 * Plugin Version 1.2.1 
 * Safari Version 18.1.1 (20619.2.8.11.12)
 * MacOS 15.1.1
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Nginx Cache] PHP Warning: Undefined variable $item](https://wordpress.org/support/topic/php-warning-undefined-variable-item/)
 *  [Marcos Nobre](https://wordpress.org/support/users/onyx808/)
 * (@onyx808)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/php-warning-undefined-variable-item/#post-18023585)
 * The warnings you’re seeing are due to the fact that the variable `$item` is not
   defined properly before it is accessed in the `validate_dirlist` method 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_dirlist` method (around
   line 211):
 *     ```wp-block-code
       if ( $item['type'] === 'f' && strpos( $item, "." ) !== false ) {
           return true;
       }
       ```
   
 * The variable `$item` is being used without being initialized first. To resolve
   this, you’ll need to iterate through the `$list` array properly and ensure that`
   $item` is defined before trying to access its properties.
 * Here’s the corrected version of your `validate_dirlist` function:
 *     ```wp-block-code
       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;
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Paid Memberships Pro - Content Restriction, User Registration, & Paid Subscriptions] Bulk cancel subcriptions?](https://wordpress.org/support/topic/bulk-cancel-subcriptions/)
 *  Thread Starter [Marcos Nobre](https://wordpress.org/support/users/onyx808/)
 * (@onyx808)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/bulk-cancel-subcriptions/#post-15283026)
 * [@andrewza](https://wordpress.org/support/users/andrewza/) thank you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Paid Memberships Pro - Content Restriction, User Registration, & Paid Subscriptions] Bulk cancel subcriptions?](https://wordpress.org/support/topic/bulk-cancel-subcriptions/)
 *  Thread Starter [Marcos Nobre](https://wordpress.org/support/users/onyx808/)
 * (@onyx808)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/bulk-cancel-subcriptions/#post-15282951)
 * [@andrewza](https://wordpress.org/support/users/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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Native Password Hash] undefined constant PASSWORD_ARGON2ID](https://wordpress.org/support/topic/undefined-constant-password_argon2id/)
 *  Thread Starter [Marcos Nobre](https://wordpress.org/support/users/onyx808/)
 * (@onyx808)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/undefined-constant-password_argon2id/#post-11923970)
 * You 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.3
       ```
   
 * macOS
 *     ```
       ➜ brew update
       ➜ brew install php
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Native Password Hash] undefined constant PASSWORD_ARGON2ID](https://wordpress.org/support/topic/undefined-constant-password_argon2id/)
 *  Thread Starter [Marcos Nobre](https://wordpress.org/support/users/onyx808/)
 * (@onyx808)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/undefined-constant-password_argon2id/#post-11919927)
 * [@ayeshrajans](https://wordpress.org/support/users/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
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[BuddyPress Activity Plus] link publishing not working regardingon the WordPress Role](https://wordpress.org/support/topic/link-publishing-not-working-regardingon-the-wordpress-role/)
 *  [Marcos Nobre](https://wordpress.org/support/users/onyx808/)
 * (@onyx808)
 * [7 years ago](https://wordpress.org/support/topic/link-publishing-not-working-regardingon-the-wordpress-role/#post-11460924)
 * 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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[BuddyPress Activity Plus] link publishing not working regardingon the WordPress Role](https://wordpress.org/support/topic/link-publishing-not-working-regardingon-the-wordpress-role/)
 *  [Marcos Nobre](https://wordpress.org/support/users/onyx808/)
 * (@onyx808)
 * [7 years ago](https://wordpress.org/support/topic/link-publishing-not-working-regardingon-the-wordpress-role/#post-11455308)
 * Im also having this issue, administrator user can post links, etc… subscribers
   can’t, it was working fine a few days ago…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[BuddyPress Activity Plus] PHP Notices](https://wordpress.org/support/topic/php-notices-103/)
 *  Thread Starter [Marcos Nobre](https://wordpress.org/support/users/onyx808/)
 * (@onyx808)
 * [7 years ago](https://wordpress.org/support/topic/php-notices-103/#post-11371995)
 * do you have wp_debug set to true?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance] Cache?](https://wordpress.org/support/topic/cache-42/)
 *  Thread Starter [Marcos Nobre](https://wordpress.org/support/users/onyx808/)
 * (@onyx808)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/cache-42/#post-11058520)
 * I tried restarting php on the server and hit the “refresh tables” and it doesn’t
   change…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Password Protected — Lock Entire Site, Pages, Posts, Categories, and Partial Content] Exclude certain pages from requiring a password?](https://wordpress.org/support/topic/exclude-certain-pages-from-requiring-a-password/)
 *  [Marcos Nobre](https://wordpress.org/support/users/onyx808/)
 * (@onyx808)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/exclude-certain-pages-from-requiring-a-password/#post-9300582)
 * 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.wordpress.org/reference/functions/is_page/#user-contributed-notes](https://developer.wordpress.org/reference/functions/is_page/#user-contributed-notes)
    -  This reply was modified 8 years, 9 months ago by [Marcos Nobre](https://wordpress.org/support/users/onyx808/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[rtMedia for WordPress, BuddyPress and bbPress] Not working in https](https://wordpress.org/support/topic/not-working-in-https/)
 *  [Marcos Nobre](https://wordpress.org/support/users/onyx808/)
 * (@onyx808)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/not-working-in-https/#post-9196307)
 * I 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 );
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wordfence Security - Firewall, Malware Scan, and Login Security] * Scan Time Limit Exceeded](https://wordpress.org/support/topic/scan-time-limit-exceeded/)
 *  Thread Starter [Marcos Nobre](https://wordpress.org/support/users/onyx808/)
 * (@onyx808)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/scan-time-limit-exceeded/#post-8935717)
 * 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](https://wordpress.org/support/users/onyx808/).
    -  This reply was modified 9 years, 1 month ago by [Marcos Nobre](https://wordpress.org/support/users/onyx808/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wordfence Security - Firewall, Malware Scan, and Login Security] * Scan Time Limit Exceeded](https://wordpress.org/support/topic/scan-time-limit-exceeded/)
 *  Thread Starter [Marcos Nobre](https://wordpress.org/support/users/onyx808/)
 * (@onyx808)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/scan-time-limit-exceeded/#post-8932405)
 * 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…

Viewing 15 replies - 1 through 15 (of 32 total)

1 [2](https://wordpress.org/support/users/onyx808/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/onyx808/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/onyx808/replies/page/2/?output_format=md)