karmeljuk
Forum Replies Created
-
Hello @afhelpteam
This site is hidden from the public
When do you plan to release the new plugin’s update?Forum: Plugins
In reply to: [Redirection] Redirect pages with “+” symbolHey @johnny5
Here is my solution:
/** * Redirect old Drupal pages with "+" in the URL */ add_filter( 'redirect_has_pluses', function ( $result, $url ) { if ( strpos( $url, '+' ) !== false ) { $target_url = str_replace("+", "-", $url); var_dump($target_url); wp_safe_redirect( $target_url ); exit; } }, 10, 2 );
Forum: Plugins
In reply to: [Redirection] Redirect pages with “+” symbolThank you @johnny5
Is it possible to use my own shortcode in the plugin? I wrote it, but doesn’t work
function pluses_to_dashes( $attrs, $content, $tag ) { if ( $tag === 'pluses' ) { return str_replace( [ '+', ' ' ], '-', $content ); } return apply_filters( 'redirection_url_transform', '', $tag, $attrs, $content ); } add_shortcode( 'pluses', 'pluses_to_dashes' );
It redirect me to url [pluses]lorem+ipsum[/[pluses]pluses]lorem+ipsum[/pluses]…
Forum: Plugins
In reply to: [Redirection] Redirect pages with “+” symbolThank you @johnny5
As i see the shortcode
[dashes]data[/dashes]
?– convert any underscores in the data to dashes. So I can’t use it for the plus symbol. Have can I convert pluses into dashes?Hello @shubhanshukandani
Thanks for the quick response. It works fine after cleaning huge database tables from your plugin. I mean wp_ig tablesHi @shubhanshukandani
Thank you for your helpHey @shubhanshukandani
Here is server info:### wp-server ### php_sapi: fpm-fcgi max_input_variables: 1000 time_limit: 30 memory_limit: 512M max_input_time: 60 upload_max_filesize: 100M php_post_max_size: 100M suhosin: false imagick_availability: true pretty_permalinks: true htaccess_extra_rules: true ### wp-database ### extension: mysqli max_allowed_packet: 16777216 max_connections: 350
Hi @shubhanshukandani
Thanks for the replay. Is it possible to select all reports? I have 33,785 items and I can select only 20 items at onceHere is the log:
[13-Jan-2023 09:21:40 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 16384 bytes) in /home/site.com/public_html/wp-includes/class-wpdb.php on line 2187
Forum: Plugins
In reply to: [WordPress Sentry] Exclude wp-admin issues`Hi!
I don’t have a snippet for you to just copy and paste over unfortunately but we do have documentation on how to exclude errors from specific parts, this can be easily adjusted to exclude errors from the /wp-admin/.
> https://github.com/stayallive/wp-sentry#capturing-errors-only-from-certain-theme-andor-plugin
Take a look to see if you can use that to do what you want!`
Hello Alex
Thanks for your reply. I already use this filter, but I’m not sure how to modify it for wp-admin. Could you please help me?Forum: Plugins
In reply to: [WordPress Sentry] Ignore for parent themeThanks, Alex
I wrote code in this way:foreach ( $stacktrace->getFrames() as $frame ) { // Check the the frame happened inside our theme or plugin // Change THEME_NAME and PLUGIN_NAME to whatever is required // And / or modify this <code>if</code> statement to detect other variables if ( $strContainsHelper( $frame->getFile(), 'themes/brooklyn-child' ) ) { // Exclude parent theme Brooklyn if ( $strContainsHelper( $frame->getFile(), 'themes/brooklyn/' ) { return; } // Send the event to Sentry return $event; } }
Forum: Plugins
In reply to: [EWWW Image Optimizer] Placeholders canceledgreat. Thanks nosilver4u
Hi @webtoffee
This code works great. Thank you a lot
Hey Jared
Sounds great. Thank you
Hey
I checked your plugin using PHP Compatibility Checker and found few bugs
Can you please fix these issues
Thanks
FILE: wp-content/plugins/wp-mail-mtp/vendor/guzzlehttp/promises/src/functions.php ---------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES ---------------------------------------------------------------------------------------------------------------------------------- 222 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead 257 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead 313 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead ---------------------------------------------------------------------------------------------------------------------------------- FILE: wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/bootstrap.php ---------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------------------------------------------------------------------------- 10 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2 ---------------------------------------------------------------------------------------------------------------------------------------- FILE: wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Crypt/Random.php ------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 5 ERRORS AFFECTING 2 LINES ------------------------------------------------------------------------------------------------------------------------------------------------------- 69 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL instead 69 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 108 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL instead 108 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 108 | ERROR | The constant "MCRYPT_DEV_URANDOM" is deprecated since PHP 7.1 and removed since PHP 7.2 -------------------------------------------------------------------------------------------------------------------------------------------------------
- This reply was modified 5 years, 10 months ago by karmeljuk.