Page 1 of 1

action problem

Posted: Mon May 22, 2023 10:17 am
by plessas
hello, i try to see the members of my site and switch their permission ( if x was admin, change him to member) and the changes cannot be saved. Any help would be appreciated

Re: action problem

Posted: Mon May 22, 2023 11:20 am
by Pablo
What is your setup?
Are there any errors?
Can you please be more specific?

Re: action problem

Posted: Mon May 22, 2023 12:24 pm
by plessas
my setup is flat type. Usersdb.php, as default
No there are not
I can't understand the problem, so im asking for your help, evereything are on deafault values
I commit you the link of my project, please try to download it, i need your help
..............................url deleted
thank you

Re: action problem

Posted: Mon May 22, 2023 1:14 pm
by Pablo
The only error I see in your projetc is that you did not set an error and destination page for the login forms.
However, this does not affect the admin.

Did you create the user database file on the server?
Did you set enable write permission for the file?

If you need further assistance then please provide the PHP error log.

Re: action problem

Posted: Mon May 22, 2023 1:33 pm
by plessas
Thank you !!!

I’ll do as you advice me and inform you


Thank you

Re: action problem

Posted: Mon May 22, 2023 4:52 pm
by plessas
I created the database on the server
i enabled perms(0777) on the server
i dont know how to get php error logs, i would appreciate some help either with anydesk or provide me a tutorial to find the logs
thank you

Re: action problem

Posted: Mon May 22, 2023 4:58 pm
by Pablo
PHP logs are a features of the server.
If you do not know where to find them, then you will need to contact your webhost.

Re: action problem

Posted: Mon May 22, 2023 6:45 pm
by MGD4me
i dont know how to get php error logs
If you use an FTP client, such as WinSCP or FileZIlla, you can easily log in to your server and the error_log file should be readily available. Fairly straight forward.

Re: action problem

Posted: Mon May 22, 2023 7:02 pm
by plessas
Thank you
I can’t find it

I’m using 000webhost

Next step is to install something like xampp and hope find something


Thank you

Re: action problem

Posted: Wed May 24, 2023 6:23 am
by plessas
Good Morning, i'm back
i move to another server

Finally i get the php error log file

here it is : ..............................url deleted
the project is at : ..............................url deleted

Please give me your help

i can send admin codes if need by pm or email

Re: action problem

Posted: Wed May 24, 2023 9:07 am
by Pablo
I cannot load your project because it uses extensions that I do not have.
Please read this before sharing your project:
viewtopic.php?f=10&t=82134

Also, I am not sure if the error are related to the login admin.

The script does not use 'x13' or HTTP_REFERER'
Are you sure you have shared the correct log file?

Re: action problem

Posted: Wed May 24, 2023 9:25 am
by plessas
yes i m sure

i notice that there (by the log file) an error for an undefined value at line 356
"Undefined variable: x13 in /home/user.../domains/roarapp.net/public_html/index.php on line 356"

the index.php file has 327 lines instead of 356
i'm not use variable: x13


i had the same problem and at the Web Host before

Re: action problem

Posted: Wed May 24, 2023 9:38 am
by Pablo
Is your question still related to the admin?
There is no x13 or HTTP_REFERER in the admin script.
Also, the admin object is not on the index page.

If you need further assistance the please share the following information:

1. a DEMO project that only contains the pages and objects related to the question. Remove any custom scripts, extensions and other content that is not relevant to your question.
2. an error log that is relevant to your problem.

Re: action problem

Posted: Wed May 24, 2023 11:31 am
by plessas
Thank you

I will ask my web host

Thank you!!!

Re: action problem

Posted: Thu May 25, 2023 8:27 am
by plessas
Hello, :(
Again....

I stop trying with Flat type (usersdb.php) file and i start with MySQL, loaclly and Xampp

My page is only the SignUp Form From Toolbox->Login tools

i get this error

"Warning: mysqli_connect(): php_network_getaddresses: getaddrinfo for localost failed: ������� �������� �����������. in C:\xampp\htdocs\RoaR\TestMySQL.php on line 54

Fatal error: Uncaught mysqli_sql_exception: php_network_getaddresses: getaddrinfo for localost failed: ������� �������� �����������. in C:\xampp\htdocs\RoaR\TestMySQL.php:54 Stack trace: #0 C:\xampp\htdocs\RoaR\TestMySQL.php(54): mysqli_connect('localost', 'root', Object(SensitiveParameterValue)) #1 {main} thrown in C:\xampp\htdocs\RoaR\TestMySQL.php on line 54"

at local host with Xampp

Line 54 is
" $db = mysqli_connect($mysql_server, $mysql_username, $mysql_password);"

and variables are
$mysql_server = 'localhost';
$mysql_username = 'root';
$mysql_password = '';
$mysql_database = 'loginusers';
$mysql_table = 'loginusers';
$success_page = './SignUpSuccesfull.php';


i was try with non blank or empty password


what is the wrong?


Thank you once more

Re: action problem

Posted: Thu May 25, 2023 8:56 am
by Pablo
The error indicates that your settings are incorrect.

For example, I think it should be 'localhost' instead of 'localost'?

Re: action problem

Posted: Thu May 25, 2023 9:10 am
by plessas
FInally i noticed that when i add Custom field things became quite harder .

New field named as extra1......

i think i'm ok

thank you

problem i think solved

Re: action problem

Posted: Fri May 26, 2023 6:06 am
by plessas
Finally
I notice that
a. when i choose flat file field "role" isnt at script
b. when i choose Mysql field "role" is at script
c. When i add extra field like "userid" script genarates "extra1", "extra2" .... and i must fix "extra1" with the name of the field

i dont know if this is bug,
but i'm sure that rookies like me, maybe find this post usefull


Sorry for my poor english..:)

Re: action problem

Posted: Fri May 26, 2023 9:09 am
by Pablo
This is not a bug.

Please see "Important notes" in the tutorial:
https://www.wysiwygwebbuilder.com/userroles.html