500 Internal Error when logout and problem with login in 5.4.2

Permalink
Hi,
I have problem with a new version, the same error is in updating from 5.4.1.1 and new instalation too.
First problem:
I can't correct login to the dashboard. I have message "A username and password are required.". Than I wrote in address /dashboard and I could go to admin panel.
But, when I login directly to /index.php/dashboard/ login is correct.

Second problem:
When I logout I see only:
500 Internal Error
The server encountered an internal error and could not complete your request.

What is wrong with that?
Latest versions c5 are ok, I never had error like this.
Pretty URLs are disable, no htaccess, but it's the same problem when URLs are enable.

Please, help me, because I have over 30 installations with c5 on this server, and so far everything worked without problems. There must be something with the new version.

3 Attachments

cssninja
 
Mnkras replied on at Permalink Reply
Mnkras
can you get the apache and php error log?
cssninja replied on at Permalink Reply
cssninja
I can't because error logs are not saved.
The file error.log is empty and on the server logs nothing can be seen too.
I don't understand what's happened. This problem is only with 5.4.2 version. :(
Mnkras replied on at Permalink Reply
Mnkras
odd, 500 errors should be logged,
cssninja replied on at Permalink Reply
cssninja
The eror.log file is empty, and has 0KB.
cssninja replied on at Permalink Reply
cssninja
I found something in /concrete/libraries/controller.php in line 347, when I add condition || ($url == "/") - 500 Internal Error does not appear.

Like this:
public function redirect() {
      $args = func_get_args();
      $url = call_user_func_array(array('View', 'url'), $args);
      if (($url == '') || ($url == "/")) {
         $url = BASE_URL . DIR_REL;
      }
      header("Location: " . $url);
      exit;
   }