Thats because you are including 2 other files too in your php code so the resulting line would be different:
PHP Code: 
include( "../config.php" );
    include( 
"product.php" ); 
Edit:
Ok ,just had a look at your code, The error is in line number 102
PHP Code: 
        "../upgrade/"$nextButton );
        
$upgrade = new Upgrade( ); 
Remove that line 101 or fix it, thats incorrect