wesleytodd / YeoPress

A Yeoman generator for WordPress
Other
1.08k stars 163 forks source link

MySQL module error #92

Closed jcontonio closed 10 years ago

jcontonio commented 10 years ago

Getting an error here on initial setup

TypeError: Cannot call method 'replace' of undefined at Object.SqlString.escapeId (/usr/local/lib/node_modules/generator-wordpress/node_modules/mysql/lib/protocol/SqlString.js:13:20)

wesleytodd commented 10 years ago

Can you post the options you used and information about your setup, versions and os info?

anthonyholmes commented 10 years ago

Same issue

OSX 10.9.1 & 10.9.2 Node - 0.10.24 npm - 1.3.21 yo - 1.1.2 generator-wordpress@1.4.1

jcontonio commented 10 years ago

npm - 1.3.11 node - 0.10.21 yo - 1.1.2 OS X 10.9.2 mysql - 5.6.13

Tried with custom theme and without custom theme. wordpress in the custom directory

wesleytodd commented 10 years ago

What did you guys enter for the database credentials? I am wondering if it was maybe left blank?

jcontonio commented 10 years ago

on my local machine for dev I just use root and a blank mysql pw.

On Wed, Feb 26, 2014 at 1:00 PM, Wes Todd notifications@github.com wrote:

What did you guys enter for the database credentials? I am wondering if it was maybe left blank?

Reply to this email directly or view it on GitHubhttps://github.com/wesleytodd/YeoPress/issues/92#issuecomment-36175908 .

wesleytodd commented 10 years ago

I am wondering if the empty password is causing the problem. Can you try running it with a password, then just remove the password in your wp-config.php after it completes?

jcontonio commented 10 years ago

Same error without a blank pw

`>> Getting salt keys create wp-config.php

TypeError: Cannot call method 'replace' of undefined at Object.SqlString.escapeId (/usr/local/lib/node_modules/generator-wordpress/node_modules/mysql/lib/protocol/SqlString.js:13:20) at /usr/local/lib/node_modules/generator-wordpress/node_modules/wp-util/lib/database.js:101:55 at null. (/usr/local/lib/node_modules/generator-wordpress/node_modules/wp-util/lib/database.js:89:3) at Handshake.Sequence.end (/usr/local/lib/node_modules/generator-wordpress/node_modules/mysql/lib/protocol/sequences/Sequence.js:78:24) at Handshake.Sequence.OkPacket (/usr/local/lib/node_modules/generator-wordpress/node_modules/mysql/lib/protocol/sequences/Sequence.js:87:8) at Protocol._parsePacket (/usr/local/lib/node_modules/generator-wordpress/node_modules/mysql/lib/protocol/Protocol.js:197:24) at Parser.write (/usr/local/lib/node_modules/generator-wordpress/node_modules/mysql/lib/protocol/Parser.js:62:12) at Protocol.write (/usr/local/lib/node_modules/generator-wordpress/node_module%`

wesleytodd commented 10 years ago

Fixed, update and you should be good.