• I am on wp671. I installed the wc maintenance mode plug-in. I am getting the following fatal error upon trying to activate.

    Parse error: syntax error, unexpected ‘)’ in /home4/mbcadmin/myqbtech.com/pepsi_wp/wp-content/plugins/maintenance-mode-for-woocommerce/includes/class-nf-maintenance-i18n.php on line 18

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • When activating this plugin I get the same error message as described above:

    wp-content/plugins/maintenance-mode-for-woocommerce/includes/class-nf-maintenance-i18n.php on line 18

    I’m on WordPress version 5.7.2 and WooCommerce version 4.9.0

    –>

    fixed by removing the comma after “$path,”

    CHANGE

    // Load local translations
              	load_plugin_textdomain(
            			'maintenance-mode-for-woocommerce',
            			false,
            			$path,
                );

    TO

    // Load local translations
              	load_plugin_textdomain(
            			'maintenance-mode-for-woocommerce',
            			false,
            			$path
                );
    • This reply was modified 3 years, 10 months ago by StevenWP.
    • This reply was modified 3 years, 10 months ago by StevenWP.
    • This reply was modified 3 years, 10 months ago by StevenWP.
Viewing 1 replies (of 1 total)
  • The topic ‘woocommerce maintenance wont activate’ is closed to new replies.