You are not logged in.
Pages: 1
I have installed Bigtreecms locally and everything seems to work but the site doesn't load CSS or JS files. When I check the code with Inspect Element I find that the include line of code
<? include "partials/header.php" ?>
on home template appear as a comment, instead of including the partials but it appear this way:
<!--? include "partials/header.php" ?-->
.
I did turn short_tags on within php.ini and it's now working still. Could someone help me on how to fix this problem?
Offline
I can't say I've ever seen an include showing up as a commented out statement before. If short tags aren't running properly I would check to see if converting the code to use full opening tags fixes it.
Offline
Here's my screenshot https://pasteboard.co/IjZQH9i.png
Last edited by mke18 (June 18, 2019 9:49am)
Offline
Does anyone know what would cause the header or footer not loading?
Offline
Tim,
After using the classic PHP tag like: <?php .... ?>, this is what I see:
Warning: Invalid argument supplied for foreach() in /var/www/html/bigtree/templates/layouts/partials/header.php on line 77
Any ideas on how to fix this?
Last edited by mke18 (June 19, 2019 1:08pm)
Offline
I have installed Bigtreecms locally and everything seems to work but the site doesn't load CSS or JS files. When I check the code with Inspect Element I find that the include line of code
<? include "partials/header.php" ?>
on home template appear as a comment, instead of including the partials but it appear this way:
<!--? include "partials/header.php" ?-->
.
I did turn short_tags on within php.ini and it's now working still. Could someone help me on how to fix this problem?
How to add ";" to end, become :
<? include "include "partials/header.php"; ?>
Offline
Pages: 1