• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Create Character error Gesior Hosted

Azerty

Active Member
Joined
Apr 15, 2022
Messages
301
Solutions
4
Reaction score
31
Good morning, I'm facing an error that occurs after I hosted my gesior. What happens is that when I click on create account the page is directed to the link ( ErrorDocument 404 http://127.0.0.1/?subtopic=error ) that I found in .htacess

When I copy the link to directly access the create account page, the error does not occur and when I access the hosted site on my pc, this error does not occur.

The error only happens when I click on the "Create Account" button. Does anyone know if I have to redirect the button as the site is now hosted?

create account.JPG


error create account.JPG

.htacess
Lua:
AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/x-font-woff .woff

Header set X-Content-Type-Options "nosniff"
Header set X-FRAME-OPTIONS "SAMEORIGIN"
Header set X-XSS-Protection "1; mode=block"
Header set Cache-Control "public, max-age=60"

# Security to css and js files
<FilesMatch "\.(html|htm|js|css|png|jpeg|jpg|gif|pdf|zip)$">
    FileETag None
    <ifModule mod_headers.c>
        Header set Cache-Control "public, max-age=1000"
    </ifModule>
</FilesMatch>

RewriteEngine on
Options All -Indexes

#Error Document
ErrorDocument 403 http://127.0.0.1/?subtopic=error
ErrorDocument 404 http://127.0.0.1/?subtopic=error
ErrorDocument 500 http://127.0.0.1/?subtopic=error

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Post automatically merged:

accountmanagement.php

PHP:
                                                            <table class="InnerTableButtonRow" cellpadding="0" cellspacing="0">

                                                                <tbody>

                                                                    <tr>

                                                                        <td></td>

                                                                        <td align="right" style="padding-right:7px;width:100%;">

                                                                            <form action="?subtopic=accountmanagement&action=createcharacter" method="post" style="padding:0px;margin:0px;">

                                                                                <input type="hidden" name="selectedcharacter" value="Draz Mytos">

                                                                                <div class="BigButton" style="background-image:url(' . $layout_name . '/images/global/buttons/sbutton.gif)">

                                                                                    <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image:url(' . $layout_name . '/images/global/buttons/sbutton_over.gif);"></div>

                                                                                        <input class="ButtonText" type="image" name="Create Character" alt="Create Character" src="' . $layout_name . '/images/global/buttons/_sbutton_createcharacter.gif">

                                                                                    </div>
 
Last edited:
enable gesior debugging and also php error
define('DEBUG_DATABASE', false);
to
define('DEBUG_DATABASE', true);

and


ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
 
enable gesior debugging and also php error
define('DEBUG_DATABASE', false);
to
define('DEBUG_DATABASE', true);

and


ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

all in index?
Post automatically merged:

Query: SELECT id, name, password, premdays, coins, lastday, email, key, create_ip, creation, page_access, location, rlname, birth_date, gender, email_new, email_new_time, email_code, next_email, last_post, flag, vote, loyalty_points, guild_points, vip_time FROM accounts WHERE name = '102050'
SQLSTATE: 00000
Driver code:
Error message:
Post automatically merged:

do you think it could be something in the database?
Post automatically merged:

I do not understand. When I click on create character with the link (http://localhost/?subtopic=accountmanagement&action=createcharacter) it works perfectly, but when I click on create character for access with my domain (https://mydomain.com.br/?subtopic=accountmanagement&action =createcharacter) I am redirected to the link that is in .htacess (http://127.0.0.1/?subtopic=error) =/

Can anybody help me?!?
 
Last edited:
That typically means server error.

You can look into web server logs to see more infos.

Its in /var/log/apache2 under linux.

Under windows it depends, it should be somewhere where you have XAMPP/uniform installed.
 
wrong apache configuration also check where bring you "button" on your webpage (layouts settings) check your hyperlinks
 
That typically means server error.

You can look into web server logs to see more infos.

Its in /var/log/apache2 under linux.

Under windows it depends, it should be somewhere where you have XAMPP/uniform installed.
My site is hosted, what do I do?
Post automatically merged:

wrong apache configuration also check where bring you "button" on your webpage (layouts settings) check your hyperlinks
What do I do?
 

Similar threads

Back
Top