Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)
Class 'App\Exceptions\Redirect' not found Symfony\Component\Debug\Exception\FatalThrowableError thrown with message "Class 'App\Exceptions\Redirect' not found" Stacktrace: #0 Symfony\Component\Debug\Exception\FatalThrowableError in /var/www/vhosts/newyousa.com/public_html/oldSite/appointments/website/app/Exceptions/Handler.php:63
Application frames (1) All frames (1)
0
Symfony
\
Component
\
Debug
\
Exception
\
FatalThrowableError
/
app
/
Exceptions
/
Handler.php
63
/
var
/
www
/
vhosts
/
newyousa.com
/
public_html
/
oldSite
/
appointments
/
website
/
app
/
Exceptions
/
Handler.php
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Exception  $exception
     * @return \Illuminate\Http\Response
     */
    public function render($request, Exception $e)
    {
        if($this->isHttpException($e))
        {
            switch ($e->getStatusCode()) 
                {
                // not found
                case 404:
      $locale =\Request::segment(1);
 
                if (    $locale== 'ar' ){  
                 return Redirect::to('https://appointments.newyousa.com/website/public/');
//  return redirect('/',301);
                }else{
                return Redirect::to('https://appointments.newyousa.com/website/public/');
//  return redirect('/',301);
 
                }
                
                break;
 
                // internal error
                case '500':
        $locale =\Request::segment(1);
 
                if (    $locale== 'ar' ){  
                 return Redirect::to('https://appointments.newyousa.com/website/public/');
//  return redirect('/',301);
                }else{
            return Redirect::to('https://appointments.newyousa.com/website/public/');
//      return redirect('/',301);
 
                }
                break;
 
Arguments
  1. "Class 'App\Exceptions\Redirect' not found"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
USER
"newyousa"
HOME
"/var/www/vhosts/newyousa.com"
SCRIPT_NAME
"/website/public/index.php"
REQUEST_URI
"/website/public/Dental.html"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.0"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/website/public/Dental.html"
REMOTE_PORT
"58660"
SCRIPT_FILENAME
"/var/www/vhosts/newyousa.com/public_html/oldSite/appointments/website/public/index.php"
SERVER_ADMIN
"root@localhost"
CONTEXT_DOCUMENT_ROOT
"/var/www/vhosts/newyousa.com/public_html/oldSite/appointments"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/var/www/vhosts/newyousa.com/public_html/oldSite/appointments"
REMOTE_ADDR
"44.204.218.79"
SERVER_PORT
"443"
SERVER_ADDR
"104.192.7.61"
SERVER_NAME
"appointments.newyousa.com"
SERVER_SOFTWARE
"Apache"
SERVER_SIGNATURE
""
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
HTTP_CONNECTION
"close"
HTTP_X_ACCEL_INTERNAL
"/internal-nginx-static-location"
HTTP_X_REAL_IP
"44.204.218.79"
HTTP_HOST
"appointments.newyousa.com"
proxy-nokeepalive
"1"
HTTPS
"on"
PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY
"0"
PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY
"0"
PERL5LIB
"/usr/share/awstats/lib:/usr/share/awstats/plugins"
UNIQUE_ID
"ZgVgDOFKH74t-FFf0@4NuQAAAQs"
REDIRECT_STATUS
"200"
REDIRECT_HTTPS
"on"
REDIRECT_PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY
"0"
REDIRECT_PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY
"0"
REDIRECT_PERL5LIB
"/usr/share/awstats/lib:/usr/share/awstats/plugins"
REDIRECT_UNIQUE_ID
"ZgVgDOFKH74t-FFf0@4NuQAAAQs"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/website/public/index.php"
REQUEST_TIME_FLOAT
1711628300.2663
REQUEST_TIME
1711628300
APP_NAME
"Laravel"
APP_ENV
"local"
APP_KEY
"base64:wndm2EYmlM6Yg4+2Q+Y352OXnVRYBhU3Kf25UkI5JPY="
APP_DEBUG
"true"
APP_LOG_LEVEL
"debug"
APP_URL
"http://localhost"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"file"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
QUEUE_DRIVER
"sync"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"smtp.mailtrap.io"
MAIL_PORT
"2525"
MAIL_USERNAME
"null"
MAIL_PASSWORD
"null"
MAIL_ENCRYPTION
"null"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
Key Value
APP_NAME
"Laravel"
APP_ENV
"local"
APP_KEY
"base64:wndm2EYmlM6Yg4+2Q+Y352OXnVRYBhU3Kf25UkI5JPY="
APP_DEBUG
"true"
APP_LOG_LEVEL
"debug"
APP_URL
"http://localhost"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"file"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
QUEUE_DRIVER
"sync"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"smtp.mailtrap.io"
MAIL_PORT
"2525"
MAIL_USERNAME
"null"
MAIL_PASSWORD
"null"
MAIL_ENCRYPTION
"null"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
0. Whoops\Handler\PrettyPageHandler