╔══════════════════════════════════════════════════════════════╗ ║ SCAN DATA RESET SCRIPT - LIVE SYSTEM ║ ╚══════════════════════════════════════════════════════════════╝  Current State:  • Scan log entries (ticket_validations): 6568 • Total ticket codes: 434 • Tickets with scan history: 253 This script will:  1. DELETE all 6568 scan log entries 2. RESET all 253 scanned tickets to 'not scanned' - first_scanned_at → NULL - last_scanned_at → NULL - scan_count → 0 - status → 'active' Undefined variable $argv (500 Internal Server Error)

Symfony Exception

ErrorException

HTTP 500 Internal Server Error

Undefined variable $argv

Exception

ErrorException

Show exception properties
ErrorException {#1930
  #severity: E_WARNING
}
  1. echo "     - scan_count → 0\n";
  2. echo "     - status → 'active'\n";
  3. echo "\n";
  4. // Check for --force flag
  5. $force in_array('--force'$argv);
  6. if (!$force) {
  7.     echo bold(red("⚠️  WARNING: This is a DESTRUCTIVE operation!\n"));
  8.     echo "\n";
  9.     echo "Type " green("RESET") . " to confirm: ";
  1.      * @return callable
  2.      */
  3.     protected function forwardsTo($method)
  4.     {
  5.         return fn (...$arguments) => static::$app
  6.             $this->{$method}(...$arguments)
  7.             : false;
  8.     }
  9.     /**
  10.      * Determine if the error level is a deprecation.
HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}(2, 'Undefined variable $argv', '/home/globalgala/public_html/2026_backend_dev/scripts/reset-scan-data.php', 55) in /home/globalgala/public_html/2026_backend_dev/scripts/reset-scan-data.php (line 55)
  1. echo "     - scan_count → 0\n";
  2. echo "     - status → 'active'\n";
  3. echo "\n";
  4. // Check for --force flag
  5. $force in_array('--force'$argv);
  6. if (!$force) {
  7.     echo bold(red("⚠️  WARNING: This is a DESTRUCTIVE operation!\n"));
  8.     echo "\n";
  9.     echo "Type " green("RESET") . " to confirm: ";

Stack Trace

ErrorException
ErrorException:
Undefined variable $argv

  at /home/globalgala/public_html/2026_backend_dev/scripts/reset-scan-data.php:55
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'Undefined variable $argv', '/home/globalgala/public_html/2026_backend_dev/scripts/reset-scan-data.php', 55)
     (/home/globalgala/public_html/2026_backend_dev/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:270)
  at Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}(2, 'Undefined variable $argv', '/home/globalgala/public_html/2026_backend_dev/scripts/reset-scan-data.php', 55)
     (/home/globalgala/public_html/2026_backend_dev/scripts/reset-scan-data.php:55)