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:











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

  • Linux Ubuntu Cannot Print Large Images
  • Cannot Print PDF Solution and Howto Resize
  • Linux Console Login Screen TTY Change Message
  • Apache Cannot Start Listening Already on 0.0.0.0
  • MySQL Bash Query to pipe input directly without using heredoc trick
  • CentOS 6 and 7 / RHEL Persistent DHCP Solution
  • Debian Ubuntu Mint rc-local service startup error solution rc-local.service: Failed at step EXEC spawning /etc/rc.local: Exec format error
  • MySQL Cheatsheet Guide and Tutorial
  • bash script kill whois or other command that is running for too long
  • Linux tftp listens on all interfaces and IPs by DEFAULT Security Risk Hole Solution
  • python import docx error
  • Cisco Unified Communications Manager Express Cheatsheet CUCME CME
  • Linux Ubuntu Debian Missing privilege separation directory: /var/run/sshd
  • bash how to count the number of columns or words in a line
  • bash if statement how to test program output without assigning to variable
  • RTNETLINK answers: Network is unreachable
  • Centos 7 how to save iptables rules like Centos 6
  • nfs tuning maximum amount of connections
  • qemu-kvm error "Could not initialize SDL(No available video device) - exiting"
  • Centos 7 tftpd will not work with selinux enabled