Hi, thanks for your quick reply.
Unfortunately that didn’t work. I follow that URL and I’d that change ssl did over php file before I open this thread. Also I tried to disable Postviews too during testing process.
Anything else to consider?
Regards.
I don’t think I can help you on this, it looks to me you are using some plugin or it is a config issue. When I access to http://http://www.parloting.com/wp-admin/admin-ajax.php it should not redirect me.
It is not a plugin problem per say. If you are going to use any AJAX plugin, it will be a problem.
You’re right, you save my day with that clue. This is a symptom of some configuration and I need to investigate in-depth. I saw admin-ajax returns 0 only as admin.
Regards.
hello Lester Chan
it is impossible to use the plugins when access to the dashboard is limited only to administrators?
I tried these variants and I get these errors
1) You are not allowed to access this part of the site
function wpse_11244_restrict_admin() {
if ( ! current_user_can( 'manage_options' ) ) {
wp_die( __('You are not allowed to access this part of the site') );
}
}
add_action( 'admin_init', 'wpse_11244_restrict_admin', 1 );
2) equal to the first: You are not allowed to access this part of the site
function wpse_11244_restrict_admin() {
if (!current_user_can('update_core')) {
wp_die(__('You are not allowed to access this part of the site'));
}
}
add_action('admin_init', 'wpse_11244_restrict_admin', 1);
3) here instead, redirects to blank screen:
function wpse_11244_restrict_admin() {
if ( ! current_user_can( 'manage_options' ) && $_SERVER['PHP_SELF'] != '/wp-admin/admin-ajax.php' ) {
wp_redirect( home_url() );
}
}
add_action( 'admin_init', 'wpse_11244_restrict_admin', 1 );
is an error in the plugin?
kindly can you tell me what can be the problem?
sorry but I’m not Italian I hope at least to make me understand.
I thank you in advance
Frank
-Os: mac ML 10.8.2
-broswer:
chrome 24.0.1312.52
safari 6.0.2 (8536.26.17)
-wordpress 3.5
-theme atahualpa 3.7.10
-php 5.2
-phpMyAdmin – 2.11.11.3
[Please post code or markup snippets between backticks or use the code button. As it stands, your posted code may now have been permanently damaged by the forum’s parser.]