在xampp服务器上访问http://localhost/phpmyadmin时出现以下错误
cannot use ff (type *FooFactory) as type FooBuilder in assignment:
*FooFactory does not implement FooBuilder (wrong type for Build method)
have Build() *Foo
want Build() Fooer
所以我在my.ini中添加了“ skip-grant-tables”,现在可以访问了。但是,在xampp服务器中安装Magento2时,出现以下错误:
/**
* Implements hook_theme_HOOK_form_alter() for node add/edit.
*/
function theme_form_node_form_alter(&$form, FormStateInterface $form_state, $form_id) {
if ($form_id == 'node_article_form'){
$form['#theme'] = ['node_article_edit_form'];
}
/**
* Implements hook_theme().
*/
function theme_theme($existing, $type, $theme, $path) {
'node_article_edit_form' => [
'template' => 'node_article_edit_form',
'path' => drupal_get_path('theme', 'themeName') . '/templates/form',
'render element' => 'form',
],
}
除非删除了'skip-grant = tables',否则我将无法安装Magento吗?但是这样做之后,我什至无法访问phpmyadmin。应该怎么做才能解决这个问题?
PS:我已经安装了WInNMP,但在意识到此问题后,我将其卸载了,但它似乎并不能解决问题
答案 0 :(得分:0)
MySQL的用户表似乎有问题
修复它,然后再次创建以前似乎已被删除的root用户,我还从Xampp控制面板的配置中从my.ini中删除了“ skip-grant-tables”。从Xampp控制面板停止并启动Xampp和Mysql服务器