Home Page Not Loading
Below is the file where the error is being thrown. D:\ENT\mbimedia\concrete\src\Editor\LinkAbstractor.php I'm not sure why it's working on all other pages but not the home.
Below is where the issue is, PLEASE HELP!
I would love it if someone can take a cursory look at the site to see if it's a simple fix or not. The site URL ishttp://www.mbimedia.com. As you'll see the home page doesn't seem to work anymore. All the sub-pages however do, Example "www.mbimedia.com/index.php/projects".
Below is the last entry from the Reports Log.
Jan 22, 2020, 10:49:10 PM Exceptions rgarcia Exception Occurred: D:\ENT\mbimedia\concrete\src\Editor\LinkAbstractor.php:181 Call to a member function getURL() on null (1)
It looks to me link you have two things going on.
I am not sure if you have closed the
$text = preg_replace_callback(
I would var_dump($f) and then look at at what this is pulling up.
looking at this page it looks like you are missing a /
$f = \File::getByID(1);
I would try testing this on one file first to make sure your if statment is pulling in somehting, so go find an file and add its id into you code, in this case the id was 32
$f = \File::getByID(32);
then echo out the result "echo $f->getURL();"
Simplify the code then build it up step by step will help you see the errors.