我将在我的本地服务器上安装Magento2,它会给我以下错误通知.
我正在使用XAMPP.当我尝试从php.ini文件启用它时,它会丢失dll的另一个错误:
程序无法启动,因为您的计算机缺少MSVCP110.dll.尝试重新安装该程序以解决此问题.
有帮助吗?
我想在成功安装Magento后安装样本数据.在Magento2中安装Magento之后安装样本数据的过程是什么?
通过composer安装Magento 2.0.2时出现此错误:
Problem 1
- Installation request for magento/product-enterprise-edition 2.0.2 -> satisfiable by magento/product-enterprise-edition[2.0.2].
- magento/product-enterprise-edition 2.0.2 requires ext-gd * -> the requested PHP extension gd is missing from your system.
To enable extensions, verify that they are enabled in those .ini files:
- /etc/php5/cli/php.ini
- /etc/php5/cli/conf.d/05-opcache.ini
- /etc/php5/cli/conf.d/10-pdo.ini
- /etc/php5/cli/conf.d/20-curl.ini
- /etc/php5/cli/conf.d/20-imap.ini
- /etc/php5/cli/conf.d/20-json.ini
- /etc/php5/cli/conf.d/20-mcrypt.ini
- /etc/php5/cli/conf.d/20-pdo_pgsql.ini
- /etc/php5/cli/conf.d/20-pgsql.ini
- /etc/php5/cli/conf.d/20-pspell.ini
- /etc/php5/cli/conf.d/20-readline.ini
You can also run `php --ini` inside terminal to see which files are used by …Run Code Online (Sandbox Code Playgroud) 这是我的环境.请注意,这也是在相关的开发模式和生产模式中设置的.
Dev:
https://ar.dev.loc/
https://en.dev.loc/
Live:
https://ar.site.com/
https://en.site.com/
Run Code Online (Sandbox Code Playgroud)
我正在使用阿拉伯语和英语的多商店设置,一切运行良好,包括构建模块和模板构建.
但是,如果我对任何较少的文件或JS文件进行更改(尽管使用grunt less或grunt watch),我必须在我的开发环境中运行以下命令,一次只能在我的本地计算机上查看它们.
$ rm -rf var/cache var/page_cache var/view_preprocessed pub/static
$ mkdir pub/static
$ bin/magento setup:static-content:deploy
$ bin/magento setup:static-content:deploy ar_SA
$ grunt exec less // sometimes I leave this do this
$ grunt // I swap between these
Run Code Online (Sandbox Code Playgroud)
每次都需要很长时间才能完成此过程.这是令人沮丧的,因为我是快速编码器,喜欢立即在网站上看到CSS和Less而不是等待.
我们团队正在做的快速方法是实际进行更改pub/static,然后我们将这些更改为app/design等等,然后执行上面的过程然后git.
直播服务器几乎一样.Git pull然后维护模式(在ecom网站上疯狂!谁建立M2?然后我们运行上面的命令 - 45分钟的停机时间)
当然,必须有更快的方式让我们的部署,开发和团队更好地工作,并在不停机的情况下更快地查看更改!
即使是Magento 2的官方文档也说明你的LIVE网站需要进入维护和停机模式才能发布内容 - 这对我们来说不是一个选择.CTO不高兴.简直荒谬.
与人们询问有关更快开发相同问题的相关问题:
只有在部署静态内容后才能应用对CSS和JavaScript的更改
所以我想整理所有问题并解决这个问题.
我正在创建一个magento 2主题.我只想知道如何xml layout, static block, cms page在其他.phtml文件中添加.phtml 文件.谢谢.
仅在结帐时和单个产品页面上,我在控制台日志中收到以下错误:
VM35594:1 Uncaught SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse (<anonymous>)
at run (layout.min.js:9)
at app.min.js:1
at main.min.js:2
at Object.execCb (require.min.js:112)
at Module.check (require.min.js:56)
at Module.<anonymous> (require.min.js:72)
at require.min.js:11
at require.min.js:74
at each (require.min.js:3)
Run Code Online (Sandbox Code Playgroud)
我正在使用单页结帐扩展程序,但是当我禁用时,错误仍然显示.我认为它可能与产品页面上的评论有关(因为我将评论移出选项卡),但撤消该更改并未修复产品页面上的错误.
所以我已经让magento 2正常运行,我甚至开始自己的主题,但我已经尝试在安装magento之后安装示例数据.它在终端中返回了"区号未设置:",下面是我的步骤.
bin/magento sampledata:deploy
composer update
Run Code Online (Sandbox Code Playgroud)
哪个回报:
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing magento/module-catalog-sample-data (100.0.3)
Downloading: 100%
- Installing magento/module-bundle-sample-data (100.0.3)
Downloading: 100%
- Installing magento/module-widget-sample-data (100.0.3)
Downloading: 100%
- Installing magento/module-customer-sample-data (100.0.3)
Downloading: 100%
- Installing magento/sample-data-media (100.0.3)
Downloading: 100%
- Installing magento/module-theme-sample-data (100.0.3)
Downloading: 100%
- Installing magento/module-cms-sample-data (100.0.3)
Downloading: 100%
- Installing magento/module-catalog-rule-sample-data (100.0.3)
Downloading: 100%
- Installing magento/module-sales-rule-sample-data (100.0.3)
Downloading: 100%
- Installing magento/module-review-sample-data (100.0.3)
Downloading: 100%
- Installing magento/module-tax-sample-data …Run Code Online (Sandbox Code Playgroud) 我php7/apache2.4/mysql5.6通过这个脚本安装,但事实证明扩展xsl和intl缺失(需要它们运行Magento2).
我正在使用Ubuntu 14.04.
当客户在购物车上添加内容后点击"转到结帐"时,调度事件的名称是什么?我想注册用户启动了分析的结帐流程.具体来说,我需要捕获购物车的内容和其他信息,如总价等.
我已尝试过此列表中与"checkout"或"cart"相关的大多数事件.当用户点击结帐时,似乎都没有调度它们.我能得到的最近的是
controller_action_predispatch_checkout_cart_index
当用户单击"查看和编辑购物车"时调度.
我正在寻找解决这个问题的几种方法
更新:这可能是版本问题,我应该更新到非稳定版2.0.4吗?
我知道这对某人来说应该是显而易见的,但显然不是.作为文件中的状态
在管理员中,转到商店>配置>设计.
但是只有机器人txt编辑,如下面的屏幕截图所示
我在github #4251上追查这个问题
所有设计配置都转移到了内容 - >设计 - >配置
当我到达那里时,我的自定义主题成功显示,但没有按钮可以更改它,如下所示.没有选项可以从默认的lumia主题更改为空白主题.
只有我吗?或者我是盲人,错过了一些非常明显的东西?我的磁力版是2.0.0
magento2 ×10
magento ×5
php ×5
composer-php ×2
magento-2.0 ×2
admin ×1
javascript ×1
json ×1
php-5.6 ×1
syntax-error ×1
themes ×1
ubuntu ×1
ubuntu-14.04 ×1
xampp ×1