Whoops! There was an error.
Whoops \ Exception \ ErrorException (E_NOTICE)
Undefined variable: rarity Whoops\Exception\ErrorException thrown with message "Undefined variable: rarity" Stacktrace: #1 Whoops\Exception\ErrorException in /home/mtgscgte/public_html/editmysinglecard.php:1292 #0 Whoops\Run:handleError in /home/mtgscgte/public_html/editmysinglecard.php:1292
Stack frames (2)
1
Whoops
\
Exception
\
ErrorException
…
/
editmysinglecard.php
1292
0
Whoops
\
Run
handleError
…
/
editmysinglecard.php
1292
/
home
/
mtgscgte
/
public_html
/
editmysinglecard.php
$effectsHeaderHtml = count($_eff)
  ? "<span class='header-effects' style='display:inline-flex;align-items:center;gap:6px;margin-right:10px;'>".implode('', $_eff)."</span>"
  : "";
 
// check if non-foil or foil exists
  if($getcardinfo["nonfoil"] == 1) {$checknonfoil = TRUE;} else {$checknonfoil = FALSE; }
  if($getcardinfo["foil"] == 1) {$checkfoil = TRUE;} else {$checkfoil = FALSE;}
 
   if(mysqli_num_rows($getcardinfoQUERY) == 0) { redirect_to(App::url());}
 
   // Rarity & Edition Image
        if($getcardinfo['rarity'] == "C") { $rarity = "common"; } elseif($getcardinfo['rarity'] == "U") { $rarity = "uncommon"; } elseif($getcardinfo['rarity'] == "R") { $rarity = "rare"; } elseif($getcardinfo['rarity'] == "M") { $rarity = "mythic"; } // implementieren von Filter für R, UC, C, M
 
        $editioncimg2 = strtolower($getcardinfo['editionc']);
 
        $rarityimg = strtoupper(substr($getcardinfo['rarity'], 0, 1));
        $editioncimg = strtoupper($getcardinfo['editionc']);
 
        if(!in_array($editioncimg2, $setsWithImages)) {
        $editionicon = '<a href="https://www.mtgstand.com/'.preg_replace("/[^a-zA-Z0-9-]/", "", str_replace(" ","-",$getcardinfo["edition"])).'-set-singles-'.strtoupper($editioncimg2).'-worldwide-0" style=""><i class="ss ss-'.$editioncimg2.' ss-'.$rarity.' ss-grad ss-3x"></i></a>'; } else {
 
        $editionicon =  '<a href="https://www.mtgstand.com/'.preg_replace("/[^a-zA-Z0-9-]/", "", str_replace(" ","-",$getcardinfo["edition"])).'-set-singles-'.strtoupper($editioncimg2).'-worldwide-0"><img src="images/sets/'.$editioncimg.'/'.$rarityimg.'.svg" style="max-height: 50px; min-width:44px; max-width:100px;"></a>'; }
 
    // GET TOTAL SALES OF THAT CARD
   $totalsalesSQL = "SELECT COUNT(id) AS totalsales FROM shoppingcart WHERE cardscryfallid = '".$sid."' AND send = 1";
   $totalsalesQUERY = mysqli_query($conn, $totalsalesSQL);
   $totalsalesRESULT = mysqli_fetch_array($totalsalesQUERY);
 
if($getcardinfo["format"] == "sealed") {
    if( $getcardinfo["cardname"] == $getcardinfo["mana_cost"]) {
    echo $getcardinfo["cardname"]." - ".$getcardinfo["edition"]." ";
    } else {
    echo $getcardinfo["cardname"]." (". $getcardinfo["mana_cost"].") - ".$getcardinfo["edition"]." ";
    }
} else {
echo $getcardinfo["cardname"]." - ".$getcardinfo["edition"]." ";
}
 
echo "<div style='float:right; background-color:#FFFFFF; z-index:9; display:flex; align-items:center; gap:6px;'>"
    . $effectsHeaderHtml
/
home
/
mtgscgte
/
public_html
/
editmysinglecard.php
$effectsHeaderHtml = count($_eff)
  ? "<span class='header-effects' style='display:inline-flex;align-items:center;gap:6px;margin-right:10px;'>".implode('', $_eff)."</span>"
  : "";
 
