boldfish
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WP6.1 gets stuck in maintenance modelo and behold:
Forum: Fixing WordPress
In reply to: WP6.1 gets stuck in maintenance modeso 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 2.5.0
*
* @param string $file Path to the file or directory.
* @param bool $recursive Optional. If set to true, deletes files and folders recursively.
* Default false.
* @param string|false $type Type of resource. ‘f’ for file, ‘d’ for directory.
* Default false.
* @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
In reply to: WP6.1 gets stuck in maintenance modeAttempting 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
well, the file *is there*
Forum: Fixing WordPress
In reply to: WP6.1 gets stuck in maintenance modeTo 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
In reply to: [Advanced Custom Fields (ACF®)] autoincrement a number fieldit 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
In reply to: [Advanced Custom Fields (ACF®)] autoincrement a number fieldOne 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
In reply to: [Advanced Custom Fields (ACF®)] autoincrement a number field@workforpizza aha, my ignorance is on full display! thanks for that, all makes sense now.
:o)
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF®)] autoincrement a number fieldignore 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
In reply to: [Advanced Custom Fields (ACF®)] autoincrement a number fieldI’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
In reply to: [WooCommerce Stripe Payment Gateway] Billing email address corruptedTried 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)
It has, and now I need to go and reset 60 sites to track outgoing links..
:o)
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.
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.