Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `cells' for #<Array:0x007f8ba99466f0> #59

Closed
ethicalhack3r opened this issue Jul 2, 2015 · 3 comments
Closed

undefined method `cells' for #<Array:0x007f8ba99466f0> #59

ethicalhack3r opened this issue Jul 2, 2015 · 3 comments
Labels

Comments

@ethicalhack3r
Copy link

Hi,

We're getting the undefined method cells' for #Array:0x007f8ba99466f0` error in WPScan with terminal-table 1.5.2.

Full stack trace:

[!] undefined method `cells' for #<Array:0x007f902bd9c0e8>
[!] Trace:
[!] /Users/ryan/Tools/wpscan/lib/common/hacks.rb:69:in `render'
/Users/ryan/Tools/wpscan/lib/common/collections/wp_users/output.rb:25:in `output'
./wpscan.rb:364:in `main'
./wpscan.rb:443:in `<main>'

To reproduce:
/wpscan.rb -u www.somewordpresssite.com -w password-list.txt

Being tracked here by our users - wpscanteam/wpscan#841

@ethicalhack3r
Copy link
Author

Line 69 of /Users/ryan/Tools/wpscan/lib/common/hacks.rb is unless @headings.cells.empty?

@erwanlr
Copy link
Contributor

erwanlr commented Jul 2, 2015

This is not a bug in the the gem, but as the code has been updated some days ago:

unless @headings.cells.empty?

to

@headings.each do |row|
    unless row.cells.empty?

The monkey patch should also have been updated on our side (I should have noticed that when rebasing the #32)

I think we will keep the v1.4.5 until the #32 is merged :)

@nateberkopec
Copy link
Collaborator

Yeah, the problem is in your monkey patch, not our code. #32 is merged, hopefully you can remove your monkey patch completely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants