Support » Plugin: YITH WooCommerce Affiliates » Empty `wpml-config.xml` produces PHP Warning of simplexml_load_file

  • wingerman

    (@wingerman)


    Hi!
    Firstly thank you for your time, while developing this great plugin!

    I’m using current version (1.6.1) of your plugin in conjunction with Polylang PRO plugin (2.5.4). Your empty wpml-config.xml file in the root of the plugin causes/produces PHP Warnings (on page load, even in the administration).

    When empty file wpml-config.xml is deleted from the root of your plugin folder – All warnings dissappears.

    So, that file should be deleted when it’s actually not in use.
    Or, at least, make that file XML well-formed/compatible – to be simplexml_load_file function/module able to successfully load the file.

    Regards,
    Winger

    Warning messages are supplied bellow:
    `
    Warning: simplexml_load_file(): /var/www/project_directory/wp-content/plugins/yith-woocommerce-affiliates/wpml-config.xml:1: parser error : Document is empty in /var/www/project_directory/wp-content/plugins/polylang-pro/modules/wpml/wpml-config.php on line 53

    Warning: simplexml_load_file(): in /var/www/project_directory/wp-content/plugins/polylang-pro/modules/wpml/wpml-config.php on line 53

    Warning: simplexml_load_file(): ^ in /var/www/project_directory/wp-content/plugins/polylang-pro/modules/wpml/wpml-config.php on line 53
    `

Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi there,
    hope you are doing well! 🙂

    The empty WPML config file will be removed in the next plugin update to avoid this issue. We think that it will be available during the next week.

    Many thanks for letting us know and have a nice day!

Viewing 1 replies (of 1 total)
  • The topic ‘Empty `wpml-config.xml` produces PHP Warning of simplexml_load_file’ is closed to new replies.