SMF Forums / Simple Machines Forums Not Displaying Images Theme or Styles Properly using 127.0.0.1

This is one thing that has me wondering about SMF.  It is apparently a known issue but in the latest version and new install nothing looked right because it was using http://127.0.0.1 to find everything!  How on earth would it ever do this or think it is normal?

Excerpt of crazy html code it produces that causes the issue:


    <link rel="stylesheet" type="text/css" href="http://127.0.0.1/smf/Themes/default/css/index.css?fin20" />
    <script type="text/javascript" src="http://127.0.0.1/smf/Themes/default/scripts/script.js?fin20"></script>
    <script type="text/javascript" src="http://127.0.0.1/smf/Themes/default/scripts/theme.js?fin20"></script>

        <img id="upshrink" src="http://127.0.0.1/smf/Themes/default/images/upshrink.png" alt="*" title="Shrink or expand the header." style="display: none;" />
            <img id="smflogo" src="http://127.0.0.1/smf/Themes/default/images/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />
        </div>



To repair it you need to get a tool from the SMF site: https://wiki.simplemachines.org/smf/Repair_settings.php#Download_the_Repair_Settings_Tool

 

Get the tool run it and you'll see some output like this:

Almost always aside from MySQL DB you should change 127.0.0.1 to the domain name of your server.



 URLs
These are the paths and URLs to your SMF installation, and can cause big problems when they are wrong. Sorry, there are a lot of them.
Forum URL:    
Recommended value: "https://forums.domain.com".
Forum Directory:    
Recommended value: "/var/www/vhosts/domain.com/httpdocs".
Sources Directory:    
Recommended value: "/var/www/vhosts/domain.com/httpdocs/Sources".
Attachment Directory:    
Recommended value: "/var/www/vhosts/domain.com/httpdocs/attachments".
Avatar URL:    
Recommended value: "https://forums.domain.com/avatars".
Avatar Directory:    
Recommended value: "/var/www/vhosts/domain.com/httpdocs/avatars".
Custom Avatar URL:
Value not found!    
Custom Avatar Directory:
Value not found!    
Smileys URL:    
Recommended value: "https://forums.domain.com/Smileys".
Smileys Directory:    
Recommended value: "/var/www/vhosts/domain.com/httpdocs/Smileys".






Paths & URLs For Themes
These are the paths and URLs to your SMF themes.
SMF Default Theme - Curve URL:    
Recommended value: "https://forums.domain.com/Themes/default".
SMF Default Theme - Curve Images URL:    
Recommended value: "https://forums.domain.com/Themes/default/images".
SMF Default Theme - Curve Directory:    
Recommended value: "/var/www/vhosts/domain.com/httpdocs/Themes/default".
Core Theme URL:    
Recommended value: "https://forums.domain.com/Themes/core".
Core Theme Images URL:    
Recommended value: "https://forums.domain.com/Themes/core/images".
Core Theme Directory:    
Recommended value: "/var/www/vhosts/domain.com/httpdocs/Themes/core".

Latest Articles

  • Centos 7 - Convert Minimal to Graphical GUI GNOME or KDE Desktop
  • AMD Set Fan Speed and Other Powerplay Memory/CPU Timings with a Linux script
  • Ethereum Mining Claymore Nanopool Error
  • genisoimage errors with long filenames and deep directory structures
  • Linux Kernel USB Export Errors
  • How to download gajim 0.16.9 XMPP/Jabber client so you can use OMEMO encryption
  • HP DL385 G7 Linux BIOS Update Flash
  • hwloc-nox set CPU affinity in Linux
  • Firefox An error occurred during a connection to some-ip-or-domain. SSL peer reports incorrect Message Authentication Code. Error code: SSL_ERROR_BAD_MAC_ALERT Solution
  • Proxmox understanding the directory structure and why an NFS datastore appears to be missing files/isos
  • pandoc convert markdown to html
  • Proxmox error uploading an iso solution
  • Cannot install moodle
  • MySQL change for Antelope format to Barracuda error solution
  • vmkping -I vmk1 10.0.2.69 PING 10.0.2.69 (10.0.2.69): 56 data bytes sendto() failed (Host is down)
  • gvfs mount in /run/user cannot be accessed or displayed wrong permissions
  • VMWare vSphere 6.7 Errors Solution 503 Service Unavailable (Failed to connect to endpoint:
  • How To Enable Nested KVM so guests can virtualize with hardware extensions
  • vi error solution E166: Can't open linked file for writing
  • Supermicro IPMI / KVM / BMC Remote Console Screen Resizing Issue - Window Cut Off Solution