Title: pharmanext's Replies | WordPress.org

---

# pharmanext

  [  ](https://wordpress.org/support/users/pharmanext/)

 *   [Profile](https://wordpress.org/support/users/pharmanext/)
 *   [Topics Started](https://wordpress.org/support/users/pharmanext/topics/)
 *   [Replies Created](https://wordpress.org/support/users/pharmanext/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/pharmanext/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/pharmanext/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/pharmanext/engagements/)
 *   [Favorites](https://wordpress.org/support/users/pharmanext/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 57 total)

1 [2](https://wordpress.org/support/users/pharmanext/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/pharmanext/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/pharmanext/replies/page/4/?output_format=md)
[→](https://wordpress.org/support/users/pharmanext/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Perfect Images: Regenerate Thumbnails, Image Sizes, WebP & AVIF] AVIF’s file permissions bug](https://wordpress.org/support/topic/avifs-file-permissions-bug/)
 *  Thread Starter [pharmanext](https://wordpress.org/support/users/pharmanext/)
 * (@pharmanext)
 * [21 hours, 34 minutes ago](https://wordpress.org/support/topic/avifs-file-permissions-bug/#post-18916626)
 *     ```wp-block-code
       add_action('add_attachment', 'fix_meow_all_avif_permissions', 20);add_filter('wp_generate_attachment_metadata', 'fix_meow_all_avif_permissions_meta', 20, 2);function fix_meow_all_avif_permissions_meta($metadata, $attachment_id) {    $upload_dir = wp_upload_dir();    $base_dir = $upload_dir['basedir'] . '/';    if (!empty($metadata['file'])) {        $dir_path = dirname($base_dir . $metadata['file']) . '/';        // Check AVIF for the original file        $orig_avif = $base_dir . $metadata['file'] . '.avif';        if (file_exists($orig_avif)) {            @chmod($orig_avif, 0644);        }        // Check AVIF for the created thumbs        if (!empty($metadata['sizes'])) {            foreach ($metadata['sizes'] as $size_info) {                if (!empty($size_info['file'])) {                    $thumb_path = $dir_path . $size_info['file'];                    // Standard AVIF                    if (file_exists($thumb_path . '.avif')) {                        @chmod($thumb_path . '.avif', 0644);                    }                    // Retina AVIF                    $ext = pathinfo($size_info['file'], PATHINFO_EXTENSION);                    $filename = pathinfo($size_info['file'], PATHINFO_FILENAME);                    $retina_avif = $dir_path . $filename . '@2x.' . $ext . '.avif';                    if (file_exists($retina_avif)) {                        @chmod($retina_avif, 0644);                    }                }            }        }    }    return $metadata;}function fix_meow_all_avif_permissions($post_id) {    if (wp_attachment_is_image($post_id)) {        $file_path = get_attached_file($post_id);        if ($file_path && file_exists($file_path . '.avif')) {            @chmod($file_path . '.avif', 0644);        }    }}
       ```
   
 * For anyone else who has encountered this issue, here is some code that sets the
   necessary permissions for AVIF files after they are generated.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[ЮKassa для WooCommerce] Изменение стоимости подписки](https://wordpress.org/support/topic/%d0%b8%d0%b7%d0%bc%d0%b5%d0%bd%d0%b5%d0%bd%d0%b8%d0%b5-%d1%81%d1%82%d0%be%d0%b8%d0%bc%d0%be%d1%81%d1%82%d0%b8-%d0%bf%d0%be%d0%b4%d0%bf%d0%b8%d1%81%d0%ba%d0%b8/)
 *  [pharmanext](https://wordpress.org/support/users/pharmanext/)
 * (@pharmanext)
 * [2 days, 8 hours ago](https://wordpress.org/support/topic/%d0%b8%d0%b7%d0%bc%d0%b5%d0%bd%d0%b5%d0%bd%d0%b8%d0%b5-%d1%81%d1%82%d0%be%d0%b8%d0%bc%d0%be%d1%81%d1%82%d0%b8-%d0%bf%d0%be%d0%b4%d0%bf%d0%b8%d1%81%d0%ba%d0%b8/#post-18915259)
 * И вот этот код:
   `add_filter( 'woocommerce_payment_gateway_supports', 'add_yookassa_subscription_amount_changes',
   10, 3 );function add_yookassa_subscription_amount_changes( $supports, $feature,
   $gateway ) { if ( 'yookassa_epl' === $gateway->id && 'subscription_amount_changes'
   === $feature ) { $supports[] = 'subscription_amount_changes'; } return $supports;}
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[ЮKassa для WooCommerce] Изменение стоимости подписки](https://wordpress.org/support/topic/%d0%b8%d0%b7%d0%bc%d0%b5%d0%bd%d0%b5%d0%bd%d0%b8%d0%b5-%d1%81%d1%82%d0%be%d0%b8%d0%bc%d0%be%d1%81%d1%82%d0%b8-%d0%bf%d0%be%d0%b4%d0%bf%d0%b8%d1%81%d0%ba%d0%b8/)
 *  [pharmanext](https://wordpress.org/support/users/pharmanext/)
 * (@pharmanext)
 * [2 days, 20 hours ago](https://wordpress.org/support/topic/%d0%b8%d0%b7%d0%bc%d0%b5%d0%bd%d0%b5%d0%bd%d0%b8%d0%b5-%d1%81%d1%82%d0%be%d0%b8%d0%bc%d0%be%d1%81%d1%82%d0%b8-%d0%bf%d0%be%d0%b4%d0%bf%d0%b8%d1%81%d0%ba%d0%b8/#post-18914397)
 * Поддерживаю. Интегрированная в плагин возможность изменения стоимости подписки
   для существующих подписчиков действительно насущна и необходима.
 * Мониторинг ценообразования подписных систем крупных сайтов показал, что их владельцы
   периодически повышают цены, и это затрагивает в том числе действующих подписчиков:
   и это уже их право и выбор, продолжать подписку по новой цене или отказываться
   от нее до момента следующего автоплатежа.
 * В любом случае встроенная в ЮKassa поддержка корректировки цены подписки нужна,
   поскольку далеко не каждый сможет реализовать эту функцию вручную.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Post Grid Gutenberg Blocks for News, Magazines, Blog Websites - PostX] Compatibility with consent banner plugin](https://wordpress.org/support/topic/compatibility-with-consent-banner-plugin/)
 *  Thread Starter [pharmanext](https://wordpress.org/support/users/pharmanext/)
 * (@pharmanext)
 * [2 months, 1 week ago](https://wordpress.org/support/topic/compatibility-with-consent-banner-plugin/#post-18849665)
 * Thanx. You’re right.
 * The problem was on the side of the **Beautiful Cookie Consent Banner** plugin:
   incorrect PHP code caused a fatal error: see [here](https://wordpress.org/support/topic/compatibility-with-postx/#post-18849663).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Beautiful Cookie Consent Banner] Compatibility with PostX](https://wordpress.org/support/topic/compatibility-with-postx/)
 *  Thread Starter [pharmanext](https://wordpress.org/support/users/pharmanext/)
 * (@pharmanext)
 * [2 months, 1 week ago](https://wordpress.org/support/topic/compatibility-with-postx/#post-18849663)
 * The issue was in /beautiful-and-responsive-cookie-consent/class/class-nsc_bar_input_validation.
   php:
 * [debug.log]
 * PHP Fatal error:  Cannot redeclare escape_recursive() (previously declared in/
   beautiful-and-responsive-cookie-consent/class/class-nsc_bar_input_validation.
   php:414) in /beautiful-and-responsive-cookie-consent/class/class-nsc_bar_input_validation.
   php on line 414
 * Cause:
 * The error occurs because the escape_recursive() function is defined **inside**
   the escape_json_content() method. In PHP, nested functions are **global** – they
   are declared in the global scope the first time the method runs. If the method
   is called again, PHP attempts to redeclare the same function, triggering a fatal
   error.
 * Original Code:
 *     ```wp-block-code
          public function escape_json_content(string $json_string)    {        $decoded_json = json_decode($json_string, true);        if (json_last_error() !== JSON_ERROR_NONE) {            return false;        }        function escape_recursive($data, $allowedHtml)        {            if (is_array($data)) {                foreach ($data as $key => $value) {                    if ($key === "message" && is_string($value) === true) {                        $data[$key] = wp_kses($value, $allowedHtml);                        continue;                    }                    $data[$key] = escape_recursive($value, $allowedHtml);                }            } elseif (is_string($data)) {                $data = stripslashes(esc_js($data));            }            return $data;        }        $escaped_json = escape_recursive($decoded_json, $this->allowedHtml);        return json_encode($escaped_json, JSON_UNESCAPED_UNICODE);    }
       ```
   
 * New Code:
 *     ```wp-block-code
       private function escape_recursive($data, $allowedHtml){    if (is_array($data)) {        foreach ($data as $key => $value) {            if ($key === "message" && is_string($value) === true) {                $data[$key] = wp_kses($value, $allowedHtml);                continue;            }            $data[$key] = $this->escape_recursive($value, $allowedHtml);        }    } elseif (is_string($data)) {        $data = stripslashes(esc_js($data));    }    return $data;}public function escape_json_content(string $json_string){    $decoded_json = json_decode($json_string, true);    if (json_last_error() !== JSON_ERROR_NONE) {        return false;    }    $escaped_json = $this->escape_recursive($decoded_json, $this->allowedHtml);    return json_encode($escaped_json, JSON_UNESCAPED_UNICODE);}
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Beautiful Cookie Consent Banner] Compatibility with PostX](https://wordpress.org/support/topic/compatibility-with-postx/)
 *  Thread Starter [pharmanext](https://wordpress.org/support/users/pharmanext/)
 * (@pharmanext)
 * [5 months, 3 weeks ago](https://wordpress.org/support/topic/compatibility-with-postx/#post-18740111)
 * Dear Nikel,
 * I apologize in advance for my potentially harsh tone, but this whole situation
   seems absurd and ridiculous.
 * Firstly, your initial response took a full nine days. During that time, I managed
   to write my own plugin for managing cookies. It was a very interesting journey.
   But what else could I do when you remained silent for so long?
 * Second, tell me, how does it help me that you said the issue was with Google 
   Fonts? Thank you, of course, for this invaluable information, but what next?
 * Third, excuse me, are we talking about the premium version of the plugin? No!
 * We are talking about the plugin that is available for free in the WordPress repository.
   So how can I confirm that the issue has been resolved if you have eliminated 
   it, as you claim, only in the premium version?
 * Fourth, the issue has not been resolved.
 * P.S. In conclusion, in all fairness, I must say that you have an excellent, awesome
   plugin!
 * I really like it. It has many wonderful features and capabilities. You are very
   talented and smart! Thank you for your work. I wish you success and prosperity
   for your business!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Post Grid Gutenberg Blocks for News, Magazines, Blog Websites - PostX] Global custom font](https://wordpress.org/support/topic/global-custom-font/)
 *  Thread Starter [pharmanext](https://wordpress.org/support/users/pharmanext/)
 * (@pharmanext)
 * [6 months ago](https://wordpress.org/support/topic/global-custom-font/#post-18727467)
 * Dear developers, I am writing to clarify the status of my issue. Please provide
   a clear answer: has this bug been fixed? It has been FIVE months since I reported
   it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Post Grid Gutenberg Blocks for News, Magazines, Blog Websites - PostX] Pagination and autoscroll](https://wordpress.org/support/topic/pagination-and-autoscroll/)
 *  Thread Starter [pharmanext](https://wordpress.org/support/users/pharmanext/)
 * (@pharmanext)
 * [6 months ago](https://wordpress.org/support/topic/pagination-and-autoscroll/#post-18727464)
 * Dear developers, I would like to express my appreciation for your excellent product.
   However, its long-term support leaves much to be desired.
 * Unfortunately, even after FIVE months, the annoying and frustrating behavior 
   of PostX, which was mentioned at the beginning of this thread, has still not 
   been fixed. What is this? Forgetfulness, misunderstanding, lack of desire to 
   develop the product, or simply a formal approach to user support, where the priority
   is to respond quickly to tickets by making encouraging promises and assurances
   that in fact remain just words, not backed up by further action?
 * If you cannot or do not want to properly fix bugs and/or improve the user experience,
   don’t make false promises. Just respond that it is entirely your decision what
   to fix in the plugin, and that the opinion of its users remains just that—an 
   opinion.
 * To better understand the essence of the issue, just [look](https://getwid.getmotopress.com/blocks/posts-grid-list/)
   at how this is implemented by competitors, who, I hasten to assure you, seriously
   lag behind in all the rich features offered by PostX. Nevertheless, in their 
   correct representation of the user experience, pagination initiates autoscroll
   to the top of the list.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Post Grid Gutenberg Blocks for News, Magazines, Blog Websites - PostX] Compatibility with consent banner plugin](https://wordpress.org/support/topic/compatibility-with-consent-banner-plugin/)
 *  Thread Starter [pharmanext](https://wordpress.org/support/users/pharmanext/)
 * (@pharmanext)
 * [6 months ago](https://wordpress.org/support/topic/compatibility-with-consent-banner-plugin/#post-18726719)
 * To avoid any ambiguity, I hasten to inform you that the incompatibility is observed
   in its pure form, i.e., only the Twenty-Twenty Five (or Twenty-Twenty Four) theme
   is active, and only these two plugins.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Beautiful Cookie Consent Banner] Compatibility with PostX](https://wordpress.org/support/topic/compatibility-with-postx/)
 *  Thread Starter [pharmanext](https://wordpress.org/support/users/pharmanext/)
 * (@pharmanext)
 * [6 months ago](https://wordpress.org/support/topic/compatibility-with-postx/#post-18726718)
 * To avoid any ambiguity, I hasten to inform you that the incompatibility is observed
   in its pure form, i.e., only the Twenty-Twenty Five (or Twenty-Twenty Four) theme
   is active, and only these two plugins.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[ЮKassa для WooCommerce] Suspension](https://wordpress.org/support/topic/suspension-2/)
 *  Thread Starter [pharmanext](https://wordpress.org/support/users/pharmanext/)
 * (@pharmanext)
 * [7 months ago](https://wordpress.org/support/topic/suspension-2/#post-18687862)
 * Благодарю вас за разъяснение логики работы ЮKassa.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Post Grid Gutenberg Blocks for News, Magazines, Blog Websites - PostX] Global custom font](https://wordpress.org/support/topic/global-custom-font/)
 *  Thread Starter [pharmanext](https://wordpress.org/support/users/pharmanext/)
 * (@pharmanext)
 * [11 months, 1 week ago](https://wordpress.org/support/topic/global-custom-font/#post-18512942)
 * Owadud, thanks for the answer. Best of luck with your development efforts—may
   your business thrive!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Post Grid Gutenberg Blocks for News, Magazines, Blog Websites - PostX] Pagination and autoscroll](https://wordpress.org/support/topic/pagination-and-autoscroll/)
 *  Thread Starter [pharmanext](https://wordpress.org/support/users/pharmanext/)
 * (@pharmanext)
 * [11 months, 1 week ago](https://wordpress.org/support/topic/pagination-and-autoscroll/#post-18512430)
 * A huge thanks, Mahmud—your care for users truly shines!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AnsPress - Question and answer] AnsPress Uninstall Issue](https://wordpress.org/support/topic/anspress-uninstall-issue/)
 *  Thread Starter [pharmanext](https://wordpress.org/support/users/pharmanext/)
 * (@pharmanext)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/anspress-uninstall-issue/#post-17869890)
 * Dear Rahul,
 * Thank you for your reply. I appreciate your understanding of the problem and 
   willingness to assist with a solution. I believe a list of tables and meta keys
   related to AnsPress would be beneficial. I would then manually remove them from
   the database.
 * Thank you for your detailed explanation of the point regarding delayed responses.
   I understand your situation and the challenges of doing everything yourself. 
   In the fast-paced world of business, there is often not enough time to complete
   even the simplest tasks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AnsPress - Question and answer] AnsPress Uninstall Issue](https://wordpress.org/support/topic/anspress-uninstall-issue/)
 *  Thread Starter [pharmanext](https://wordpress.org/support/users/pharmanext/)
 * (@pharmanext)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/anspress-uninstall-issue/#post-17864233)
 * It has been 10 days, and I’m still awaiting a reply from the developers. This
   further highlights their apparent lack of consideration for users’ requests and
   their responsiveness. In general, this suggests that the level of customer support
   at AnsPress may need to be improved. It seems plausible that users who have paid
   for this plugin may also be experiencing similar challenges.

Viewing 15 replies - 1 through 15 (of 57 total)

1 [2](https://wordpress.org/support/users/pharmanext/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/pharmanext/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/pharmanext/replies/page/4/?output_format=md)
[→](https://wordpress.org/support/users/pharmanext/replies/page/2/?output_format=md)