Support » Fixing WordPress » Themes will not display properly

  • Hi. No matter what I try, I can’t get a theme to show up on my WordPress site at https://dreamfusion.net/ It was working a few days ago, but when I checked it today from multiple sources and browsers nothing appears to be showing properly.

    I’ve tried multiple themes and they all just display as if there is no CSS at all. The wp-content/themes folder is there with the appropriate permissions set. I’ve disabled all plug-ins as well to test and that did not resolve it.

    I’ve also installed the Health Check plug-in and there are no errors in the Site Status and nothing weird is showing up in Debug Information either.

    I’m not sure where to go from here. Here’s a dump of the Site Status from Health Check.

    WordPress Version
    – 5.0.2
    Plugin Versions
    – Your site has 4 active plugins, and they are all up to date.
    Theme Versions
    – Your site has 1 installed theme, and it is up to date.
    PHP Version
    – 7.3.0-2+0~20181217092615.24+jessie~1.gbp54e52f
    Database Server version
    – 5.7.24-ndb-7.6.8
    JSON Extension
    – Your PHP install supports JSON.
    MySQL utf8mb4 support
    – Your MySQL version supports utf8mb4
    Communication with WordPress.org
    – WordPress.org is reachable from your server.
    REST API availability
    – The REST API is available.
    HTTPS status
    – You are accessing this website using HTTPS.
    Secure communication
    – Your WordPress install can communicate securely with other services.
    Scheduled events
    – No scheduled events have been missed.
    Background updates
    – No version control systems were detected.
    – Your installation of WordPress doesn’t require FTP credentials to perform updates.
    – All of your WordPress files are writable.
    Loopback request
    – The loopback request to your site completed successfully.

    Here’s a dump of debug from Health Check:

    ### WordPress ###

    Version: 5.0.2
    Language: en_US
    Permalink structure: /%year%/%monthnum%/%postname%/
    Is this site using HTTPS?: Yes
    Can anyone register on this site?: No
    Default comment status: open
    Is this a multisite?: No
    User Count: 1
    Communication with WordPress.org: WordPress.org is reachable
    Create loopback requests: The loopback request to your site completed successfully.

    ### Installation size ###

    Uploads Directory: 24.00 KB
    Themes Directory: 1.04 MB
    Plugins Directory: 1.31 MB
    Database size: 1.61 MB
    Whole WordPress Directory: 45.16 MB
    Total installation size: 46.77 MB

    ### Active Theme ###

    Name: Twenty Nineteen
    Version: 1.1
    Author: the WordPress team
    Author website: https://wordpress.org/
    Parent theme: Not a child theme
    Supported theme features: automatic-feed-links, title-tag, post-thumbnails, menus, html5, custom-logo, customize-selective-refresh-widgets, wp-block-styles, align-wide, editor-styles, editor-style, editor-font-sizes, editor-color-palette, responsive-embeds, widgets

    ### Must Use Plugins (1) ###

    Health Check Troubleshooting Mode: Version 1.5.0

    ### Active Plugins (4) ###

    Akismet Anti-Spam: Version 4.1 by Automattic
    Contact Form 7: Version 5.1.1 by Takayuki Miyoshi
    Flamingo: Version 1.9 by Takayuki Miyoshi
    Health Check & Troubleshooting: Version 1.2.3 by The WordPress.org community

    ### Media handling ###

    Active editor: WP_Image_Editor_GD
    Imagick Module Version: Imagick not available
    ImageMagick Version: Imagick not available
    GD Version: 2.2.5
    Ghostscript Version: Not available

    ### Server ###

    Server architecture: Linux 2.6.32-042stab132.1 x86_64
    PHP Version: 7.3.0-2+0~20181217092615.24+jessie~1.gbp54e52f (Supports 64bit values)
    PHP SAPI: fpm-fcgi
    PHP max input variables: 1000
    PHP time limit: 30
    PHP memory limit: 256M
    Max input time: 60
    Upload max filesize: 2M
    PHP post max size: 8M
    cURL Version: 7.38.0 OpenSSL/1.0.1t
    SUHOSIN installed: No
    Is the Imagick library available: No
    htaccess rules: Your htaccess file only contains core WordPress features

    ### Database ###

    Extension: mysqli
    Server version: 5.7.24-ndb-7.6.8
    Client version: mysqlnd 5.0.12-dev – 20150407 – $Id: 401a40ebd5e281cf22215acdc170723a1519aaa9 $
    Database prefix: wp_

    ### WordPress Constants ###

    ABSPATH: (I OMITTED THIS, but path is fine)
    WP_HOME: Undefined
    WP_SITEURL: Undefined
    WP_DEBUG: Disabled
    WP_MAX_MEMORY_LIMIT: 256M
    WP_DEBUG_DISPLAY: Enabled
    WP_DEBUG_LOG: Disabled
    SCRIPT_DEBUG: Disabled
    WP_CACHE: Disabled
    CONCATENATE_SCRIPTS: Undefined
    COMPRESS_SCRIPTS: Undefined
    COMPRESS_CSS: Undefined
    WP_LOCAL_DEV: Undefined

    ### Filesystem Permissions ###

    The main WordPress directory: Writable
    The wp-content directory: Writable
    The uploads directory: Writable
    The plugins directory: Writable
    The themes directory: Writable
    The Must Use Plugins directory: Writable

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Here’s a dump of permissions as well:

    wordpress root:
    -rw-r–r– 1 www-data www-data 418 Dec 21 15:33 index.php
    -rw-r–r– 1 www-data www-data 6878 Dec 21 15:33 wp-activate.php
    -rw-r–r– 1 www-data www-data 364 Dec 21 15:33 wp-blog-header.php
    -rw-r–r– 1 www-data www-data 1889 Dec 21 15:33 wp-comments-post.php
    -rw-r–r– 1 www-data www-data 2853 Dec 21 15:33 wp-config-sample.php
    -rw-r–r– 1 www-data www-data 3669 Dec 21 15:33 wp-cron.php
    -rw-r–r– 1 www-data www-data 2422 Dec 21 15:33 wp-links-opml.php
    -rw-r–r– 1 www-data www-data 3306 Dec 21 15:33 wp-load.php
    -rw-r–r– 1 www-data www-data 37296 Dec 21 15:33 wp-login.php
    -rw-r–r– 1 www-data www-data 8048 Dec 21 15:33 wp-mail.php
    -rw-r–r– 1 www-data www-data 17421 Dec 21 15:33 wp-settings.php
    -rw-r–r– 1 www-data www-data 30091 Dec 21 15:33 wp-signup.php
    -rw-r–r– 1 www-data www-data 4620 Dec 21 15:33 wp-trackback.php
    -rw-r–r– 1 www-data www-data 3065 Dec 21 15:33 xmlrpc.php
    drwxr-xr-x 9 www-data www-data 4096 Dec 21 15:34 wp-admin
    drwxr-xr-x 19 www-data www-data 12288 Dec 21 15:35 wp-includes
    -rw-rw-rw- 1 www-data www-data 3135 Dec 21 15:38 wp-config.php
    -rw-r–r– 1 www-data www-data 235 Dec 21 15:55 .htaccess
    -rw-r–r– 1 www-data www-data 7415 Dec 21 17:16 readme.html
    -rw-r–r– 1 www-data www-data 19935 Dec 21 17:16 license.txt
    drwxr-xr-x 104 root root 4096 Dec 27 14:40 ..
    drwxr-xr-x 5 www-data www-data 4096 Dec 27 15:02 .
    drwxr-xr-x 8 www-data www-data 4096 Dec 27 15:11 wp-content

    wp-content:
    drwxr-xr-x 4 www-data www-data 12288 Dec 21 15:23 languages
    drwxr-xr-x 3 www-data www-data 4096 Dec 21 15:39 uploads
    drwxr-xr-x 6 www-data www-data 4096 Dec 21 16:07 plugins
    drwxr-xr-x 2 www-data www-data 4096 Dec 27 14:22 upgrade
    drwxr-xr-x 3 www-data www-data 4096 Dec 27 14:23 themes
    drwxr-xr-x 2 www-data www-data 4096 Dec 27 14:42 mu-plugins
    drwxr-xr-x 5 www-data www-data 4096 Dec 27 15:02 ..
    drwxr-xr-x 8 www-data www-data 4096 Dec 27 15:11 .

    It is getting 404s for all the CSS and scripts.

    Hi there!

    I’ve tried multiple themes and they all just display as if there is no CSS at all.

    I haven’t had a chance to really review but I see that all the CSS and JavaScript resources are 404ing and cannot be accessed.

    For example, https://dreamfusion.net/wp-content/plugins/contact-form-7/includes/css/styles.css, is not available and the file cannot be found.

    Here’s a screenshot of all the other resources that fail to load as they cannot be found: https://cld.wthms.co/PzChGZ

    These folders and files are not publicly accessible and will not load which is why your site appears without styling.

    I just went back and reset all folders to 750 and files to 644. Here’s everything in my wp-content/theme/twentynineteen. I did verify apache2 is running as www-data user as well.

    What in the world am I missing here?

    -rw-r-----  1 www-data www-data 151698 Dec 27 14:22 package-lock.json
    -rw-r-----  1 www-data www-data    840 Dec 27 14:22 404.php
    -rw-r-----  1 www-data www-data 111243 Dec 27 14:22 style-rtl.css
    -rw-r-----  1 www-data www-data   3969 Dec 27 14:22 print.css
    drwxr-x---  6 www-data www-data   4096 Dec 27 14:22 template-parts
    -rw-r-----  1 www-data www-data   3040 Dec 27 14:22 style-editor-customizer.css
    -rw-r-----  1 www-data www-data   1531 Dec 27 14:22 package.json
    -rw-r-----  1 www-data www-data    219 Dec 27 14:22 postcss.config.js
    drwxr-x---  2 www-data www-data   4096 Dec 27 14:22 fonts
    -rw-r-----  1 www-data www-data   1229 Dec 27 14:22 archive.php
    -rw-r-----  1 www-data www-data   1785 Dec 27 14:22 single.php
    drwxr-x--- 13 www-data www-data   4096 Dec 27 14:22 sass
    -rw-r-----  1 www-data www-data   1060 Dec 27 14:22 index.php
    -rw-r-----  1 www-data www-data   3988 Dec 27 14:22 comments.php
    -rw-r-----  1 www-data www-data  12840 Dec 27 14:22 style-editor.scss
    -rw-r-----  1 www-data www-data    342 Dec 27 14:22 style-editor-customizer.scss
    -rw-r-----  1 www-data www-data    765 Dec 27 14:22 page.php
    -rw-r-----  1 www-data www-data  25321 Dec 27 14:22 style-editor.css
    drwxr-x---  2 www-data www-data   4096 Dec 27 14:22 js
    -rw-r-----  1 www-data www-data   1836 Dec 27 14:22 header.php
    -rw-r-----  1 www-data www-data   2181 Dec 27 14:22 style.scss
    -rw-r-----  1 www-data www-data  15717 Dec 27 14:22 style.css.map
    -rw-r-----  1 www-data www-data   1344 Dec 27 14:22 search.php
    -rw-r-----  1 www-data www-data 175535 Dec 27 14:22 screenshot.png
    -rw-r-----  1 www-data www-data   1405 Dec 27 14:22 readme.txt
    -rw-r-----  1 www-data www-data   3585 Dec 27 14:22 print.scss
    -rw-r-----  1 www-data www-data   2914 Dec 27 14:22 image.php
    -rw-r-----  1 www-data www-data  10035 Dec 27 14:22 functions.php
    drwxr-x---  2 www-data www-data   4096 Dec 27 14:22 classes
    drwxr-x---  2 www-data www-data   4096 Dec 27 14:22 inc
    -rw-r-----  1 www-data www-data   1608 Dec 27 14:22 footer.php
    drwxr-x---  8 www-data www-data   4096 Dec 27 14:22 .
    drwxr-x---  3 www-data www-data   4096 Dec 27 14:23 ..
    -rw-r-----  1 www-data www-data 111444 Dec 27 15:54 style.css
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Themes will not display properly’ is closed to new replies.