• Hello,
    I was trying to instal existing website on virtual machine on my computer. Machine I use is VirtualBox and server is XAMPP. When I installed clean version of WordPress everything went ok, when I attached database it was no problem too. Just when I exported all files to my main folder I received this error:
    Parse error: syntax error, unexpected ‘endwhile’ (T_ENDWHILE) in C:\xampp\htdocs\offroad\wp-content\themes\off_road\functions\theme.php on line 321

    The file theme.php you can find here

    Site work without problem on it’s original server. Problem is that before I started to administrate it nobody was updating wordpress and it work on 3.3.1 version. My goal was to try updating first on virtual machine because I expect problems when doing it but I can not make it work on machine. I will be grateful for any help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • there are some php shorttags like in line 221 (and possibly some more):
    <? endif; ?>

    – not all servers understand them…

    change them to full php tags; like:

    <?php endif; ?>

    Thread Starter EleonoraM

    (@eleonoram)

    Thank you very much! That fixed my problem! I couldn’t fix it without your help! Thank you a lot for the time you spent to look at my issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unexpected 'endwhile' (T_ENDWHILE)’ is closed to new replies.