cancel
Showing results for 
Search instead for 
Did you mean: 

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Morning all.

I uploaded magento to my vps yesterday. but didnt get further. I got stuck with this error message.

 

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/events/public_html/vendor/zendframework/zend-stdlib/src/ArrayObject.php on line 426

 

The site is located on a vps running PHP-versjon: 7.2.7

 

Please help me.

 

Best regards

Christian

 

6 REPLIES 6

Re: Warning: "continue" targeting switch is equivalent to "break". Did you mean

@christian_eriksHi,

 

On which version of Magento you are on? Seems like there is compatibility issue of PHP with Magento. Just make sure you have the compatible version of PHP with your Magento.

 

If you have a localhost setup of Magento then try to keep the same configuration on VPS.

 

Problem solved? Please give 'Kudos' and accept 'Answer as Solution'.

- Tarandeep
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.

Re: Warning: "continue" targeting switch is equivalent to "break". Did you mean

Hi.

How do i check versjon? I downloaded og from magento webside 1 day ago so the latest stable one.

The PHP version should be ok så får se i understand from the requirements.

You wrote localhost. I didnt get further then uploading the files så i havnet got that far to sæd that yet. Have been abne to install wordpress with localhost tho.

Sorry og i an misunderstanding. Im a mewbie here.

Re: Warning: "continue" targeting switch is equivalent to "break". Did you mean

@christian_eriksCan you confirm the PHP version. Seems like you are on 7.3. Assuming you know coding in PHP, put a file in the root directory of your server and have phpinfo() function in it to see on what version of PHP you are. Other way to find the same is from the command line.

 

Definitely you are not having compatible version due to which you are seeing the issue.

 

Problem solved? Please give 'Kudos' and accept 'Answer as Solution'.

- Tarandeep
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.

Re: Warning: "continue" targeting switch is equivalent to "break". Did you mean

Morning.

 

You are correct. I am on php version 7.3.4

What version do i need for it to be supported? Ill ask my host to update for me.

 

Christian

Re: Warning: "continue" targeting switch is equivalent to "break". Did you mean

@christian_eriksHi,

 

Assuming you are installing Magento 2.3 below URL will help you on what all configuration you need.

 

https://devdocs.magento.com/guides/v2.3/install-gde/system-requirements-tech.html

 

 

Problem solved? Please give 'Kudos' and accept 'Answer as Solution'.

- Tarandeep
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.

Re: Warning: "continue" targeting switch is equivalent to "break". Did you mean

I managed to change the php version for the domain in cpanel.

But after trying magento i found out its to heavy and techy to work with for my little webshop.

Thx for the help anyway.