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".


Tags:

smf, forums, displaying, images, styles, install, http, excerpt, html, produces, rel, quot, stylesheet, text, css, href, themes, default, index, fin, javascript, src, scripts, js, img, upshrink, png, alt, expand, header, display, smflogo, forum, div, repair, https, wiki, simplemachines, org, repair_settings, php, download_the_repair_settings_tool, ll, output, mysql, db, domain, server, urls, paths, installation, url, recommended, directory, var, www, vhosts, httpdocs, sources, attachment, attachments, avatars, custom, smileys,

Latest Articles

  • How high can a Xeon CPU get?
  • bash fix PATH environment variable "command not found" solution
  • Ubuntu Linux Mint Debian Redhat Youtube Cannot Play HD or 4K videos, dropped frames or high CPU usage with Nvidia or AMD Driver
  • hostapd example configuration for high speed AC on 5GHz using WPA2
  • hostapd how to enable and use WPS to connect wireless devices like printers
  • Dell Server Workstation iDRAC Dead after Firmware Update Solution R720, R320, R730
  • Cloned VM/Server/Computer in Linux won't boot and goes to initramfs busybox Solution
  • How To Add Windows 7 8 10 11 to GRUB Boot List Dual Booting
  • How to configure OpenDKIM on Linux with Postfix and setup bind zonefile
  • Debian Ubuntu 10/11/12 Linux how to get tftpd-hpa server setup tutorial
  • efibootmgr: option requires an argument -- 'd' efibootmgr version 15 grub-install.real: error: efibootmgr failed to register the boot entry: Operation not permitted.
  • Apache Error Won't start SSL Cert Issue Solution Unable to configure verify locations for client authentication SSL Library Error: 151441510 error:0906D066:PEM routines:PEM_read_bio:bad end line SSL Library Error: 185090057 error:0B084009:x509 certif
  • Linux Debian Mint Ubuntu Bridge br0 gets random IP
  • redis requirements
  • How to kill a docker swarm
  • docker swarm silly issues
  • isc-dhcp-server dhcpd how to get longer lease
  • nvidia cannot resume from sleep Comm: nvidia-sleep.sh Tainted: Linux Ubuntu Mint Debian
  • zfs and LUKS how to recover in Linux
  • [error] (28)No space left on device: Cannot create SSLMutex Apache Solution Linux CentOS Ubuntu Debian Mint