Jump to content
WebFlake
  • 0

Error when signing in or registering


crashzk

Question

When I click to log in the forum gives a 404 error.

Not Found

The requested URL /forum/login/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Forum Link: https://zkservidores.com/forum

This happens in both the login and registration part, in case I can only log in to the admin area.

Any way to fix it? Or just reinstalling?

Attached is the error log: error_log (However last error was on date was [14-Nov-2018 17:48:00 UTC])

Edited by paulo_crash
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

It should look like this;

<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /forum/index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /forum/404error.php [L,NC]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /forum/index.php [L]
</IfModule>

# php -- BEGIN cPanel-generated handler, do not edit
# Defina o pacote “ea-php72” como a linguagem padrão de programação “PHP”.
<IfModule mime_module>
  AddType application/x-httpd-ea-php72 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php7_module>
   php_flag display_errors Off
   php_value max_execution_time 240
   php_value max_input_time 120
   php_value max_input_vars 1000
   php_value memory_limit 512M
   php_value post_max_size 16M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
   php_value upload_max_filesize 8M
   php_flag zlib.output_compression Off
</IfModule>
# END cPanel-generated php ini directives, do not edit

Go into admincp, use the Search Bar, find "Friendly Urls", and toggle "Rewrite URLs" on.

Edited by Jeffrey
  • Thanks 1
  • Support Team - September 9th, 2017 - June 8, 2018
  • Junior Moderator - December 14th 2018 - November 16th, 2019
  • Designer - November 16th, 2019 - June 5th, 2020
  • Moderator - June 5th, 2020 - August 28th, 2020
Link to comment
Share on other sites

  • 0
2 minutes ago, Jeffrey said:

Check your .htaccess file

This is configured as follows: (It is not in the same folder that I installed the forum, it is in public_html)

# php -- BEGIN cPanel-generated handler, do not edit
# Defina o pacote “ea-php72” como a linguagem padrão de programação “PHP”.
<IfModule mime_module>
  AddType application/x-httpd-ea-php72 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php7_module>
   php_flag display_errors Off
   php_value max_execution_time 240
   php_value max_input_time 120
   php_value max_input_vars 1000
   php_value memory_limit 512M
   php_value post_max_size 16M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
   php_value upload_max_filesize 8M
   php_flag zlib.output_compression Off
</IfModule>
# END cPanel-generated php ini directives, do not edit

 

Edited by paulo_crash
Link to comment
Share on other sites

  • 0
3 minutes ago, Jeffrey said:

It should look like this;


<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /forum/index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /forum/404error.php [L,NC]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /forum/index.php [L]
</IfModule>

Go into admincp, use the Search Bar, find "Friendly Urls", and toggle "Rewrite URLs" on.

I put it the same way and still nothing, still giving error.

Link to comment
Share on other sites

  • 0
1 minute ago, paulo_crash said:

I put it the same way and still nothing, still giving error.

It's an issue with Friendly URLs. The registration page can still be access at: {url}/forum/index.php?/register

  • Like 1
  • Support Team - September 9th, 2017 - June 8, 2018
  • Junior Moderator - December 14th 2018 - November 16th, 2019
  • Designer - November 16th, 2019 - June 5th, 2020
  • Moderator - June 5th, 2020 - August 28th, 2020
Link to comment
Share on other sites

  • 0
20 minutes ago, Jeffrey said:

It's an issue with Friendly URLs. The registration page can still be access at: {url}/forum/index.php?/register

Also, not the same error:

Not Found
The requested URL /forum/register/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

[EDIT1]
Sorry, this one...

https://zkservidores.com/forum/index.php?/register

[EDIT2]
Resolved, forgot to put the "." the .htaccess file.

Thank you!

Edited by paulo_crash
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...