简体   繁体   English

安装magento时出现错误:解析错误

[英]While installing magento I am getting an error : Parse error

Parse error: syntax error, unexpected '.' 解析错误:语法错误,意外的“。” in G:\\wamp\\www\\Magento\\vendor\\magento\\framework\\ObjectManager\\Factory\\AbstractFactory.php on line 93 在第93行的G:\\ wamp \\ www \\ Magento \\ vendor \\ magento \\ framework \\ ObjectManager \\ Factory \\ AbstractFactory.php中

My php version is 5.5.12 and i want to update this to 5.6. 我的PHP版本是5.5.12,我想将其更新为5.6。 so, that this error will go away. 因此,该错误将消失。 Does anybody have any idea about this updation process and how to do it ? 是否有人对此更新过程以及如何执行有任何想法?

Well if you are using WAMPServer2.5, I would suggest upgrading to WAMPServer3.0.3. 好吧,如果您使用的是WAMPServer2.5,我建议您升级到WAMPServer3.0.3。

The upgrade will upgrade WAMPServer2.5 to WAMPServer3 directly, without loss of anything you are using in WAMPServer2.5 升级将直接将WAMPServer2.5升级到WAMPServer3,而不会丢失您在WAMPServer2.5中使用的任何内容。

Once you get to WAMPServer3.0.3 you can then install the update to WAMPServer3.0.8 and be totally up to date, without loosing any data. 一旦进入WAMPServer3.0.3,您就可以将更新安装到WAMPServer3.0.8,并且完全是最新的,而不会丢失任何数据。

WAMPServer3.0.3 32bit Download WAMPServer3.0.3 32bit下载

WAMPServer3.0.3 64bit Download WAMPServer3.0.3 64bit下载

Then upgrade WAMPServer to its latest version 3.0.9 at time of writing. 然后在撰写本文时将WAMPServer升级到最新版本3.0.9。 WAMPServer3.0.9 WAMPServer3.0.9

Note: If you are using 32bit then use the 32bit upgrade, and if you are using 64bit use the 64bit upgrade. 注意:如果使用32位,则使用32位升级,如果使用64位,请使用64位升级。 Dont try and upgrade from 32bi to 64bit. 不要尝试从32bi升级到64bit。

Once that is installed upgrade to WAMPServer3.0.8 directly using WAMPServer3.0.8 upgrade 安装完成后,直接使用WAMPServer3.0.8升级到WAMPServer3.0.8。

You should still have all your old versions of MySQL/PHP/Apache but now there will be newer versions available for you to switch to as well, including a version of PHP5.6 and PHP7.0 您仍然应该拥有所有旧版本的MySQL / PHP / Apache,但现在也可以使用较新的版本,包括PHP5.6和PHP7.0。

Always make sure you have a current backup of all your code and databases before doing any upgrade! 进行任何升级之前,请始终确保您已对所有代码和数据库进行了最新备份! JUST IN CASE !! 以防万一 !!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM