#1 June 18, 2019 9:39am

mke18
Member
Registered: April 18, 2018
Posts: 28

CSS Not Loading

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

#2 June 18, 2019 9:42am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 978

Re: CSS Not Loading

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

#3 June 18, 2019 9:46am

mke18
Member
Registered: April 18, 2018
Posts: 28

Re: CSS Not Loading

Here's my screenshot https://pasteboard.co/IjZQH9i.png

Last edited by mke18 (June 18, 2019 9:49am)

Offline

#4 June 18, 2019 4:23pm

mke18
Member
Registered: April 18, 2018
Posts: 28

Re: CSS Not Loading

Does anyone know what would cause the header or footer not loading?

Offline

#5 June 19, 2019 12:57pm

mke18
Member
Registered: April 18, 2018
Posts: 28

Re: CSS Not Loading

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

#6 July 24, 2019 8:47pm

kado_gratis
Member
Registered: July 10, 2019
Posts: 4

Re: CSS Not Loading

mke18 wrote:

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

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.