syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF) (500 Whoops, looks like something went wrong.)

syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF)

Exception

ParseError

  1.         let pageNum = new URL(window.location.href).searchParams.get('page');
  2.         if(pageNum && pageNum > 1) {
  3.             document.querySelector('.portfolio_listBlock').scrollIntoView({behavior: "smooth"})
  4.         }
  5.     });
  6. </script>
  1. $products_query tep_db_query("select pd.products_id, pd.products_name, pc.categories_id from products_description pd left join products_to_categories pc on pd.products_id = pc.products_id where pc.categories_id = '382' and pd.language_id = " $_SESSION['languages_id']);
  2. //get array with countries
  3. $countries_for_select = include(DIR_WS_MODULES '/countryArray.php');
  4. require(DIR_WS_TEMPLATES TEMPLATE_NAME '/' TEMPLATENAME_MAIN_PAGE);
  5. require(DIR_WS_INCLUDES 'application_bottom.php');
  6. //functions

Stack Trace

ParseError
ParseError:
syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF)

  at /home/solomono/web/hetzner.solomono.net/templates/content/new_portfolio.tpl.php:473
  at require()
     (/home/solomono/web/hetzner.solomono.net/new_portfolio.php:158)