• thecrypto

    (@thecrypto)


    Invoice Gateway For Woocommerce v1.1.3

    In versions of PHP 8.2 and above dynamic properties are deprecated unless explicitly allowed via the AllowDynamicProperties, currently getting many deprecation errors in the debug log and it is filling it up real fast.

    PHP Deprecated: ?Creation of dynamic property IGFW\Helpers\Plugin_Constants::$_MAIN_PLUGIN_FILE_PATH is deprecated in /var/www/html/wp-content/plugins/invoice-gateway-for-woocommerce/Helpers/Plugin_Constants.php on line 53
    PHP Deprecated: ?Creation of dynamic property IGFW\Models\Gateways\IGFW_Invoice_Gateway::$instructions is deprecated in /var/www/html/wp-content/plugins/invoice-gateway-for-woocommerce/Models/Gateways/IGFW_Invoice_Gateway.php on line 38
    PHP Deprecated: ?Creation of dynamic property IGFW::$failed_dependencies is deprecated in /var/www/html/wp-content/plugins/invoice-gateway-for-woocommerce/invoice-gateway-for-woocommerce.php on line 158


    This occurs on all properties that are dynamically called within the plugin.

    Subsequently this is generating deprecation errors when preg_replace is called with null as a parameter to $subject.

    PHP Deprecated:  preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/wp-includes/kses.php on line 1805

    Can we please make sure all properties of the classes are defined else allow dynamic properties in all classes?

    Thanks

Viewing 1 replies (of 1 total)
  • Thread Starter thecrypto

    (@thecrypto)

    You will need to enable your debug log in WordPress in order to see these deprecation notices.

    On a large store, this fills up the log file very fast. In a matter of two days, the debug log grew to 138MB purely on these deprecation notices, yikes!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.