2016-08-24 7 views
0

Ich habe 2 Tage mit einem Fehler 500 auf meiner Joomla 3x Site (www.magic.cr

)

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

ich fand diese auf meine Fehlerprotokolle:

[23-Aug-2016 16:48:00 UTC] PHP Deprecated: Non-static method JApplication::redirect() should not be called statically, assuming $this from incompatible context in /home/kiwitex/public_html/magic.cr/templates/braink/error.php on line 9 [23-Aug-2016 16:48:00 UTC] PHP Notice: Undefined property: JDocumentError::$_messageQueue in /home/kiwitex/public_html/magic.cr/libraries/legacy/application/application.php on line 376 [23-Aug-2016 16:48:00 UTC] PHP Notice: Undefined property: JDocumentError::$client in /home/kiwitex/public_html/magic.cr/libraries/legacy/application/application.php on line 394 [23-Aug-2016 16:48:00 UTC] PHP Notice: Trying to get property of non-object in /home/kiwitex/public_html/magic.cr/libraries/legacy/application/application.php on line 394 [23-Aug-2016 16:48:00 UTC] PHP Fatal error: Call to undefined method JDocumentError::close() in /home/kiwitex/public_html/magic.cr/libraries/legacy/application/application.php on line 409

Dies ist: public_html/magic.cr/templates/braink/error.php

<?php 
 
defined('_JEXEC') or die; 
 
if (!isset($this->error)) { 
 
\t $this->error = JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR')); 
 
\t $this->debug = false; 
 
}else{ 
 
\t switch($this->error->getCode()) { 
 
\t \t case "404": 
 
\t \t \t JApplication::redirect("index.php/404-error"); // replace the redirect URL with your own 
 
\t \t \t break; 
 
\t \t case "403": 
 
\t \t \t JApplication::redirect("index.php/404-error"); // replace the redirect URL with your own 
 
\t \t \t break; 
 
\t } 
 
}

ich den Administrator zugreifen kann: www.magic.cr/administrator

Joomla 3.6.2 PHP Version 5.6.23

Vielen Dank im Voraus !!

Antwort

0

Die Hinweismeldungen werden wegen falscher Verwendung der statischen Funktionen ausgegeben.

Hier ist der richtige Weg, die Redirect-Funktion aufzurufen.

$app = JFactory::getApplication(); 
$app->redirect(url); 
Verwandte Themen