Whoops! There was an error.
Whoops \ Exception \ ErrorException (E_NOTICE)
Undefined offset: 0 Whoops\Exception\ErrorException thrown with message "Undefined offset: 0" Stacktrace: #2 Whoops\Exception\ErrorException in /home/afamacau/public_html/artists_detail.php:36 #1 Whoops\Run:handleError in /home/afamacau/public_html/artists_detail.php:36 #0 require_once in /home/afamacau/public_html/index.php:124
Stack frames (3)
2
Whoops
\
Exception
\
ErrorException
/
home
/
afamacau
/
public_html
/
artists_detail.php
36
1
Whoops
\
Run
handleError
/
home
/
afamacau
/
public_html
/
artists_detail.php
36
0
require_once
/
home
/
afamacau
/
public_html
/
index.php
124
/
home
/
afamacau
/
public_html
/
artists_detail.php
    $bgfoto = '/img/Works/'.$savephotorand_list[$rand]['img'];
 
}else{
    $cms_banner = Sdba::table('cms_banner');   
    $cms_banner->where('id', 2);  
    $total_cms_banner = $cms_banner->total();  // 總數
    $cms_banner_list = $cms_banner->get();        // 結果
 
    $bgfoto = '/img/uploads/'.$cms_banner_list[0]['mainphoto'];
}
 
 
 
?>
    <main>
            <!-- mainHeadingHead -->
            <header class="mainHeadingHead position-relative bgCover w-100 d-flex text-white" style="background-image: url(<?php echo $bgfoto; ?>);">
                <div class="mhhAlignHolder d-flex w-100 align-items-center position-relative">
                    <div class="container py-6">
                        <h1 class="text-white mb-0"><?php echo $cms_artists_list[0]['name'.$clang]; ?></h1>
                    </div>
                </div>
            </header>
            <!-- scrollToNav -->
            <nav class="scrollToNav scrollToNavII text-gray777 pt-2 pb-2 pt-lg-4 pb-lg-4">
                <div class="container">
                    <ul class="list-unstyled mb-0 d-flex justify-content-start">
                        <li ><?php if ($cms_artists_list[0]['categories']=='Acting Arts'){ $backlink = 'artists'; }else{ $backlink = 'other_artists'; } ?>
                            <a href="/<?php echo $backlink; ?>"><?php if ($clang == ''){ echo '返 回'; }else{ echo 'Back'; } ?></a>
                        </li>
                        
                        <li class="active">
                            <a href="/artists_detail/<?php echo $_GET['id']; ?>"><?php if ($clang == ''){ echo '簡 介'; }else{ echo 'Profile'; } ?></a>
                        </li>
                         
                        <li class="">
                            <a href="/artists_detail/<?php echo $_GET['id']; ?>#works"><?php if ($clang == ''){ echo '作 品'; }else{ echo 'Works'; } ?></a>
                        </li>
                         
                    </ul>
/
home
/
afamacau
/
public_html
/
artists_detail.php
    $bgfoto = '/img/Works/'.$savephotorand_list[$rand]['img'];
 
}else{
    $cms_banner = Sdba::table('cms_banner');   
    $cms_banner->where('id', 2);  
    $total_cms_banner = $cms_banner->total();  // 總數
    $cms_banner_list = $cms_banner->get();        // 結果
 
    $bgfoto = '/img/uploads/'.$cms_banner_list[0]['mainphoto'];
}
 
 
 
?>
    <main>
            <!-- mainHeadingHead -->
            <header class="mainHeadingHead position-relative bgCover w-100 d-flex text-white" style="background-image: url(<?php echo $bgfoto; ?>);">
                <div class="mhhAlignHolder d-flex w-100 align-items-center position-relative">
                    <div class="container py-6">
                        <h1 class="text-white mb-0"><?php echo $cms_artists_list[0]['name'.$clang]; ?></h1>
                    </div>
                </div>
            </header>
            <!-- scrollToNav -->
            <nav class="scrollToNav scrollToNavII text-gray777 pt-2 pb-2 pt-lg-4 pb-lg-4">
                <div class="container">
                    <ul class="list-unstyled mb-0 d-flex justify-content-start">
                        <li ><?php if ($cms_artists_list[0]['categories']=='Acting Arts'){ $backlink = 'artists'; }else{ $backlink = 'other_artists'; } ?>
                            <a href="/<?php echo $backlink; ?>"><?php if ($clang == ''){ echo '返 回'; }else{ echo 'Back'; } ?></a>
                        </li>
                        
                        <li class="active">
                            <a href="/artists_detail/<?php echo $_GET['id']; ?>"><?php if ($clang == ''){ echo '簡 介'; }else{ echo 'Profile'; } ?></a>
                        </li>
                         
                        <li class="">
                            <a href="/artists_detail/<?php echo $_GET['id']; ?>#works"><?php if ($clang == ''){ echo '作 品'; }else{ echo 'Works'; } ?></a>
                        </li>
                         
                    </ul>
/
home
/
afamacau
/
public_html
/
index.php
        break;
        
        case 'links':
            require_once('links.php');
        break;
        
        case 'contact':
            require_once('contact.php');
        break;
        
        case 'search':
            require_once('search.php'); 
        break;
        
        case 'artists':
            require_once('artists.php');
        break;
        
        case 'artists_detail':
            require_once('artists_detail.php');
        break;
        
        
        
        case 'exhibition':
            require_once('exhibition.php');
        break;
        
        case 'exhibition_detail':
            require_once('exhibition_detail.php');
        break;
        
        case 'exhibition_works':
            require_once('exhibition_works.php');
        break;
 
        case 'exhibition_picture':
            require_once('exhibition_picture.php');
        break;
        

Environment & details:

Key Value
page artists_detail
id 475
empty
empty
empty
Key Value
_token 7d7a22966a149a667c6fa9a344f62cf2
getnowpage /artists_detail/475
lang mo
Key Value
USER afamacau
HOME /home/afamacau
SCRIPT_NAME /index.php
REQUEST_URI /artists_detail/475
QUERY_STRING page=artists_detail&id=475
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING page=artists_detail&id=475
REDIRECT_URL /artists_detail/475
REMOTE_PORT 57508
SCRIPT_FILENAME /home/afamacau/public_html/index.php
SERVER_ADMIN webmaster@afamacau.com
CONTEXT_DOCUMENT_ROOT /home/afamacau/public_html
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /home/afamacau/public_html
REMOTE_ADDR 18.204.56.185
SERVER_PORT 443
SERVER_ADDR 172.31.32.184
SERVER_NAME afamacau.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
PATH /usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin
HTTP_X_HTTPS 1
HTTP_CONNECTION Keep-Alive
HTTP_HOST afamacau.com
HTTP_ACCEPT_ENCODING br,gzip
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
proxy-nokeepalive 1
SSL_TLS_SNI afamacau.com
HTTPS on
SCRIPT_URI https://afamacau.com/artists_detail/475
SCRIPT_URL /artists_detail/475
UNIQUE_ID YvNDPygr22Ay2u3yWNciiAAAAA8
REDIRECT_STATUS 200
REDIRECT_SSL_TLS_SNI afamacau.com
REDIRECT_HTTPS on
REDIRECT_SCRIPT_URI https://afamacau.com/artists_detail/475
REDIRECT_SCRIPT_URL /artists_detail/475
REDIRECT_UNIQUE_ID YvNDPygr22Ay2u3yWNciiAAAAA8
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1660109631.8367
REQUEST_TIME 1660109631
argv Array ( [0] => page=artists_detail&id=475 )
argc 1
empty
0. Whoops\Handler\PrettyPageHandler