cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.3 issue on live server

SOLVED

Re: Magento 2.3 issue on live server

@jean _bertrand 

 

Yes root directory only, Please share error which you are getting.

Manish Mittal
https://www.manishmittal.com/

Re: Magento 2.3 issue on live server

on command : php bin/magento setup:upgrade

I get the error :

 

<br />
<b>Parse error</b>: syntax error, unexpected '{' in <b>/homepages/46/d204221203/htdocs/shop1/bin/magento</b> on line <b>13</b><br />

Re: Magento 2.3 issue on live server

@jean _bertrand 

 

A server can use different PHP versions for the command line and for webserver.

Please ensure you have the proper PHP versions for the command line.

You can do it by executing the php -v command from the Magento 2 root folder.

 

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

Manish Mittal
https://www.manishmittal.com/

Re: Magento 2.3 issue on live server

php 4.4.9

and my php server is 7.3

Re: Magento 2.3 issue on live server

@jean _bertrand 

 

Can you try with php 7.2 once.

Manish Mittal
https://www.manishmittal.com/

Re: Magento 2.3 issue on live server

I tried, but still same redirection to localhost and same error on ssh command.

Re: Magento 2.3 issue on live server

@jean _bertrand 

 

That's the solution I can suggest for now, change url in core_config_data which you already done. Clear cache and run all shared commands. these the solution only and it should also work. If this is not working then compare localhost and production server.

Manish Mittal
https://www.manishmittal.com/

Re: Magento 2.3 issue on live server

ok, will try... do I have to change something in .htaccess too ?

Re: Magento 2.3 issue on live server

@jean _bertrand 

 

No nothing has to change in .htaccess. Did you added any local url? if not then no need to change

Manish Mittal
https://www.manishmittal.com/

Re: Magento 2.3 issue on live server

Please do changes in db table core_config_data to remove version from css:

 

insert into core_config_data (config_id, scope, scope_id, path, value) values (null, 'default', 0, 'dev/static/sign', 0);

and run below query:

php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
Manish Mittal
https://www.manishmittal.com/