Closed nakohlyth closed 4 years ago
~~by the way the form shows up because I did src="hashover/comments.php"></script>
instead of
src="/hashover/comments.php"></script>
which is advised in the docs as the blog's root is in a sub-directory~~
so it's working if I put the hashover directory to the root directory of website. I had to change the use instruction to :
<script type="text/javascript" src="../hashover/comments.php"></script>
There is one other instance of this function, at line 78 in hashover/backend/classes/sessionlogin.php
. It stopped me from rendering the comments and browser dev tool showed a json parse error (since the json contained the unfortunate php error which broke the syntax). I am using PHP 7.4.4
I added error_reporting(0);
before those lines as a workaround and it seems to be fine. But maybe this should be fixed for the long term, since this is deprecated.
Thanks for reporting this issue, I have not had much time to test HashOver in PHP 7.4. I am now doing that testing and will fix any issues I find. This issue should now be fixed.
latest master with php7.4.4 I had to comment this to bypass the error
in
And now it's showing the form but everything have a wrong path css doesn't work. also happening in moderation, I can login but no path for templates is wrong and link to other sections doesn't work either.
my blog is in a sub-directory (also behind a reverse proxy if this is of any use)
the correct path which should be : domain.tld/blog/hashover/ is replaced by domain.tld/hashover/