Title: boldfish's Replies | WordPress.org

---

# boldfish

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

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

 Search replies:

## Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP6.1 gets stuck in maintenance mode](https://wordpress.org/support/topic/wp6-1-gets-stuck-in-maintenance-mode/)
 *  Thread Starter [boldfish](https://wordpress.org/support/users/boldfish/)
 * (@boldfish)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/wp6-1-gets-stuck-in-maintenance-mode/#post-16202037)
 * lo and behold:
 * [https://core.trac.wordpress.org/ticket/56966](https://core.trac.wordpress.org/ticket/56966)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP6.1 gets stuck in maintenance mode](https://wordpress.org/support/topic/wp6-1-gets-stuck-in-maintenance-mode/)
 *  Thread Starter [boldfish](https://wordpress.org/support/users/boldfish/)
 * (@boldfish)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/wp6-1-gets-stuck-in-maintenance-mode/#post-16168248)
 * so I dig a bit deeper
 * looking at the code suggests that the wrong file type is being sent to the function.
 * it shouldn’t be trying to use ftp_rmdir() it should be using ftp_delete( $this-
   >link, $file );
 *  /**
    * Deletes a file or directory. * * [@since](https://wordpress.org/support/users/since/)
   2.5.0 * * [@param](https://wordpress.org/support/users/param/) string $file Path
   to the file or directory. * [@param](https://wordpress.org/support/users/param/)
   bool $recursive Optional. If set to true, deletes files and folders recursively.*
   Default false. * [@param](https://wordpress.org/support/users/param/) string|
   false $type Type of resource. ‘f’ for file, ‘d’ for directory. * Default false.*
   [@return](https://wordpress.org/support/users/return/) bool True on success, 
   false on failure. */ public function delete( $file, $recursive = false, $type
   = false ) { if ( empty( $file ) ) { return false; }
 *  if ( ‘f’ === $type || $this->is_file( $file ) ) {
    return ftp_delete( $this-
   >link, $file ); }
 *  if ( ! $recursive ) {
    return ftp_rmdir( $this->link, $file ); }
 *  $filelist = $this->dirlist( trailingslashit( $file ) );
 *  if ( ! empty( $filelist ) ) {
    foreach ( $filelist as $delete_file ) { $this-
   >delete( trailingslashit( $file ) . $delete_file[‘name’], $recursive, $delete_file[‘
   type’] ); } }
 *  return ftp_rmdir( $this->link, $file );
    }`
 * This is clearly a bug somewhere else, and since it’s only affecting filesystem-
   ftpext.php it’s why using FS_direct fixes it.
 * Backtracking to where the function is called from to see why it’s not passing
   filetype next…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP6.1 gets stuck in maintenance mode](https://wordpress.org/support/topic/wp6-1-gets-stuck-in-maintenance-mode/)
 *  Thread Starter [boldfish](https://wordpress.org/support/users/boldfish/)
 * (@boldfish)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/wp6-1-gets-stuck-in-maintenance-mode/#post-16168202)
 * Attempting to trouble shoot on another server same issue .maintenance not deleted,
   but different error:
 * Got error ‘PHP message: PHP Warning: ftp_rmdir(): /public_html/hq-bo/.maintenance:
   No such file or directory in /var/www/xxxxxxxx.co.uk/public_html/hq-bo/wp-admin/
   includes/class-wp-filesystem-ftpext.php on line 397’, referer: [https://www.xxxxxx.co.uk/hq-bo/wp-admin/update-core.php?action=do-theme-upgrade](https://www.xxxxxx.co.uk/hq-bo/wp-admin/update-core.php?action=do-theme-upgrade)
 * well, the file *is there*
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP6.1 gets stuck in maintenance mode](https://wordpress.org/support/topic/wp6-1-gets-stuck-in-maintenance-mode/)
 *  Thread Starter [boldfish](https://wordpress.org/support/users/boldfish/)
 * (@boldfish)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/wp6-1-gets-stuck-in-maintenance-mode/#post-16165012)
 * To add to this, on one site I am testing with the site remains in maintenance
   mode for minutes and then resolves.
 * This is unusual behaviour
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields (ACF®)] autoincrement a number field](https://wordpress.org/support/topic/autoincrement-a-number-field/)
 *  [boldfish](https://wordpress.org/support/users/boldfish/)
 * (@boldfish)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/autoincrement-a-number-field/#post-12039046)
 * it was the bit after this that was puzzling me:
 * /**
    * The code below just displays the currently stored next id on an acf-options-
   page, * so it’s easy to see which id you’re on. The field is disabled to prevent
   easy tinkering with the id. */ function wfp_load_current_document_ids_settingspage(
   $value, $postid, $field) {
 * I couldn’t work out how to tell it which page to display the count on, but if
   I read you right then adding the field name to an existing options page will 
   pick up the current value?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields (ACF®)] autoincrement a number field](https://wordpress.org/support/topic/autoincrement-a-number-field/)
 *  [boldfish](https://wordpress.org/support/users/boldfish/)
 * (@boldfish)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/autoincrement-a-number-field/#post-12037796)
 * One more question if I may…
 * The options page – bit lost with that – do I need to create the page first? what’s
   it called? can’t break down the syntax.
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields (ACF®)] autoincrement a number field](https://wordpress.org/support/topic/autoincrement-a-number-field/)
 *  [boldfish](https://wordpress.org/support/users/boldfish/)
 * (@boldfish)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/autoincrement-a-number-field/#post-12037779)
 * [@workforpizza](https://wordpress.org/support/users/workforpizza/) aha, my ignorance
   is on full display! thanks for that, all makes sense now.
 * :o)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields (ACF®)] autoincrement a number field](https://wordpress.org/support/topic/autoincrement-a-number-field/)
 *  [boldfish](https://wordpress.org/support/users/boldfish/)
 * (@boldfish)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/autoincrement-a-number-field/#post-12037661)
 * ignore that question, I have a different one – how can I reset the current id
   once it’s started?
 * I’ve been testing, but need to change the initial id and changing it at the initial
   value doesn’t seem to work…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields (ACF®)] autoincrement a number field](https://wordpress.org/support/topic/autoincrement-a-number-field/)
 *  [boldfish](https://wordpress.org/support/users/boldfish/)
 * (@boldfish)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/autoincrement-a-number-field/#post-12037491)
 * I’d like this to increment a reference number on a specific custom post type,
   it seems this will work for every post? how do I restrict it to just post-type-
   x?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Stripe Payment Gateway] Billing email address corrupted](https://wordpress.org/support/topic/billing-email-address-corrupted/)
 *  Thread Starter [boldfish](https://wordpress.org/support/users/boldfish/)
 * (@boldfish)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/billing-email-address-corrupted/#post-11957431)
 * Tried a few times to post a ticket at woocommerce.com but all I can do is ‘start
   a chat’ and no-one replies.
 * (Brave browser on a mac)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy)] 6.0.15 breaks internal (navigation) links](https://wordpress.org/support/topic/6-0-15-breaks-internal-navigation-links/)
 *  [boldfish](https://wordpress.org/support/users/boldfish/)
 * (@boldfish)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/6-0-15-breaks-internal-navigation-links/page/2/#post-8886415)
 * It has, and now I need to go and reset 60 sites to track outgoing links..
 * :o)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy)] Analytics Profile cannot be selected](https://wordpress.org/support/topic/analytics-profile-cannot-be-selected/)
 *  [boldfish](https://wordpress.org/support/users/boldfish/)
 * (@boldfish)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/analytics-profile-cannot-be-selected/#post-8885696)
 * You can workaround this by searching using numbers from the UA profile, rather
   than the site url.
 * Not ideal, but at least you can select the profile this way.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy)] 6.0.15 breaks internal (navigation) links](https://wordpress.org/support/topic/6-0-15-breaks-internal-navigation-links/)
 *  [boldfish](https://wordpress.org/support/users/boldfish/)
 * (@boldfish)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/6-0-15-breaks-internal-navigation-links/#post-8885683)
 * Confirmed in Chrome and Firefox on MacOS- I discovered this as I was working 
   through around 64 sites that had lost connection to Google analytics following
   the previous update.
 * The big red box urging to switch to JS tracking didn’t help, I’d done that on
   all the sites I reonnected.
 * I’d reconnected half my sites and was testing in Chrome to see that GA was registering
   hits while updating (with infiniteWP) them all to the latest version.
 * Suddenly no menus working.
 * I spent two hours trying to find the conflict on the site before realising they
   were all affected and am still working back from the start switching off the 
   track outgoing links with JS setting.
 * This has cost me dear and I was on the brink of upgrading to pro, now I’m seriously
   looking for an easier, cheaper solution.
 * Lost all stats since 20th Feb, and lost a day fixing something that shouldn’t
   have broken.
 * I’m also unhappy about how the dropdown search for GA profile fails to allow 
   selection *most* of the time – looking up the UA code to search for the profile,
   instead of the site url is another time consuming task I didn’t expect.

Viewing 13 replies - 1 through 13 (of 13 total)