I have Laravel forge set up with Bitbucket.
I pushed some code to bitbucket and it dumped an error saying that there was an problem with fetching stuff from bitbucket. So I opened up my website to see if it would give any errors.
The website wouldn't load properly and it turned out that one of the files that had a name of Display.php
had been renamed to display.php
.
How is that possible to have happened? This file is outside the public
directory.
I checked to logs to see if anyone else has connected to the server (thinking it got hacked), but nothing suspicious in the logs.
Has anyone ever had a similar problem?
Sorted out.
The problem was that, initially it was named display.php
(a typo) and it worked fine, until I installed Facebook SDK via composer.
I have a feeling it's something to do with types of namespacing
(PSRs).
If I remove Facebook SDK, then display.php
works fine, otherwise it throws an error.