joergpe
Forum Replies Created
-
I had the same here using 3.6.0 with WP-Optimize.
Changed back to 3.5.0 for workaround.The issue is solved in 4.7.1, thanx
any place in wp-config.php
in my case it was the comment right in the begining
/**Grundeinstellungen für WordPress
Please note, it has to be the ansi char for ü not in UTF
This was a old installation I think someone has saved the wp-config.php
as ansi fileWorkaround here:
https://wordpress.org/support/topic/create-package-stuck-at-65/The max_connection error is in include/db.php line 135.
Every request to the remote database opens a new connection to the remote database. Here is a fix:function mc_is_remote_db() {
global $wpdb;
global $remotedb;
$mcdb = $wpdb;
if ( ‘true’ === mc_get_option( ‘remote’ ) && function_exists( ‘mc_remote_db’ ) ) {
if ( !isset( $remotedb ) ) {
$remotedb = mc_remote_db();
}
$mcdb = $remotedb;
}
return $mcdb;
}The Warning can be removed in my-calendar-locations.php line 203
if ( ! $post_id && isset($mcdb->postmeta) ) {Would be nice if you can push this in next Version!
Please note: when I remove the location of the events, the warnings and the error “establishing a database connection is gone”.
So I think the SQL statements that selects the location produces an error and the SQL connection is not closed correctly and is running out of connections.I use a server wih 300 max_user_connections that should be enough.
And the error occures with 42 or more events in the list so if I have more max_user_connections I will run into the error later with e.g. 200 entries.
Please give this problem a look, the cool feature “remote DB” is not usable like this.
Forum: Plugins
In reply to: [My Calendar - Accessible Event Manager] Filter by Event Location issueForum: Plugins
In reply to: [My Calendar - Accessible Event Manager] Filter by Event Location issueI have a clean WP 6.2.2 Installation without any other plugins. The problem appears always when I add an event with a location and update this event with the location drop down box in the state of “no change”.
I digged into the source code and I think I found the problem in my-calendar-event-editor.php line 2221:
// Set location.
if ( ‘none’ === $location_preset && ( empty( $post[‘event_label’] ) || is_numeric( $event_location ) ) ) {
// event location name is required to copy over.
} else {I think it should be !is_numeric( $event_location )
because otherwise the block at line 2244 will not be executed and this is needed to keep the location data of the event.Would be great if you can update the file.