tylerdiaz / Crysandrea

Open Source avatar community engine.
Other
17 stars 11 forks source link

/auth/signup #5

Closed KasheenaTTV closed 10 years ago

KasheenaTTV commented 10 years ago

Hey Tyler. First of all i want to think you for making Crysandrea's source available to be used. I hope to continue your project.. =)

I finally installed the source for Crysandrea. However, while attempting to make an account I recieve a blank page and I get this message: "No input file specified."

tylerdiaz commented 10 years ago

Try modifying your .htaccess file to include the following:

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
KasheenaTTV commented 10 years ago

This is what I have for my .htaccess

``` RewriteEngine On RewriteBase / ### Canonicalize codeigniter URLs # If your default controller is something other than # "welcome" you should probably change this RewriteRule ^(welcome(/index)?|index(\.php)?)/?$ / [L,R=301] RewriteRule ^(.*)/index/?$ $1 [L,R=301] # Removes trailing slashes (prevents SEO duplicate content issues) RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)/$ $1 [L,R=301] # Enforce www # If you have subdomains, you can add them to # the list using the "|" (OR) regex operator #RewriteCond %{HTTP_HOST} !^(www|subdomain) [NC] #RewriteRule ^(.*)$ http://174.34.170.110/$1 [L,R=301] ### # Removes access to the system folder by users. # Additionally this will allow you to create a System.php controller, # previously this would not have been possible. # 'system' can be replaced if you have renamed your system folder. RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /index.php/$1 [L] # Checks to see if the user is attempting to access a valid file, # such as an image or css document, if this isn't true it sends the # request to index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] ```

<IfModule !mod_rewrite.c>

# Without mod_rewrite, route 404's to the front controller
ErrorDocument 404 /index.php

tylerdiaz commented 10 years ago

Replace it all with the code included in my previous comment.

KasheenaTTV commented 10 years ago

That worked! Now It's not letting me sign in. I try signing up again and it says my email is already taken, so signing up doesn't seem to be an issue atm.

tylerdiaz commented 10 years ago

Make sure to modify the config.php cookie domain to match the domain you're installing it on so it's able to register the sign in cookies.

KasheenaTTV commented 10 years ago

Awesome! Logging in successful. Now for the forgot password feature:

Recover password error:

A PHP Error was encountered

Severity: Warning

Message: fsockopen() [function.fsockopen]: unable to connect to ssl://smtp.googlemail.com:465 (Connection timed out)

Filename: libraries/Email.php

Line Number: 1689

A PHP Error was encountered

Severity: Warning

Message: fwrite() expects parameter 1 to be resource, boolean given

Filename: libraries/Email.php

Line Number: 1846

A PHP Error was encountered

Severity: Warning

Message: fgets() expects parameter 1 to be resource, boolean given

Filename: libraries/Email.php

Line Number: 1869

A PHP Error was encountered

Severity: Warning

Message: fwrite() expects parameter 1 to be resource, boolean given

Filename: libraries/Email.php

Line Number: 1846

A PHP Error was encountered

Severity: Warning

Message: fgets() expects parameter 1 to be resource, boolean given

Filename: libraries/Email.php

Line Number: 1869

A PHP Error was encountered

Severity: Warning

Message: fwrite() expects parameter 1 to be resource, boolean given

Filename: libraries/Email.php

Line Number: 1846

A PHP Error was encountered

Severity: Warning

Message: fgets() expects parameter 1 to be resource, boolean given

Filename: libraries/Email.php

Line Number: 1869

A PHP Error was encountered

Severity: Warning

Message: fwrite() expects parameter 1 to be resource, boolean given

Filename: libraries/Email.php

Line Number: 1846

A PHP Error was encountered

Severity: Warning

Message: fgets() expects parameter 1 to be resource, boolean given

Filename: libraries/Email.php

Line Number: 1869

A PHP Error was encountered

Severity: Warning

Message: fwrite() expects parameter 1 to be resource, boolean given

Filename: libraries/Email.php

Line Number: 1846

A PHP Error was encountered

Severity: Warning

Message: fwrite() expects parameter 1 to be resource, boolean given

Filename: libraries/Email.php

Line Number: 1846

A PHP Error was encountered

Severity: Warning

Message: fgets() expects parameter 1 to be resource, boolean given

Filename: libraries/Email.php

Line Number: 1869

tylerdiaz commented 10 years ago

I suspect the first error is cascading the others. Did you fill out the password on the SMTP configuration https://github.com/Pixeltweak/Crysandrea/blob/master/application/controllers/auth.php#L254

KasheenaTTV commented 10 years ago

Fixed, recover password email sent/received successfully!