I am running a multisite website having problems with purging caches for regular adminstrators, only super admins can purge all caches. As an administrator I get the notice –> Sorry, you are not allowed to access this page.
If it is not possible to fix this, how can I auto-purge caches for Woocommerce detail and list/archive pages? Problem is that after updating a product the changes (e.g. adding or removing sale price) are only applied to detail page and not list/archive page.
Thanks!
Georg
The plugin works very well in de blog with ID 2.
In the blog with the ID 9 the plugin does not work. You can create sources but not import anything. The same settings and the same source were set in Blog 2 and Blog 9 for testing:
Neither via CRON nor manually. No log is created. The import runs for two minutes and stops probably because of timeout (?).
I enabled debug in WP and analyzed the log. No error occurs.
I noticed warning in blog 2:
“Switched site to 2”
Have anybody an idea?
]]>Should this line be added to /etc/nginx/sites-enabled/mywordpressmultisite.com.config?
And, where (in file) and how should line be added?
Thanks!
]]>I have a WP multisite witch contains 6 sites, all the sites have separate facebook pages and pixcels. For all sites with step by step guide I connect them to current facebook page and pixel, for example:
domain.de – facebook page DE, product catalog DE, fixcel DE
domain.pl – facebook page PL, product catalog PL, fixcel PL
domain.eu – facebook page EU, product catalog EU, fixcel EU
For several hours it works fine, but after some time all sites reconnects to same (random) facebook page, pixcel and etc.. For example:
domain.de – facebook page PL, product catalog PL, fixcel PL
domain.pl – facebook page PL, product catalog PL, fixcel PL
domain.eu – facebook page PL, product catalog PL, fixcel PL
I can not understand why it reconnects by it’s self without mine interference.
Please help me with this.
I created a multiste with woocommerce and various sites and languages, when I created site with DE language all looked kind of ok because plugin has his own DE po file. but when I created site with CZ language and created po file (po and mo) with CZ translations content did’t translated. Examples:
email form: https://ibb.co/LYx1BkY
po files locations: https://ibb.co/4gBDNkq
po file – https://ibb.co/yg8jNq5
The other day I was faced with the task of displaying posts from one blog in another.
The output is customized by permalinks.
I have a registered custom type. Entries of this type are output through single.php. By checking query_vars, if necessary, there is a switch to the desired blog to pull the entry.
All metadata can be retrieved without problems in this way. But there are a number of problems:
1) 404 status is transmitted in headers. I change the status to 200 when there is a missing post on the current blog.
2) AIOSEOPack does not work for this entry. Data for 404 status is taken.
Any ideas how I can get this to work correctly?
My post type:
register_post_type( 'quest',
array(
'menu_icon'=>'dashicons-tickets-alt',
'labels' => array(
'name' => __('Quest', 'questhunter'),
'singular_name' => __( 'Quest', 'questhunter'),
'add_new' => __('Add new quest', 'questhunter'),
'menu_name' => __( 'Quests', 'questhunter')
),
'supports'=> array('title','editor','thumbnail','page-attributes','comments'),
'public' => true,
'publicly_queryable' => true,
'hierarchical' => false,
'taxonomies' => array( 'category' ),
'has_archive' => true,
'rewrite' => array(
'slug' => 'quests'
),
)
);
Template rules and redirect
function custom_add_rewrite_rules() {
global $wp_rewrite;
add_rewrite_tag('%from_blog_id%','([^&]+)');
// add_rewrite_tag('%external%','([^&]+)');
add_rewrite_rule(
'^external/([0-9]+)/([a-z-]+)[/]?$',
'index.php?post_type=quest&from_blog_id=$matches[1]&name=$matches[2]',
'top'
);
// add_rewrite_endpoint( 'external', EP_PERMALINK | EP_PAGES );
$wp_rewrite->flush_rules();
}
add_action('init', 'custom_add_rewrite_rules');
add_action( 'template_redirect', 'unlisted_jobs_redirect' );
function unlisted_jobs_redirect($template)
{
// check if is a 404 error, and it's on your jobs custom post type
if( is_404())
{
$blog_id = get_query_var('from_blog_id');
$postname = get_query_var('name');
if ($blog_id) {
switch_to_blog($blog_id);
global $wp_query, $post;
$new_wp_query = new WP_Query(
array(
'post_type' => 'quest',
'name' => $postname,
'from_blog_id' => $blog_id,
'quest' => $postname
));
if (!empty($new_wp_query->posts)) {
$wp_query = $new_wp_query;
header("HTTP/1.1 200 OK");
}
restore_current_blog();
}
}
}
]]>Since I successfully installed Auto-Install Free SSL plugin on WPMU with wildcard subdomains, I’ve been getting these repeated error notices:
[26-Jun-2020 15:49:24 UTC] PHP Notice: Undefined index: use_wildcard in /home/mysite/public_html/wp-content/plugins/auto-install-free-ssl/FreeSSLAuto/src/Admin/DnsServiceProvidersSettings.php on line 66
[26-Jun-2020 15:49:24 UTC] PHP Notice: Undefined index: use_wildcard in /home/mysite/public_html/wp-content/plugins/auto-install-free-ssl/FreeSSLAuto/src/Admin/AddDnsServiceProviderSettings.php on line 66
Is this something you need to change or I need to look at from my end?
Gracias!
]]>When we look at the parameters, the beggining of the url has been automatically cut, without the http start (like this ://mydomain) !
When we look at our site list, we notice the latest (the new one) doesn’t show any title and url.
We also noticed we got 2 e-mail notifications, one to “site admin” saying “New site created” with title but empty URL, and a second to “Plateform …” with OK details.
Our WP pack and plugins are up to date, we tried deactivating our htaccess and contacted our hosting but it did nothing better.
Would someone have an idea of what could be wrong here ?