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

Account Stick to Pending instead of Active (Callback URL) #24

Closed
webxjoin opened this issue Aug 13, 2022 · 38 comments
Closed

Account Stick to Pending instead of Active (Callback URL) #24

webxjoin opened this issue Aug 13, 2022 · 38 comments

Comments

@webxjoin
Copy link

This is the biggest problem since I replaced whmcs with Xera. I have to manually activate account through database.

@greenreader9
Copy link
Contributor

This is going to be because you setup your callback incorrectly.

@mahtab2003
Copy link
Owner

This is going to be because you setup your callback incorrectly.

you are right

@BastelPichi
Copy link
Contributor

Please note that if you run Xera on Free Hosting, callbacks may not work.

@BastelPichi
Copy link
Contributor

If you are using ifastnet hosting you need to change callback URL from https://yourdomain.com/c/mofh to http://yourdomain.com/c/mofh in mofh control panel.

And then it will work.

Have you tested this? This should only work if you not have a SSL cert, which is reccomendet with Xera,

@mahtab2003
Copy link
Owner

even if you have a valid ssl certificate some doesn't support https post request from other sites.

@BastelPichi
Copy link
Contributor

Well with a redirect that shouldnt work but idk

@mahtab2003
Copy link
Owner

yup with redirection that won't work.

@webxjoin
Copy link
Author

webxjoin commented Sep 2, 2022

All the settings are correct but callback not working

@webxjoin webxjoin closed this as completed Sep 2, 2022
@webxjoin webxjoin reopened this Sep 2, 2022
@webxjoin
Copy link
Author

webxjoin commented Sep 2, 2022

callback is not working

@BastelPichi
Copy link
Contributor

callback is not working

Please share your xera url, a screenshot of the callback url configuration i xera and a screenshot from myownfreehost. Also where are you hosting xera on?

@webxjoin
Copy link
Author

webxjoin commented Sep 2, 2022

okay

@webxjoin
Copy link
Author

webxjoin commented Sep 2, 2022

XERA
callback for xera

MOFH Panel
mofh

@BastelPichi
Copy link
Contributor

Please share your Xera URL.

@webxjoin
Copy link
Author

webxjoin commented Sep 3, 2022

why

@BastelPichi
Copy link
Contributor

For example to check wether you got proper SSL, or have an https redirect.

@mahtab2003
Copy link
Owner

For example to check wether you got proper SSL, or have an https redirect.

you are right

@mahtab2003
Copy link
Owner

callback response does not work on https redirection.

@BastelPichi
Copy link
Contributor

ill try some stuff. https works with MOFH callback usually

@webxjoin
Copy link
Author

webxjoin commented Sep 3, 2022

okay how can know if i have https redirect

@BastelPichi
Copy link
Contributor

okay how can know if i have https redirect

Go to http://yoursite.com and see if you get reidrected to https://youtsite.com

@OnionDev1885
Copy link
Contributor

Same issue
Even its on http
image
image

@BastelPichi
Copy link
Contributor

Well basically:

  • If you have an https redirect, you CANNOT use the http version.
  • If you have no SSL cert, you CANNOT use the https version.
  • We believe you have to use the http version.
  • You should exclude the callback from your rewriterules to fix this.

@OnionDev1885
Copy link
Contributor

That is i should remove the force redirect to https?

@BastelPichi
Copy link
Contributor

That is i should remove the force redirect to https?

grafik

@OnionDev1885
Copy link
Contributor

OnionDev1885 commented Sep 5, 2022

That is i should remove the force redirect to https?

grafik

What callback?
U mean that force redirect to https na?

My .htaccess

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .*$ index.php?/$1 [L]
</IfModule>


# Force redirect from http to https
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://freewh.gq/$1 [R,L]

I understans what u are saying
But how shall I exclude it?
I don't know .htaccess
Like i have to make a rule which will exclude the callback url from force https?

@BastelPichi
Copy link
Contributor

@webxjoin
Copy link
Author

webxjoin commented Sep 8, 2022

@OnionDev1885
Copy link
Contributor

OnionDev1885 commented Sep 8, 2022

Bru now i reinstalled Xera on a subdomain
I configured everything
I didnt put force redirect via cloudflare or .htaccess
And, i also checked going to http version of the api, and it works! You can try: http://client.freewh.gq/c/mofh
But the account is still on pending

Should i try with http://client.freewh.gq/index.php/c/mofh instead of http://client.freewh.gq/c/mofh ?

@mahtab2003 bro i need ur help

@mahtab2003
Copy link
Owner

Bru now i reinstalled Xera on a subdomain I configured everything I didnt put force redirect via cloudflare or .htaccess And, i also checked going to http version of the api, and it works! You can try: http://client.freewh.gq/c/mofh But the account is still on pending

Should i try with http://client.freewh.gq/index.php/c/mofh instead of http://client.freewh.gq/c/mofh ?

@mahtab2003 bro i need ur help

@OnionDev1885 you should use http://client.freewh.gq/c/mofh

@OnionDev1885
Copy link
Contributor

Bru now i reinstalled Xera on a subdomain I configured everything I didnt put force redirect via cloudflare or .htaccess And, i also checked going to http version of the api, and it works! You can try: http://client.freewh.gq/c/mofh But the account is still on pending
Should i try with http://client.freewh.gq/index.php/c/mofh instead of http://client.freewh.gq/c/mofh ?
@mahtab2003 bro i need ur help

@OnionDev1885 you should use http://client.freewh.gq/c/mofh

I am using that only
But still account stays on pending status
I tested the api and it works
The account is activated in mofh panel but not in Xera panel
Even tho force redirect to https is disabled on whole site + i gave the callback url in http

@webxjoin
Copy link
Author

webxjoin commented Sep 8, 2022

There is a problem between the callback and the database

@mahtab2003
Copy link
Owner

There is a problem between the callback and the database

let me try a few tweaks

@OnionDev1885
Copy link
Contributor

There is a problem between the callback and the database

fixed

There is a problem between the callback and the database

let me try a few tweaks

fixed

Thank you everyone for your time

@mahtab2003
Copy link
Owner

welcome

@4yx
Copy link
Contributor

4yx commented Sep 12, 2022

@OnionDev1885 said:
fixed

How was it fixed? Did you take any additional steps or was disabling the HTTPS redirect what was needed?

@OnionDev1885
Copy link
Contributor

OnionDev1885 commented Sep 14, 2022

@4yx

I did some changes:

Disabled Force Redirect to https
Added some lines of .htaccess to fix some errors
Made the callback url to http on mofh panel

My .htaccess file:
image
Code: (for direct copy paste)

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php [NC,L] 
</IfModule>

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule .*$ index.php?/$1 [L]
</IfModule>

@4yx
Copy link
Contributor

4yx commented Sep 14, 2022

@4yx

I did some changes:

Disabled Force Redirect to https
Added some lines of .htaccess to fix some errors
Made the callback url to http on mofh panel

My .htaccess file: image Code: (for direct copy paste)

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php [NC,L] 
</IfModule>

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule .*$ index.php?/$1 [L]
</IfModule>

Thank you for providing the contents and adding them in code format!

@mahtab2003
Copy link
Owner

There was no replies so this issue is considered to be resolved

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

7 participants
@4yx @mahtab2003 @BastelPichi @greenreader9 @OnionDev1885 @webxjoin and others