mahtab2003 / Xera

Now Introducing a new and easy way to manage your clients and MyOwnFreeHost hosting accounts.
https://xera.eu.org/
GNU General Public License v2.0
47 stars 39 forks source link

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

Closed webxjoin closed 1 year ago

webxjoin commented 2 years ago

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

greenreader9 commented 2 years ago

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

mahtab2003 commented 2 years ago

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

you are right

BastelPichi commented 2 years ago

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

BastelPichi commented 2 years ago

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 commented 2 years ago

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

BastelPichi commented 2 years ago

Well with a redirect that shouldnt work but idk

mahtab2003 commented 2 years ago

yup with redirection that won't work.

webxjoin commented 2 years ago

All the settings are correct but callback not working

webxjoin commented 2 years ago

callback is not working

BastelPichi commented 2 years ago

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 commented 2 years ago

okay

webxjoin commented 2 years ago

XERA callback for xera

MOFH Panel mofh

BastelPichi commented 2 years ago

Please share your Xera URL.

webxjoin commented 2 years ago

why

BastelPichi commented 2 years ago

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

mahtab2003 commented 2 years ago

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

you are right

mahtab2003 commented 2 years ago

callback response does not work on https redirection.

BastelPichi commented 2 years ago

ill try some stuff. https works with MOFH callback usually

webxjoin commented 2 years ago

okay how can know if i have https redirect

BastelPichi commented 2 years ago

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 commented 2 years ago

Same issue Even its on http image image

BastelPichi commented 2 years ago

Well basically:

OnionDev1885 commented 2 years ago

That is i should remove the force redirect to https?

BastelPichi commented 2 years ago

That is i should remove the force redirect to https?

grafik

OnionDev1885 commented 2 years ago

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 commented 2 years ago

https://stackoverflow.com/questions/35598608/exclude-specific-url-from-https-redirect

webxjoin commented 2 years ago

https://stackoverflow.com/questions/35598608/exclude-specific-url-from-https-redirect

i did not understand the article

OnionDev1885 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

There is a problem between the callback and the database

mahtab2003 commented 2 years ago

There is a problem between the callback and the database

let me try a few tweaks

OnionDev1885 commented 2 years ago

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 commented 2 years ago

welcome

4yx commented 2 years ago

@OnionDev1885 said: fixed

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

OnionDev1885 commented 2 years ago

@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 commented 2 years ago

@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 commented 1 year ago

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