• 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!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

Create Character error Gesior Hosted

Azerty

Member
Joined
Apr 15, 2022
Messages
207
Solutions
3
Reaction score
15
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:

beliar34

Member
Joined
Feb 28, 2012
Messages
307
Solutions
7
Reaction score
11
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);
 
OP
OP
A

Azerty

Member
Joined
Apr 15, 2022
Messages
207
Solutions
3
Reaction score
15
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:

slaw

MyAAC Creator
Premium User
Joined
Aug 27, 2007
Messages
3,510
Solutions
113
Reaction score
943
Location
Germany
GitHub
slawkens
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.
 

beliar34

Member
Joined
Feb 28, 2012
Messages
307
Solutions
7
Reaction score
11
wrong apache configuration also check where bring you "button" on your webpage (layouts settings) check your hyperlinks
 
OP
OP
A

Azerty

Member
Joined
Apr 15, 2022
Messages
207
Solutions
3
Reaction score
15
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?
 
Top