Error in sign up and in A3M - codeigniter-a3m

I install A3M Codeigniter library and there is and error when i try to sign in or sign up it returns me to the same page without posting posting, when sign up with facebook for example it back to page "Confirm your account information" and still return to this page when i click a submit button called "Complete".
Database data is right
I give a cache folder a 777 permissions
.htaccess and config url is right
I add the facebook and twitter appID and secretAppID
What is the reason of this problem.
Thanks.

I think the .htaccess file must be like this:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]

Related

New customer registration not working in prestashop 1.6

I have recently installed prestashop 1.6.1.5.
In my website catholicfashion.in, customers are not able to register.
No errors are thrown, but after registration, it is simply redirected to login page.
There is no notification in the backend as well.
Please help.
Edit
I am using PHP 7 on Ubuntu
Your link for your registration form is false.
In fact your link point to http://catholicfashion.in/login and must point to http://catholicfashion.in/authentification.
So the controller for registration is not called.
Solution : edit the file in your shop
[your_shop]/themes/[your_theme]/authentication.tpl
And replace the form link to {$link->getPageLink('authentication', true)}

Rails/Devise sign in page no longer needed---how to remove?

I recently put the sign in form onto my homepage instead of having an dedicated sign in page.
Any ideas on how to make it such that a user can no longer access the old sign in page?
Not sure if I can just remove the routes, remove the page, or force a redirect to homepage whenever the user may try to access the old resource.
Using:
Devise 2.0.0
Rails 3.2.13
Old sign in routes shown below:

Devise change URLs

In my application the URLs for sign in, sign up and and sign out were as:
Sign in: /users/sign_in
Sign up: /users/sign_up
Sign out: /users/sign_out
I followed https://github.com/plataformatec/devise/wiki/How-To:-Change-the-default-sign_in-and-sign_out-routes link and changed the URLs as below which is working
Sign in URL should be changed to /login instead of /users/sign_in
Sign up URL should be changed to /register instead of /users/sign_up
Sign out URL should be changed to /logout instead of /users/sign_out
The issue that I am facing is that even if I hit the old URL like /users/sign_in I am able to access the sign in screen which should not be the case.
I had also checked for redirecting the URLs like:
get "/users/sign_in" => redirect("/login")
But it is not working.
Can someone suggest something?
Changed the position of routes and it worked for me.

Devise - redirecting to resend confirmation instruction page after confirmation

I am using Ruby 2.0, Rails 4.0 and Devise 3.0.3
I have changed my app to new domain, so I changed the host in development.rb file as below,
config.action_mailer.default_url_options = { :host => 'xxxxx.com' }
After this,
After signup, when I click confirmation link in mail, my account get confirmed but it takes me to resend cofirmation instruction page.
This is my after confirmation path,
def after_confirmation_path_for(resource_or_scope)
new_order_path
end
I want to go to new_order_path
Where am I making mistake, should I change it in any other place?
Please some one help me in this.
Note: in my old domain it was working fine.
Usually this occurs due to session persistence.
Once you send the invitation, sign out of your website (I assume you have a link "sign out" at the top of your page).
Then view the confirmation mail that was sent and click on the link. This way when the browser opens the page it will use the token in the url of the confirmation link to authenticate the new user.

Rails: Setting Facebook Site URL and App Domains for OmniAuth

Using Rails OmniAuth on Facebook, there is a very subtle issue that I need to fix.
My app is on Heroku and its default domain is myapp.herokuapp.com (suppose). I have my personal domain called hello.com, and whenever a user goes to hello.com, he is "forwarded" to myapp.herokuapp.com.
On Facebook dev center, there are App Domains field and Site URL field. I thought I had to put myapp.herokuapp.com into Site URL, and hello.com into App Domains, but it didn't let me.
"hello.com" must be derived from one of: Site URL, Mobile Site URL, Canvas URL, Secure Canvas URL, Page Tab URL or Secure Page Tab URL.
So I just left App domains blank.
Everything seemed to work fine except for one thing. OmniAuth works fine when I go to my website through myapp.herokuapp.com. But when I go through hello.com, there is one little problem. When I'm not logged in Facebook already, it does not redirect me to the Facebook Log in page. So when I click on the login button, it loads for a few seconds but nothing happens (because it's supposed to redirect me to the facebook website to log in there first but it just doesn't) However, when I'm already logged in Facebook, it works fine.
I'm not sure what the problem is. My guesses:
I'm setting App Domains & Site URL wrong.
I did not set DNS yet. Heroku tells me I have to set the DNS to point to my domain, but I'm not sure what that means as I've never dealt with this. Right now, my personal domain, hello.com is simply forwarding to myapp.herokuapp.com. Is this what's causing the problem?
Thank you for your help!
The problem was that I didn't set DNS, but just forwarded my herokuapp url to my custom domain. Instead of "forwarding," you should set your DNS if you are having a similar problem.

Resources