Fred001
Forum Replies Created
-
I have the same error…
Hi @wfmark !
Thanks for your advices. I test disable plugins and theme and I found the problem.
I use a child them with specific functions.php and it is this function which generate error of wordfense scan :Thank you for your advices. I tested disabling plugins and theme and found the problem.
I’m using a child theme with specific functions.php and it’s this function that generates the wordfense scan error :/* Add Fred Hide the subscriber dashboard */ add_action('admin_init', 'no_dashboard'); function no_dashboard() { if (!current_user_can('manage_options') && $_SERVER['DOING_AJAX'] != '/wp-admin/admin-ajax.php') { wp_redirect(home_url()); exit; } } function my_function_admin_bar($content) { return ( current_user_can("administrator") ) ? $content : false; } add_filter( 'show_admin_bar' , 'my_function_admin_bar');
I changed like this* :
/* Add Fred Hide the subscriber dashboard */ function remove_subscriber_admin_bar() { $current_user = wp_get_current_user(); if (count($current_user->roles) == 1 && $current_user->roles[0] == 'subscriber') { show_admin_bar(false); } } add_action('wp_loaded', 'remove_subscriber_admin_bar'); // Redirect subscriber accounts from dashboard to homepage function redirect_subscriber_to_frontend() { $current_user = wp_get_current_user(); if (count($current_user->roles) == 1 && $current_user->roles[0] == 'subscriber') { wp_redirect(site_url('/')); exit; } } add_action('admin_init', 'redirect_subscriber_to_frontend');
Source : https://www.ads-software.com/support/topic/how-to-hide-the-dashboard-for-subscribers/
All thanks and sorry for the loss of time
A little up ??
Fred
Thanks @wfmark. I sent you the report.
Fred
Thanks @wfmark
Same issue with your advices.
This is my new log :[Dec 13 17:47:16:1702486036.674478:4:info] Scan process ended after forking.
[Dec 13 17:47:15:1702486035.655390:4:info] Starting cron via proxy at URL https://noc1.wordfence.com/scanp/mondomaine.org/wp-admin/admin-ajax.php?action=wordfence_doScan&isFork=0&scanMode=standard&cronKey=7c452ea7a604d87ff6869799da388993&k=42cd1d18e82b4bf3f34bcd4eccf97b09a9ecde3cd9339a6c4d5e90f2b3c5159ce9f9fa3dc4191803fa2f9acaccc750c9e613ed41c74a4e4abf154cffce634201&ssl=1&signature=485a58e7c11385e78da49549682f86769b4aa46fbfae820dfce4ae60347d4332
[Dec 13 17:47:15:1702486035.638166:4:info] getMaxExecutionTime() returning config value: 20
[Dec 13 17:47:15:1702486035.630059:4:info] Got value from wf config maxExecutionTime: 20
[Dec 13 17:47:15:1702486035.588129:4:info] Entering start scan routine
[Dec 13 17:47:15:1702486035.554172:4:info] Ajax request received to start scan.
[Dec 13 17:47:08:1702486028.430303:10:info] SUM_KILLED:A request was received to stop the previous scan.
[Dec 13 17:47:08:1702486028.425873:1:info] Scan stop request received.
[Dec 13 17:46:50:1702486010.941482:4:info] Calling Wordfence API v2.26:https://noc1.wordfence.com/v2.26/?k=42cd1d18e82b4bf3f34bcd4eccf97b09a9ecde3cd9339a6c4d5e90f2b3c5159ce9f9fa3dc4191803fa2f9acaccc750c9e613ed41c74a4e4abf154cffce634201&s=eyJ3cCI6IjYuNC4yIiwid2YiOiI3LjExLjAiLCJtcyI6ZmFsc2UsImgiOiJodHRwczpcL1wvZmFtaWxsZW1hdGh5LmZyIiwic3NsdiI6MjY5NDg4NTExLCJwdiI6IjguMS4yNiIsInB0IjoiZnBtLWZjZ2kiLCJjdiI6IjcuNzQuMCIsImNzIjoiT3BlblNTTFwvMS4xLjF3Iiwic3YiOiJBcGFjaGUiLCJkdiI6IjEwLjUuMjEtTWFyaWFEQi0wK2RlYjExdTEiLCJsYW5nIjoiZnJfRlIifQ&action=timestamp
[Dec 13 17:43:44:1702485824.852021:2:info] Attempting to resume scan stage (0 attempt(s) remaining)…Sorry, all thanks, it’s ok for me.
Hi @wfmark,
I am not using Cloudflare.
My log is :
[Dec 04 22:35:25] Entering start scan routine
[Dec 04 22:35:25] Got value from wf config maxExecutionTime: 0
[Dec 04 22:35:25] Got max_execution_time value from ini: 500
[Dec 04 22:35:25] ini value of 500 is higher than value for WORDFENCE_SCAN_MAX_INI_EXECUTION_TIME (90), reducing
[Dec 04 22:35:25] getMaxExecutionTime() returning half ini value: 45
[Dec 04 22:35:25] Starting cron via proxy at URL https://noc1.wordfence.com/scanp/mondomain.com/wp-admin/admin-ajax.php?action=wordfence_doScan&isFork=0&scanMode=standard&cronKey=ecb6273ec71df4f7749bad37f0686f42&k=42cd1d18e82b4bf3f34bcd4eccf97b09a9ecde3cd9339a6c4d5e90f2b3c
[Dec 04 22:35:26] Scan process ended after forking.
[Dec 04 22:35:27] Calling Wordfence API v2.26:https://noc1.wordfence.com/v2.26/?k=42cd1d18e82b4bf3f34bcd4eccf97b09a9ecde3cd9339a6c4d5e90f2b3c5159ce9f9fa3dc4191803fa2f9acaccc750c9e613ed41c74a4e4abf154cffce634201
[Dec 04 22:35:37] Ajax request received to start scan.
[Dec 04 22:35:37] Entering start scan routineThanks
FredThanks ! I don’t know how to check my roles. All seems ok in wp-admin (1 admin and 14 subscribers).
Should I go and check something in the wp-user tables ?Forum: Plugins
In reply to: [Classic Editor] Can’t edit postsThe problem seems to be with php_version: 8.1.13.
I change with php 7.4 and all is ok.Thanks
Forum: Plugins
In reply to: [Classic Editor] Can’t edit postsHi,
I try with :- Twenty Twenty Three theme
- Only Classic editor plugin active
- Everything up to date
but I have still the same problem : https://ibb.co/Jm4MQY5
No JavaScript error : Cette page utilise la propriété non standard ??zoom??. Envisagez d’utiliser calc() dans les valeurs des propriétés pertinentes ou utilisez ??transform?? avec ??transform-origin: 0 0??. post-new.php
JQMIGRATE: Migrate is installed with logging active, version 3.3.2With my theme and plugins, I have one error :
Cette page utilise la propriété non standard ? zoom ?. Envisagez d’utiliser calc() dans les valeurs des propriétés pertinentes ou utilisez ? transform ? avec ? transform-origin: 0 0 ?. post-new.php
jQuery.Deferred exception: wp.media.view.MediaFrame is undefined initFolders@https://example.org/wp-content/plugins/responsive-lightbox/js/admin-folders.js?ver=2.4.3:14:37
@https://example.org/wp-content/plugins/responsive-lightbox/js/admin-folders.js?ver=2.4.3:206:4
mightThrow@https://example.org/wp-includes/js/jquery/jquery.js?ver=3.6.1:3766:29
Deferred/then/resolve/Deferred/then/resolve/<@https://example.org/wp-includes/js/jquery/jquery.js?ver=3.6.1:3872:16 fire@https://example.org/wp-includes/js/jquery/jquery.js?ver=3.6.1:3500:31 fireWith@https://example.org/wp-includes/js/jquery/jquery.js?ver=3.6.1:3630:7 fire@https://example.org/wp-includes/js/jquery/jquery.js?ver=3.6.1:3638:10 fire@https://example.org/wp-includes/js/jquery/jquery.js?ver=3.6.1:3500:31 fireWith@https://example.org/wp-includes/js/jquery/jquery.js?ver=3.6.1:3630:7 ready@https://example.org/wp-includes/js/jquery/jquery.js?ver=3.6.1:4110:13 completed@https://example.org/wp-includes/js/jquery/jquery.js?ver=3.6.1:4120:9 EventListener.handleEvent@https://example.org/wp-includes/js/jquery/jquery.js?ver=3.6.1:4136:11 @https://example.org/wp-includes/js/jquery/jquery.js?ver=3.6.1:36:10 @https://example.org/wp-includes/js/jquery/jquery.js?ver=3.6.1:40:4 undefined jquery.js:4050:18 JQMIGRATE: jQuery.fn.click() event shorthand is deprecated jquery-migrate.js:100:12 JQMIGRATE: jQuery(window).on(‘load’…) called after load event occurred jquery-migrate.js:100:12 JQMIGRATE: jQuery.fn.blur() event shorthand is deprecated jquery-migrate.js:100:12 JQMIGRATE: jQuery.fn.keydown() event shorthand is deprecated jquery-migrate.js:100:12 Uncaught TypeError: wp.media.view.MediaFrame is undefined initFolders https://example.org/wp-content/plugins/responsive-lightbox/js/admin-folders.js?ver=2.4.3:14 https://example.org/wp-content/plugins/responsive-lightbox/js/admin-folders.js?ver=2.4.3:206
jQuery 13Forum: Plugins
In reply to: [Responsive Lightbox & Gallery] Break the site since WP 5.6Same issue. Waiting fix. All thanks !
Fred
Forum: Plugins
In reply to: [MailPoet Newsletters (Previous)] ActivationHi,
Since update MH Magazine lite Version : 2.5.5, the problem is solved.
All thanks
Forum: Plugins
In reply to: [MailPoet Newsletters (Previous)] Delete sent newslettersI have the same question.
All thanks.Fred
I don’t know how to reset this post.
SorryForum: Plugins
In reply to: [Simple Image Sizes] Regenerate only featured imagesI want also regenerate thumbnails only for featured post images.
Do you find a solution ?Fred