// check if non-foil or foil exists
  if($getcardinfo["nonfoil"] == 1) {$checknonfoil = TRUE;} else {$checknonfoil = FALSE; }
  if($getcardinfo["foil"] == 1) {$checkfoil = TRUE;} else {$checkfoil = FALSE;}
 
   if(mysqli_num_rows($getcardinfoQUERY) == 0) { redirect_to(App::url());}
 
   // Rarity & Edition Image
        if($getcardinfo['rarity'] == "C") { $rarity = "common"; } elseif($getcardinfo['rarity'] == "U") { $rarity = "uncommon"; } elseif($getcardinfo['rarity'] == "R") { $rarity = "rare"; } elseif($getcardinfo['rarity'] == "M") { $rarity = "mythic"; } // implementieren von Filter für R, UC, C, M
 
        $editioncimg2 = strtolower($getcardinfo['editionc']);
 
        $rarityimg = strtoupper(substr($getcardinfo['rarity'], 0, 1));
        $editioncimg = strtoupper($getcardinfo['editionc']);
 
        if(!in_array($editioncimg2, $setsWithImages)) {
        $editionicon = '<a href="https://www.mtgstand.com/'.preg_replace("/[^a-zA-Z0-9-]/", "", str_replace(" ","-",$getcardinfo["edition"])).'-set-singles-'.strtoupper($editioncimg2).'-worldwide-0" style=""><i class="ss ss-'.$editioncimg2.' ss-'.$rarity.' ss-grad ss-3x"></i></a>'; } else {
 
        $editionicon =  '<a href="https://www.mtgstand.com/'.preg_replace("/[^a-zA-Z0-9-]/", "", str_replace(" ","-",$getcardinfo["edition"])).'-set-singles-'.strtoupper($editioncimg2).'-worldwide-0"><img src="images/sets/'.$editioncimg.'/'.$rarityimg.'.svg" style="max-height: 50px; min-width:44px; max-width:100px;"></a>'; }
 
    // GET TOTAL SALES OF THAT CARD
   $totalsalesSQL = "SELECT COUNT(id) AS totalsales FROM shoppingcart WHERE cardscryfallid = '".$sid."' AND send = 1";
   $totalsalesQUERY = mysqli_query($conn, $totalsalesSQL);
   $totalsalesRESULT = mysqli_fetch_array($totalsalesQUERY);
 
if($getcardinfo["format"] == "sealed") {
    if( $getcardinfo["cardname"] == $getcardinfo["mana_cost"]) {
    echo $getcardinfo["cardname"]." - ".$getcardinfo["edition"]." ";
    } else {
    echo $getcardinfo["cardname"]." (". $getcardinfo["mana_cost"].") - ".$getcardinfo["edition"]." ";
    }
} else {
echo $getcardinfo["cardname"]." - ".$getcardinfo["edition"]." ";
}
 
echo "<div style='float:right; background-color:#FFFFFF; z-index:9; display:flex; align-items:center; gap:6px;'>"
    . $effectsHeaderHtml

Environment & details:

Key Value
sid 696d1e25-5c25-4522-b085-90d49fe23a18
empty
empty
Key Value
easylogin_session 31fgrbt4i31jmsuq6v2pca3hm7
Key Value
_token f06ac45a941e37eae071de4b08515df4
Key Value
PATH /usr/local/bin:/bin:/usr/bin
DOCUMENT_ROOT /home/mtgscgte/public_html
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_COOKIE easylogin_session=31fgrbt4i31jmsuq6v2pca3hm7
HTTP_HOST www.mtgstand.com
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
REMOTE_ADDR 216.73.217.65
REMOTE_PORT 9106
SERVER_ADDR 10.123.1.8
SERVER_NAME www.mtgstand.com
SERVER_ADMIN mtgscgte@mtgstand.com
SERVER_PORT 443
REQUEST_SCHEME https
REQUEST_URI /The-Rack-Time-Spiral-Timeshifted-sid-696d1e25-5c25-4522-b085-90d49fe23a18
REDIRECT_URL /The-Rack-Time-Spiral-Timeshifted-sid-696d1e25-5c25-4522-b085-90d49fe23a18
REDIRECT_REQUEST_METHOD GET
HTTPS on
CRAWLER_USLEEP 1000
CRAWLER_LOAD_LIMIT 5.2
noconntimeout 1
REDIRECT_STATUS 200
X_SPDY HTTP2
SSL_PROTOCOL TLSv1.3
SSL_CIPHER TLS_AES_256_GCM_SHA384
SSL_CIPHER_USEKEYSIZE 256
SSL_CIPHER_ALGKEYSIZE 256
SCRIPT_FILENAME /home/mtgscgte/public_html/editmysinglecard.php
QUERY_STRING sid=696d1e25-5c25-4522-b085-90d49fe23a18
SCRIPT_URI https://www.mtgstand.com/The-Rack-Time-Spiral-Timeshifted-sid-696d1e25-5c25-4522-b085-90d49fe23a18
SCRIPT_URL /The-Rack-Time-Spiral-Timeshifted-sid-696d1e25-5c25-4522-b085-90d49fe23a18
SCRIPT_NAME /editmysinglecard.php
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE LiteSpeed
REQUEST_METHOD GET
X-LSCACHE on,crawler
PHP_SELF /editmysinglecard.php
REQUEST_TIME_FLOAT 1794611241.1643
REQUEST_TIME 1794611241
Key Value
PATH /usr/local/bin:/bin:/usr/bin
DOCUMENT_ROOT /home/mtgscgte/public_html
0. Whoops\Handler\PrettyPageHandler