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

Not able to use #1

Open
palomamtnez opened this issue Mar 8, 2021 · 1 comment
Open

Not able to use #1

palomamtnez opened this issue Mar 8, 2021 · 1 comment

Comments

@palomamtnez
Copy link

Hi!
First of all, thanks for creating this repo :)
I tried to work with it but I had some issues which made me impossible to use it.

I installed as explained, through composer.
I was not able to run dev/build as it was already in action and I was locked; I mean, I assume it was already blocking my IP when I tried to run the command to create the necessary tables (dev/build), as it was looking for the IP in the DB, but as it couldn't find it, then it doesn't allow me to run the dev/build (I don't know if this explains, but is like a cycle)

This was the error:

[Emergency] Uncaught SilverStripe\ORM\Connect\DatabaseException: Couldn't run query: SELECT DISTINCT "IPLists_IPList"."ClassName", "IPLists_IPList"."LastEdited", "IPLists_IPList"."Created", "IPLists_IPList"."Title", "IPLists_IPList"."Description", "IPLists_IPList"."Enabled", "IPLists_IPList"."ListType", "IPLists_IPList"."DenyMethod", "IPLists_IPList"."Priority", "IPLists_IPList"."ProtectedRoutes", "IPLists_IPList"."ID", CASE WHEN "IPLists_IPList"."ClassName" IS NOT NULL THEN "IPLists_IPList"."ClassName" ELSE 'Madmatt\\IPLists\\Model\\IPList' END AS "RecordClassName" FROM "IPLists_IPList" WHERE ("IPLists_IPList"."Enabled" = ?) ORDER BY "IPLists_IPList"."Priority" DESC, "IPLists_IPList"."ID" ASC Table 'default.IPLists_IPList' doesn't exist

And it cannot create it as I am "not allowed" to access the site.

As consequence, none of the pages is accessible and throw the same error.

Then I tried to add my IP to the yml config but didn't work either (same error).
Also, I was not sure where that config had to be, I added it to app/_config/mysite.yml

Any help in trying to make it work would be appreciated!
Thanks

@davejtoews
Copy link

So I think this build error is the reason the docs recommend doing a dev/build via the command line. I hit this same error in the browser, but was able to successfully build via the CLI.

Nevertheless I had other issues after getting this to build so I still couldn't use the module.

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

No branches or pull requests

2 participants