Jump to content

sammuke.ee - broke. Error in Controller.php


ezh

Recommended Posts

https://www.sammuke.ee/

Parse error: syntax error, unexpected '$html' (T_VARIABLE), expecting function (T_FUNCTION) or const (T_CONST) in ...../...../..../public_html/classes/controller/Controller.php on line 516

I compared the file with new install and it is 100% same. Exchanged to from distribution. Same problem.

What might be the issue?

Hacked?

image.png.5c6d1213c17f96d7fb9e0bf6f99738ce.png

Edited by ezh (see edit history)
Link to comment
Share on other sites

You don't tell the Prestashop version so I cannot compare. But anyone who knows a little bit about PHP can understand that there is something wrong in the picture that you show.

That line 516 used to contain something like:

    protected function smartyOutputContent($content)

And you replaced it with something that doesn't make sense at all.

I don't know what "distribution" you use but Prestashop doesn't distribute such code.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...