0

When I install new Joomla and my component are in Joomla 2.5x and I am updating Joomla 3x version but in front-side I get an error:

Ex:syntax error, unexpected end of file

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
  • Please take the tour stackoverflow.com/tour Can you provide more information? Can you, for example, identify and post the file which triggers the syntax error? – Yunnosch Apr 17 '17 at 09:48
  • you'll find the error in the apache error log most likely, once you identify the extension responsible check the owner's website and update it (manually or restore a backup) – Riccardo Zorn Apr 18 '17 at 08:43
  • I also suggest you send the exact error, So that you will get the exact fix for that issue . Check with the below link, might be you will get the answer for your issue https://docs.joomla.org/Joomla_2.5_to_3.x_Step_by_Step_Migration – Kaif Khan May 09 '17 at 16:37
  • 1
    Still you did not post the exact error, Con google chrome console, you can find the file name and the some more details on that issue. Please post that one. – Kaif Khan May 15 '17 at 12:57

1 Answers1

0

As i have investigated with that above error you have posted, they might be a two reason for that, either the component not install correct or In the code you have missed the curly prases at the end of the php file.

So there is two steps which overcome this problem,

    1) Reinstall the component which solve this issue.
    2) Find the exact file and found that might be syntactically not correct (i.e, <?php} {?> and <? ). 
    Please avoid <? and use <?php and keep spaces at curly braces (i.e, <? } ?> instead of <?php } ?>
go to php.ini then find short_open_tag= Off set to short_open_tag= On

If you want further more, please check this links ComponentReinstall Link2

Thanks & Regards, Kaif

Community
  • 1
  • 1
Kaif Khan
  • 219
  • 6
  • 15