• Resolved wojtek1904

    (@wojtek1904)


    Hey, so I have a site with woocommerce and wpcron jobs not wroking properly so I wanted to execute it manually from hosting dashboard. I read that I should just execute wp-cron.php, but I got errors when tried do this.

    This is the error:
    Parse error: syntax error, unexpected ':', expecting '{' in /home/veritas/domains/mydomain.pl/public_html/wp-content/plugins/woocommerce/woocommerce.php on line 56

    The line when error appear:

    function wc_get_container() : \Psr\Container\ContainerInterface {
    	return $GLOBALS['wc_container'];
    }

    I tried to find solution in google, but all I found was to change php version, so I did it – changed to latest php version, but it didnt helped.

    I will appreciate any help ??

    • This topic was modified 4 years, 1 month ago by wojtek1904.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wpcron executed manually give syntax error’ is closed to new replies.