Roots Discourse

Error in TASK letsenPHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?crypt : Generate the certificates

Hi evetyone!

I’m updating my site (by updating trellis and deploying it in a new droplet in Digital Ocean)
I’'ve almost finished but when I try to deploy to new droplet with ./bin/deploy.sh production juanmaguitar.com I get this…

TASK [deploy : WordPress Installed?] *********************************************************************************************
System info:
  Ansible 2.7.0; Darwin
  Trellis Head
---------------------------------------------------
PHP Warning:  "continue" targeting switch is equivalent to "break". Did you
mean to use "continue 2"? in
/srv/www/juanmaguitar.com/releases/20190811144735/web/wp/wp-includes/pomo
/plural-forms.php on line 210
Warning: "continue" targeting switch is equivalent to "break". Did you mean
to use "continue 2"? in
/srv/www/juanmaguitar.com/releases/20190811144735/web/wp/wp-includes/pomo
/plural-forms.php on line 210
fatal: [juanmaguitar.com]: FAILED! => {"changed": false, "cmd": ["wp", "core", "is-installed", "--skip-plugins", "--skip-themes", "--require=/srv/www/juanmaguitar.com/shared/tmp_multisite_constants.php"], "delta": "0:00:00.459368", "end": "2019-08-11 14:47:58.361209", "failed_when_result": true, "rc": 0, "start": "2019-08-11 14:47:57.901841", "stderr": "PHP Warning:  \"continue\" targeting switch is equivalent to \"break\". Did you mean to use \"continue 2\"? in /srv/www/juanmaguitar.com/releases/20190811144735/web/wp/wp-includes/pomo/plural-forms.php on line 210\nWarning: \"continue\" targeting switch is equivalent to \"break\". Did you mean to use \"continue 2\"? in /srv/www/juanmaguitar.com/releases/20190811144735/web/wp/wp-includes/pomo/plural-forms.php on line 210", "stderr_lines": ["PHP Warning:  \"continue\" targeting switch is equivalent to \"break\". Did you mean to use \"continue 2\"? in /srv/www/juanmaguitar.com/releases/20190811144735/web/wp/wp-includes/pomo/plural-forms.php on line 210", "Warning: \"continue\" targeting switch is equivalent to \"break\". Did you mean to use \"continue 2\"? in /srv/www/juanmaguitar.com/releases/20190811144735/web/wp/wp-includes/pomo/plural-forms.php on line 210"], "stdout": "", "stdout_lines": []}
	to retry, use: --limit @/Users/juanma/PROJECTS/2019/WORDPRESS/juanmaguitar.com-2019/trellis/deploy.retry

It seems to be an issue with Wordpress Core and is supossed to be a warning. Don’t know how to fix this or why is this even stopping my deploy?

Any ideas?

Thanks!

  • JuanMa

It’s an older WP issue with PHP 7.3 which has been fixed: https://core.trac.wordpress.org/changeset/43653

You’d have to update your WP version to fix it.

Thanks swalkinshaw

Yes, I was still pointing to my old repo. Had to update the repo info at trellis/group_vars/production/wordpress_sites.yml

It works now. Thanks!

  • JuanMa

This topic was automatically closed after 42 days. New replies are no longer allowed.