Riversatile
Forum Replies Created
-
Forum: Plugins
In reply to: [Responsive Gallery Grid] breaking WP log-in, only admin users can log inSince version 2.3.16, developper added a security check based on the “manage_options” capability into the file “rgg-options.php”.
Because of this, users that doesn’t have this capability (all but administrators) may encounter the message “You do not have sufficient permissions to access this page.”From version 2.3.16, for best practice the developper should implement a “Role Management” section into the RGG settings panel, and accordingly adapt the security check added in “rgg-options.php” (since version 2.3.16).
Here is a Fix in case your users face “You do not have sufficient permissions to access this page.” in the WordPress Dashboard.
- Find the WordPress capability that is common to the different users who must access to the WordPress Dashboard.
eg: “manage_woocommerce” if users have the “Shop Manager” role
eg: “edit_page” if users have the “Editor” role
eg: “read” if users have the “Subscriber” role - Add the code below into the functions.php file of your child theme
(replace the below bold capability with the one depending your case)
remove_action('admin_init', 'rgg_admin_init');
add_action('admin_init', 'FIX_rgg_admin_init');
function FIX_rgg_admin_init(){
if (!current_user_can('manage_woocommerce')) {
wp_die('You do not have sufficient permissions to access this page.');
}
register_setting( RGG_OPTIONS, RGG_OPTIONS, 'rgg_options_sanitize' );
add_settings_section('rgg_main', 'Main Settings', 'rgg_section_text', RGG_PLUGIN);
add_settings_field('rgg_text_string', 'Plugin Text Input', 'rgg_setting_string', RGG_PLUGIN, 'rgg_main');
}Forum: Plugins
In reply to: [Responsive Gallery Grid] Latest update breaks all public AJAX callsSince version 2.3.16, developper added a security check based on the “manage_options” capability into the file “rgg-options.php”.
Because of this, users that doesn’t have this capability may encounter the message “You do not have sufficient permissions to access this page.”From version 2.3.16, the developper should implement a “Role Management” section into the RGG settings panel, and accordingly adapt the security check added in “rgg-options.php” (since version 2.3.16).
Here is a Fix in case you faces “You do not have sufficient permissions to access this page.”
- Find the WordPress capability that is common to the different users who must access to Responsive Gallery Grid, and/or should not get the error message.
eg: “manage_woocommerce” if users have the “Shop Manager” role
eg: “edit_page” if users have the “Editor” role - Add the code below into the functions.php file of your child theme
remove_action('admin_init', 'rgg_admin_init');
add_action('admin_init', 'FIX_rgg_admin_init');
function FIX_rgg_admin_init(){
if (!current_user_can('manage_woocommerce')) {
wp_die('You do not have sufficient permissions to access this page.');
}
register_setting( RGG_OPTIONS, RGG_OPTIONS, 'rgg_options_sanitize' );
add_settings_section('rgg_main', 'Main Settings', 'rgg_section_text', RGG_PLUGIN);
add_settings_field('rgg_text_string', 'Plugin Text Input', 'rgg_setting_string', RGG_PLUGIN, 'rgg_main');
}Sorry, but I see a lots of these notice in :
/wp-admin/edit.php&post_status=all&post_type=page
Where post-type=page, not on products.
En effet, j’ai vu que vous utilisiez la bonne fonction wc_get_order_item_meta dans 2 de vos fichiers.
Nous avons bien s?r la dernière version du plugin (2.0.1).
Malheureusement, debug.log n’affiche que ceci :[12-Jun-2024 07:31:51 UTC] The WC_Order::get_item_meta function is deprecated since version 3.0. Replace with wc_get_order_item_meta.
Je vais devoir creuser en mode “recherche dans les fichiers” de nos autres extensions.
Je vous remercie de votre retour.- This reply was modified 9 months, 1 week ago by Riversatile.
Thanks @razyrx
Forum: Plugins
In reply to: [YARPP - Yet Another Related Posts Plugin] WordPress bug related to YARPPMême souci de mon c?té pour ces fichiers de traduction (merci pour l’info @pierreripka).
Une erreur de type E_ERROR a été causée dans la ligne 1045 du fichier /home/xxxxxx/public_html/yyyyyy/wp-content/zzzzzz/yet-another-related-posts-plugin/^_^/YARPP_Admin.php
Concernant la vulnérabilité émise, même si j’ai la protection OWASP chez Cloudflare, perso j’ai préféré désactiver YARPP en attendant la version patchée qui apparemment ne devrait plus tarder.
- This reply was modified 1 year, 10 months ago by Riversatile.
Hi,
I did not add any CSS fix got the moment.
What I’ve done was disable your plugin, then sent new issue validation request to Google. After 2 days, the issue was solved. So I was pretty sure the issue came from “Easy Table of Contents”.
Then I activated back the plugin to allow you to troubleshoot the issue.
And now, Google doesn’t notify me about something that fails that deals with “clickable elements too close.Thank you
More detailed screenshots :
Screenshots- This reply was modified 2 years, 11 months ago by Riversatile.
Here is a link example :
Temporarys linkScreenshot :
Screenshot- This reply was modified 2 years, 11 months ago by Riversatile.
- This reply was modified 2 years, 11 months ago by Riversatile.
@katsushi-kawamori Thanks ??
For me, regarding the error
Undefined variable: headers
The error is certainly somewhere below (line 1002) :$headers .= "MIME-Version: 1.0\n"; $headers = 'From: wordpress@' . preg_replace('#^www\.#', '', sanitize_text_field(strtolower($_SERVER['SERVER_NAME']))) . "\n"; $headers .= "Content-Type: multipart/mixed; boundary=\"$boundary\"\n";
It’s confirmed. If I disable WP_DB_BACKUP plugin, my CRON Job runs without any error.
Hi,
Since August 24th, I updated WordPress (I cannot remember exactly when), I can see errors in Logs for the CRON Tasks at my hosting provider.
Undefined index: SERVER_NAME
Then, following some help from some forums, I update my “wp-config.php” file with
if (!isset($_SERVER['SERVER_NAME'])) $_SERVER['SERVER_NAME']="localhost";
Now, in the CRON Logs, I can see error :
Undefined variable: headers
There is something wrong with the forms field and variable that seem to not be defined by WP-DB-BACKUP since WordPress 5.0 or above
Forum: Plugins
In reply to: [WP CleanFix] after installing got fatal errorHi,
Got the same error message on my French distribution of WordPress.
Mandatory to downgrade to previous version 3.0.2The WP CleanFix developper should add a function to check if “get_plugins()” function exists…
Reference: https://codex.www.ads-software.com/Function_Reference/get_pluginsTo do so…
Edit the file “wp_kickstart.php” and replace lines 34 and 35 by :// Get current plugins // Check if get_plugins() function exists. This is required on the front end of the // site, since it is in a file that is normally only loaded in the admin. if ( ! function_exists( 'get_plugins' ) ) { require_once ABSPATH . 'wp-admin/includes/plugin.php'; } $plugins = get_plugins();
The plugin works now… but I got this disclaimer :
The WP CleanFix plugin requires the wpXtreme Framework plugin to run properly.
This forces us to install WP Xtrem extension !
https://wpxtre.me/?? ?? ??
- Find the WordPress capability that is common to the different users who must access to the WordPress Dashboard.