Drupal 8 themes (on Linode) not displaying correctly (Bartik okay)

Events happening in the community are now at Drupal community events on www.drupal.org.
chaslinux's picture

I recently set up a new Drupal 8 site on Linode. The default Bartik theme looked fine, but other themes do not display correctly, an in some cases cause issues like not even being able to log-in when I append ?q=user.

On the same Linode I have an installation of Drupal 7 (for another site) and things look fine.

Comments

I would double check the

deviantintegral's picture

I would double check the status report to see if there's any warnings or errors, especially about file permissions. Also, take a look at the network inspector on a page that isn't working - 404s for aggregated CSS or JS would indicate a permissions issue on the files directory.

And since you can't log in,

dalin's picture

And since you can't log in, you could try
drush core-status
to get the status report on the commandline.

--


Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his

No warnings

chaslinux's picture

When I ran the network inspector almost everything came up 200 except for some jpg and svg files that come up 304 (cached). (I've reinstalled since I originally posted this). Running drush core-status shows a successful bootstrap for the site.

The steps I followed to install Drupal are at:
https://www.linode.com/docs/websites/cms/install-and-configure-drupal-8

Initially I installed an old version of Drupal 8, but I ditched that when the theme didn't work and grabbed the latest Drupal. I'm wondering if part of the problem might be because I install Ubuntu server 18.04 and that it doesn't seem to have php5-gd so I installed php-gd?

After the most recent attempt I also changed the chown -R www-data public_html/ to chown -R myusername:www-data public_html/ so the group is www-data and the owner is myusername (is that bad practice)?

I've checked the log folder and the error.log is blank. So you can see exactly what's happening, the site is: http://www.comprec.org/

Web site looks normal

kbahey's picture

I am loading the site in Firefox and it looks normal.

You can see the screen captures here and here.

Drupal performance tuning, development, customization and consulting: 2bits.com, Inc..
Personal blog: Baheyeldin.com.

FYI PHP 5 is nearly out of

deviantintegral's picture

FYI PHP 5 is nearly out of support for D8, and you should probably go to PHP 7.2 or 7.3. I think 18.04 comes with PHP 7.1 so you're probably OK, but worth double checking: https://www.drupal.org/docs/8/system-requirements/php-requirements

Your site looks fine now, I guess you fixed it?

Menus are off

chaslinux's picture

Thanks, it does look slightly better. I switched the theme to another MAYO, but notice in Khalid's screen shots how the Home/Contact/Home menus at the top don't look positioned correctly.

Switching between different themes things just look off with respect to placement of things, and in the case of the MAYO theme it's suppose to look more like:

here

Thanks everyone (*resolved*)

chaslinux's picture

I believe everything is working correctly now. I think I did have some permission issues when I first looked at this awhile back. The problem now just seems to be that when D8 themes are first added all the blocks are in different spots. When I added a theme to D7 it just generally seemed to work and look like the theme. In D8 it seems that most themes need a bit more work to get looking more like the theme in question.

Thanks to everyone!

Waterloo Region Drupal Users Group

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: