Announcement

Collapse
No announcement yet.

PHP Parse error: syntax error, unexpected 'endwhile' (T_ENDWHILE)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP Parse error: syntax error, unexpected 'endwhile' (T_ENDWHILE)

    Hello,
    I have copied a WordPress website from one server with cPanel and Linux to another server with Plesk and Linux.
    After that I'm facing the PHP Parse error
    Code:
    PHP Parse error: syntax error, unexpected T_ENDWHILE in /home/fsc1/domains/whs.com/public_html/wp-content/themes/Games/index.php on line 36
    Any idea of what might be the problem, different PHP settings or something?

  • #2
    <? is disabled by default. Did you enable this on your new server?

    In php.ini:

    short_open_tag=On
    Then restart apache.

    OR

    Change it to <?php

    Comment


    • #3


      Don't mix regular and extended syntax, especially when you've got horrible indenting. Note how the code looks WITHOUT all the snaptube vidmate repetitive/pointless php open/close tags:
      Last edited by winkibili; 15-08-21, 10:40 AM.

      Comment

      Working...
      X