Plugin Directory

Changeset 3359815


Ignore:
Timestamp:
09/11/2025 12:10:16 PM (6 months ago)
Author:
netingweb
Message:

Releasing version 20250912 - Fix critical bug for WooCommerce Blocks integration.

Location:
gestpay-for-woocommerce
Files:
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • gestpay-for-woocommerce/tags/20250912/assets/css/blocks/gestpay-blocks.css

    r3359611 r3359815  
    33 *
    44 * @package Gestpay_For_WooCommerce
    5  * @since 20250911
     5 * @since 20250912
    66 */
    77
  • gestpay-for-woocommerce/tags/20250912/assets/css/blocks/gestpay-paypal-blocks.css

    r3359611 r3359815  
    33 *
    44 * @package Gestpay_For_WooCommerce
    5  * @since 20250911
     5 * @since 20250912
    66 */
    77
  • gestpay-for-woocommerce/tags/20250912/assets/js/blocks/wc-payment-method-gestpay-paypal.js

    r3359611 r3359815  
    33 *
    44 * @package Gestpay_For_WooCommerce
    5  * @since 20250911
     5 * @since 20250912
    66 */
    77
  • gestpay-for-woocommerce/tags/20250912/assets/js/blocks/wc-payment-method-gestpay.js

    r3359611 r3359815  
    33 *
    44 * @package Gestpay_For_WooCommerce
    5  * @since 20250911
     5 * @since 20250912
    66 */
    77
  • gestpay-for-woocommerce/tags/20250912/gestpay-for-woocommerce.php

    r3359611 r3359815  
    44 * Plugin URI: http://wordpress.org/plugins/gestpay-for-woocommerce/
    55 * Description: Abilita il sistema di pagamento GestPay by Axerve (Gruppo Banca Sella) in WooCommerce.
    6  * Version: 20250911
     6 * Version: 20250912
    77 * Requires at least: 4.7
    88 * Requires PHP: 7.0
     
    218218            $this->is_tokenization = $this->is_s2s || $this->is_iframe;
    219219
    220             //error_log('Gestpay Config - Account type: ' . $this->account);
    221             //error_log('Gestpay Config - is_s2s: ' . ($this->is_s2s ? 'true' : 'false'));
    222             //error_log('Gestpay Config - is_iframe: ' . ($this->is_iframe ? 'true' : 'false'));
    223             //error_log('Gestpay Config - is_tokenization: ' . ($this->is_tokenization ? 'true' : 'false'));
    224220
    225221            // For token+auth output a payment_box containing the direct payment form
     
    10721068        // Register the main Gestpay payment method
    10731069        if ( ! class_exists( 'Gestpay_Blocks_Integration' ) ) {
    1074             require_once plugin_dir_path( GESTPAY_MAIN_FILE ) . 'inc/class-gestpay-blocks-integration.php';
     1070            $blocks_integration_file = plugin_dir_path( GESTPAY_MAIN_FILE ) . 'inc/class-gestpay-blocks-integration.php';
     1071            if ( file_exists( $blocks_integration_file ) ) {
     1072                require_once $blocks_integration_file;
     1073            } else {
     1074                // Log error and skip registration if file doesn't exist
     1075                if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
     1076                    error_log( 'Gestpay Blocks Integration: File not found - ' . $blocks_integration_file );
     1077                }
     1078                return;
     1079            }
    10751080        }
    10761081       
     
    10851090        // Register the PayPal payment method
    10861091        if ( ! class_exists( 'Gestpay_PayPal_Blocks_Integration' ) ) {
    1087             require_once plugin_dir_path( GESTPAY_MAIN_FILE ) . 'inc/class-gestpay-paypal-blocks-integration.php';
     1092            $paypal_blocks_integration_file = plugin_dir_path( GESTPAY_MAIN_FILE ) . 'inc/class-gestpay-paypal-blocks-integration.php';
     1093            if ( file_exists( $paypal_blocks_integration_file ) ) {
     1094                require_once $paypal_blocks_integration_file;
     1095            } else {
     1096                // Log error and skip registration if file doesn't exist
     1097                if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
     1098                    error_log( 'Gestpay PayPal Blocks Integration: File not found - ' . $paypal_blocks_integration_file );
     1099                }
     1100                return;
     1101            }
    10881102        }
    10891103       
     
    11221136            plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/css/blocks/gestpay-blocks.css',
    11231137            array(),
    1124             '20250911'
     1138            '20250603'
    11251139        );
    11261140    }
     
    11331147            plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/css/blocks/gestpay-paypal-blocks.css',
    11341148            array(),
    1135             '20250911'
     1149            '20250603'
    11361150        );
    11371151    }
  • gestpay-for-woocommerce/tags/20250912/inc/class-gestpay-blocks-integration.php

    r3359611 r3359815  
    44 *
    55 * @package Gestpay_For_WooCommerce
    6  * @since 20250911
     6 * @since 20250912
    77 */
    88
     
    2222 * Gestpay Blocks Integration
    2323 *
    24  * @since 20250911
     24 * @since 20250912
    2525 */
    2626final class Gestpay_Blocks_Integration extends AbstractPaymentMethodType {
     
    7474            plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/js/blocks/wc-payment-method-gestpay.js',
    7575            array( 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-components', 'wp-blocks', 'wp-data', 'wp-hooks', 'wp-i18n' ),
    76             '20250911',
     76            '20250912',
    7777            true
    7878        );
  • gestpay-for-woocommerce/tags/20250912/inc/class-gestpay-paypal-blocks-integration.php

    r3359611 r3359815  
    44 *
    55 * @package Gestpay_For_WooCommerce
    6  * @since 20250911
     6 * @since 20250912
    77 */
    88
     
    2222 * Gestpay PayPal Blocks Integration
    2323 *
    24  * @since 20250911
     24 * @since 20250912
    2525 */
    2626final class Gestpay_PayPal_Blocks_Integration extends AbstractPaymentMethodType {
     
    8080            plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/js/blocks/wc-payment-method-gestpay-paypal.js',
    8181            array( 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-components', 'wp-blocks', 'wp-data', 'wp-hooks', 'wp-i18n' ),
    82             '20250911',
     82            '20250912',
    8383            true
    8484        );
  • gestpay-for-woocommerce/tags/20250912/readme.txt

    r3359611 r3359815  
    55Requires PHP: 7.0
    66Tested up to: 6.8.2
    7 Stable tag: 20250911
     7Stable tag: 20250912
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6969== Changelog ==
    7070
     71= 20250912 =
     72* Fix: Critical bug fix for WooCommerce Blocks integration
     73  - Fixed fatal error when Blocks integration files are missing on server
     74  - Added file existence checks before requiring Blocks integration files
     75  - Implemented graceful fallback to prevent site crashes
     76  - Enhanced error logging for debugging deployment issues
     77* Security: Nothing added
     78* Improvement: Improved deployment reliability and error handling
     79* Checks: Verified compatibility with WordPress 6.8.2, WooCommerce 10.0.4
     80* Note: This hotfix resolves the critical issue that caused site crashes in production
     81
    7182= 20250911 =
    7283* Feature: Added WooCommerce Blocks support for credit card and PayPal payments
  • gestpay-for-woocommerce/trunk/assets/css/blocks/gestpay-blocks.css

    r3359611 r3359815  
    33 *
    44 * @package Gestpay_For_WooCommerce
    5  * @since 20250911
     5 * @since 20250912
    66 */
    77
  • gestpay-for-woocommerce/trunk/assets/css/blocks/gestpay-paypal-blocks.css

    r3359611 r3359815  
    33 *
    44 * @package Gestpay_For_WooCommerce
    5  * @since 20250911
     5 * @since 20250912
    66 */
    77
  • gestpay-for-woocommerce/trunk/assets/js/blocks/wc-payment-method-gestpay-paypal.js

    r3359611 r3359815  
    33 *
    44 * @package Gestpay_For_WooCommerce
    5  * @since 20250911
     5 * @since 20250912
    66 */
    77
  • gestpay-for-woocommerce/trunk/assets/js/blocks/wc-payment-method-gestpay.js

    r3359611 r3359815  
    33 *
    44 * @package Gestpay_For_WooCommerce
    5  * @since 20250911
     5 * @since 20250912
    66 */
    77
  • gestpay-for-woocommerce/trunk/gestpay-for-woocommerce.php

    r3359611 r3359815  
    44 * Plugin URI: http://wordpress.org/plugins/gestpay-for-woocommerce/
    55 * Description: Abilita il sistema di pagamento GestPay by Axerve (Gruppo Banca Sella) in WooCommerce.
    6  * Version: 20250911
     6 * Version: 20250912
    77 * Requires at least: 4.7
    88 * Requires PHP: 7.0
     
    218218            $this->is_tokenization = $this->is_s2s || $this->is_iframe;
    219219
    220             //error_log('Gestpay Config - Account type: ' . $this->account);
    221             //error_log('Gestpay Config - is_s2s: ' . ($this->is_s2s ? 'true' : 'false'));
    222             //error_log('Gestpay Config - is_iframe: ' . ($this->is_iframe ? 'true' : 'false'));
    223             //error_log('Gestpay Config - is_tokenization: ' . ($this->is_tokenization ? 'true' : 'false'));
    224220
    225221            // For token+auth output a payment_box containing the direct payment form
     
    10721068        // Register the main Gestpay payment method
    10731069        if ( ! class_exists( 'Gestpay_Blocks_Integration' ) ) {
    1074             require_once plugin_dir_path( GESTPAY_MAIN_FILE ) . 'inc/class-gestpay-blocks-integration.php';
     1070            $blocks_integration_file = plugin_dir_path( GESTPAY_MAIN_FILE ) . 'inc/class-gestpay-blocks-integration.php';
     1071            if ( file_exists( $blocks_integration_file ) ) {
     1072                require_once $blocks_integration_file;
     1073            } else {
     1074                // Log error and skip registration if file doesn't exist
     1075                if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
     1076                    error_log( 'Gestpay Blocks Integration: File not found - ' . $blocks_integration_file );
     1077                }
     1078                return;
     1079            }
    10751080        }
    10761081       
     
    10851090        // Register the PayPal payment method
    10861091        if ( ! class_exists( 'Gestpay_PayPal_Blocks_Integration' ) ) {
    1087             require_once plugin_dir_path( GESTPAY_MAIN_FILE ) . 'inc/class-gestpay-paypal-blocks-integration.php';
     1092            $paypal_blocks_integration_file = plugin_dir_path( GESTPAY_MAIN_FILE ) . 'inc/class-gestpay-paypal-blocks-integration.php';
     1093            if ( file_exists( $paypal_blocks_integration_file ) ) {
     1094                require_once $paypal_blocks_integration_file;
     1095            } else {
     1096                // Log error and skip registration if file doesn't exist
     1097                if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
     1098                    error_log( 'Gestpay PayPal Blocks Integration: File not found - ' . $paypal_blocks_integration_file );
     1099                }
     1100                return;
     1101            }
    10881102        }
    10891103       
     
    11221136            plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/css/blocks/gestpay-blocks.css',
    11231137            array(),
    1124             '20250911'
     1138            '20250603'
    11251139        );
    11261140    }
     
    11331147            plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/css/blocks/gestpay-paypal-blocks.css',
    11341148            array(),
    1135             '20250911'
     1149            '20250603'
    11361150        );
    11371151    }
  • gestpay-for-woocommerce/trunk/inc/class-gestpay-blocks-integration.php

    r3359611 r3359815  
    44 *
    55 * @package Gestpay_For_WooCommerce
    6  * @since 20250911
     6 * @since 20250912
    77 */
    88
     
    2222 * Gestpay Blocks Integration
    2323 *
    24  * @since 20250911
     24 * @since 20250912
    2525 */
    2626final class Gestpay_Blocks_Integration extends AbstractPaymentMethodType {
     
    7474            plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/js/blocks/wc-payment-method-gestpay.js',
    7575            array( 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-components', 'wp-blocks', 'wp-data', 'wp-hooks', 'wp-i18n' ),
    76             '20250911',
     76            '20250912',
    7777            true
    7878        );
  • gestpay-for-woocommerce/trunk/inc/class-gestpay-paypal-blocks-integration.php

    r3359611 r3359815  
    44 *
    55 * @package Gestpay_For_WooCommerce
    6  * @since 20250911
     6 * @since 20250912
    77 */
    88
     
    2222 * Gestpay PayPal Blocks Integration
    2323 *
    24  * @since 20250911
     24 * @since 20250912
    2525 */
    2626final class Gestpay_PayPal_Blocks_Integration extends AbstractPaymentMethodType {
     
    8080            plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/js/blocks/wc-payment-method-gestpay-paypal.js',
    8181            array( 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-components', 'wp-blocks', 'wp-data', 'wp-hooks', 'wp-i18n' ),
    82             '20250911',
     82            '20250912',
    8383            true
    8484        );
  • gestpay-for-woocommerce/trunk/readme.txt

    r3359611 r3359815  
    55Requires PHP: 7.0
    66Tested up to: 6.8.2
    7 Stable tag: 20250911
     7Stable tag: 20250912
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6969== Changelog ==
    7070
     71= 20250912 =
     72* Fix: Critical bug fix for WooCommerce Blocks integration
     73  - Fixed fatal error when Blocks integration files are missing on server
     74  - Added file existence checks before requiring Blocks integration files
     75  - Implemented graceful fallback to prevent site crashes
     76  - Enhanced error logging for debugging deployment issues
     77* Security: Nothing added
     78* Improvement: Improved deployment reliability and error handling
     79* Checks: Verified compatibility with WordPress 6.8.2, WooCommerce 10.0.4
     80* Note: This hotfix resolves the critical issue that caused site crashes in production
     81
    7182= 20250911 =
    7283* Feature: Added WooCommerce Blocks support for credit card and PayPal payments
Note: See TracChangeset for help on using the changeset viewer.