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

installation problems #6

Open
keneso opened this issue Jun 18, 2012 · 3 comments
Open

installation problems #6

keneso opened this issue Jun 18, 2012 · 3 comments

Comments

@keneso
Copy link

keneso commented Jun 18, 2012

Hi,
I tried to follow the install instructions, but perhaps I missed something, as I get various errors; I do see some pages well rendered, but some others do give errors.
I think I got confused at these steps

run ./run_in_order [user] [pass] [db]

I accessed via browser, and didn't work, I manually imported all the sql files with phpmyadmin, and have 24 tables, is that correct?

Insert a row into project_categories (id 1) Insert a user (id 1) Insert a project (id 1). Make sure it's set to is_featured = '1'.

I think I just didn't understand this, hence I didn't do anything ... I guess.

The errors:

on home page

Notice (8): Undefined variable: projectCategories [APP/views/elements/projects/search-item.ctp, line 15]
Warning (2): Invalid argument supplied for foreach() [APP/views/elements/projects/search-item.ctp, line 38]
Warning (2): Invalid argument supplied for foreach() [APP/views/elements/projects/search-item.ctp, line 42]

I can't find the admin backend, I tried crowdfundsiteexample.com/admin and got this error on header

Notice (8): Undefined variable: meta_description [APP/views/elements/meta-tags.ctp, line 2] " /> Notice (8): Undefined variable: meta_keywords [APP/views/elements/meta-tags.ctp, line 3] ">

and this error on the main part of the page

Eggads! You've encountered a problem!
Please go back and try again!
Error Details: Missing Controller.

Last thing, can you add other categories besides scientists?

Thank you.

@scexygy
Copy link

scexygy commented Jun 19, 2012

run ./run_in_order [user] [pass] [db]

I accessed via browser, and didn't work, I manually imported all the sql
files with phpmyadmin, and have 24 tables, is that correct?

Whoops! This needs to be run in the shell, not via the browser. If you
manually inserted them in order, that should have the same effect as
running run_in_order.

Insert a row into project_categories (id 1) Insert a user (id 1) Insert
a project (id 1). Make sure it's set to is_featured = '1'.

I think I just didn't understand this, hence I didn't do anything ... I
guess.

Sorry this wasn't clear!

You need to insert a row into the project_categories table with id = 1.
You need to insert a row into the user table with id = 1.
You need to insert a row into the project table with id = 1 and is_featured
= 1.

You can do all this via PHPMyAdmin if you'd like.

I think this should correct some or most of the errors you're seeing.

Last thing, can you add other categories besides scientists?

I don't think I understand this question. But yes, you can do anything --
it's very easily customizable software!

Thanks!

@keneso
Copy link
Author

keneso commented Jun 19, 2012

Thank you very much for the prompt reply.

I still get this on the home page
Notice (8): Undefined variable: projectCategories [APP/views/elements/projects/search-item.ctp, line 15]

Is it because there aren't any projects yet?

Last thing, can you add other categories besides scientists?
I don't think I understand this question. But yes, you can do anything

I meant different categories in which to post the projects, and I now noticed there is a table for project_categories; so I am puzzled what is the scientist for.

Also is there an admin backend, or is it all supposed to be done thru phpmyadmin, or shell?

I noticed the "donate" points to https, is it possible to disable it?
I do understand the security involved, but if we use paypal which has already a secure environment isn't it ok, or shall we have SSL regardless?

Thanks again.

@scexygy
Copy link

scexygy commented Jun 20, 2012

I still get this on the home page
Notice (8): Undefined variable: projectCategories
[APP/views/elements/projects/search-item.ctp, line 15]

Is it because there aren't any projects yet?

I'm not certain. To investigate you should:

-- look in the routes file to see which controller+action the home page is
pointing at
-- investigate where in that function the projectCategories is being set
and figure out why it's not being set!

Last thing, can you add other categories besides scientists?
I don't think I understand this question. But yes, you can do anything

I meant different categories in which to post the projects, and I now
noticed there is a table for project_categories; so I am puzzled what is
the scientist for.

Currently, I think the architecture supports categories for projects (we
used Wind, Solar, Transporation, etc) as well as different types of users.
Scientists were the type of user that was allowed to post projects, whereas
standard users were "donors" and couldn't post.

Also is there an admin backend, or is it all supposed to be done thru
phpmyadmin, or shell?

There is an admin backend. I believe you'll need to set the "privileges"
flag to 1 in the users table to turn a user into an admin (via shell or via
phpMyAdmin). Once that's done, log in as that user. You should see an
"admin" link.

I noticed the "donate" points to https, is it possible to disable it?

Likely! I see something called "var $ssl_required_actions = array()"
in app_controller.php -- I'll bet that's a good place to start :)

I do understand the security involved, but if we use paypal which has
already a secure environment isn't it ok, or shall we have SSL regardless?

Glad to hear you're interested in integrating PayPal. If you use PayPal's
simple checkout which has the user enter the cc on paypal's site rather
than yours then you should not need an SSL cert. You'll need to refer to
paypals documentation!

-zb

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