News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Forum Not Appearing after changing DNS

Started by tonywells82, January 19, 2025, 02:30:33 PM

Previous topic - Next topic

tonywells82

Quote from: Aleksi "Lex" Kilpinen on January 24, 2025, 12:31:42 AMPlease describe exactly what did you actually do when the issues began.

I am confused, because you say you changed DNS, implying that the actual server ( and IP address ) remained the same, and all that changed was domain records - which means nothing should have broken, and your domain should give consistent replies to DNS queries, while your files should have remained on the same server with the same IP address and configuration as before.

But if I run an nslookup on tseatc.com I get an A record of 84.32.84.21,
if I run an nslookup for www.tseatc.com I get 84.32.84.66,
if I look at who-hosts-this.com for tseatc.com I get 147.79.120.187
and for www.tseatc.com 92.112.198.206
If I make a domain whois lookup, I find 2 different A records 191.96.144.196 and 191.96.144.49 ...

So, which is correct? Or do all of those IP addresses actually hold all your files?
Or, did something else change as well?

My website used to be on tahanan.net (which is a Filipino run host because I used to live in the Philippines before until I moved back here to the USA in 2007). I just kept using their service because of 'convenience' but now I've had it will their lousy service and steep prices.

So, I recently changed to hostinger.com. I noticed that that previous service had me change the DNS of tseatc.com to its own host (because they made it the cpanel for me to host several of my other websites on). But, since I changed to hostinger.. hostinger told me I should change tseatc.com to their DNS (and Nameserver) now - so it can work. That's what I did. Now everything is on hostinger and all works ok except for the Simple Machines Forum.

I just need to fix this error I'm getting: Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/u725526139/domains/tseatc.com/public_html/smf/Sources/Subs.php on line 3794

Sir Osis of Liver

Quote from: Sir Osis of Liver on January 24, 2025, 11:51:56 AMI'm wondering which SMF version was running before the move, and whether upgrade was attempted.

It's also possible the nameserver update wasn't done correctly, and your forum may still be linking to the old server.  Easiest way to check that is to rename agreement.txt > agreement.sav on new server and see if direct link still works.
When in Emor, do as the Snamors.
                              - D. Lister

Sir Osis of Liver

Just checked, if you're running SMF version earlier than 2.0.19 you'll get the Subs.php error in php 8.2.  You'll need to upload a clean set of 2.0.19 files, or upgrade to 2.1.4, or drop your php version to 7.4.
When in Emor, do as the Snamors.
                              - D. Lister

tonywells82

Quote from: Sir Osis of Liver on January 25, 2025, 10:28:00 PM
Quote from: Sir Osis of Liver on January 24, 2025, 11:51:56 AMI'm wondering which SMF version was running before the move, and whether upgrade was attempted.

It's also possible the nameserver update wasn't done correctly, and your forum may still be linking to the old server.  Easiest way to check that is to rename agreement.txt > agreement.sav on new server and see if direct link still works.


I did rename that. See my error now:

Warning: require_once(/home/tseatcc/public_html/smf/Sources/QueryString.php): Failed to open stream: No such file or directory in /home/u725526139/domains/tseatc.com/public_html/smf/index.php on line 52

Fatal error: Uncaught Error: Failed opening required '/home/tseatcc/public_html/smf/Sources/QueryString.php' (include_path='.:/opt/alt/php82/usr/share/pear:/opt/alt/php82/usr/share/php:/usr/share/pear:/usr/share/php') in /home/u725526139/domains/tseatc.com/public_html/smf/index.php:52 Stack trace: #0 {main} thrown in /home/u725526139/domains/tseatc.com/public_html/smf/index.php on line 52

Doug Heffernan

Quote from: tonywells82 on January 26, 2025, 12:55:25 PMI did rename that. See my error now:

Warning: require_once(/home/tseatcc/public_html/smf/Sources/QueryString.php): Failed to open stream: No such file or directory in /home/u725526139/domains/tseatc.com/public_html/smf/index.php on line 52

Fatal error: Uncaught Error: Failed opening required '/home/tseatcc/public_html/smf/Sources/QueryString.php' (include_path='.:/opt/alt/php82/usr/share/pear:/opt/alt/php82/usr/share/php:/usr/share/pear:/usr/share/php') in /home/u725526139/domains/tseatc.com/public_html/smf/index.php:52 Stack trace: #0 {main} thrown in /home/u725526139/domains/tseatc.com/public_html/smf/index.php on line 52

Check your Settings.php file and make sure that it's not empty.

tonywells82

#25
Quote from: Sir Osis of Liver on January 25, 2025, 11:13:59 PMJust checked, if you're running SMF version earlier than 2.0.19 you'll get the Subs.php error in php 8.2.  You'll need to upload a clean set of 2.0.19 files, or upgrade to 2.1.4, or drop your php version to 7.4.


I was trying to install 2.1.4 but I get this error message:

Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/u725526139/domains/tseatc.com/public_html/smf/Sources/Subs-Compat.php on line 100
Quote from: Doug Heffernan on January 26, 2025, 01:37:41 PM
Quote from: tonywells82 on January 26, 2025, 12:55:25 PMI did rename that. See my error now:

Warning: require_once(/home/tseatcc/public_html/smf/Sources/QueryString.php): Failed to open stream: No such file or directory in /home/u725526139/domains/tseatc.com/public_html/smf/index.php on line 52

Fatal error: Uncaught Error: Failed opening required '/home/tseatcc/public_html/smf/Sources/QueryString.php' (include_path='.:/opt/alt/php82/usr/share/pear:/opt/alt/php82/usr/share/php:/usr/share/pear:/usr/share/php') in /home/u725526139/domains/tseatc.com/public_html/smf/index.php:52 Stack trace: #0 {main} thrown in /home/u725526139/domains/tseatc.com/public_html/smf/index.php on line 52

Check your Settings.php file and make sure that it's not empty.

No it's not empty. See below;

<?php
/**********************************************************************************
* Settings.php                                                                    *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/


########## Maintenance ##########
# Note: If $maintenance is set to 1, the forum will be unusable!  Change it to 0 to fix it.
$maintenance 0; # Set to 1 to enable Maintenance Mode, 2 to make the forum untouchable. (you'll have to make it 0 again manually!)
$mtitle 'Upgrading the forum...'; # Title for the Maintenance Mode message.
$mmessage 'Don\'t worry, we will be back shortly with an updated forum.  It will only be a minute ;).'; # Description of why the forum is in maintenance mode.

########## Forum Info ##########
$mbname 'The Southeast Asian Treasure Connection'; # The name of your forum.
$language 'english'; # The default language file set for the forum.
$boardurl 'http://www.tseatc.com/smf'; # URL to your forum's folder. (without the trailing /!)
$webmaster_email '[email protected]'; # Email address to send emails from. (like [email protected].)
$cookiename 'SMFCookie989'; # Name of the cookie to set for authentication.

########## Database Info ##########


########## Directories/Files ##########
# Note: These directories do not have to be changed unless you move things.
$boarddir '/home/tseatcc/public_html/smf'; # The absolute path to the forum's folder. (not just '.'!)
$sourcedir '/home/tseatcc/public_html/smf/Sources'; # Path to the Sources directory.

########## Error-Catching ##########
# Note: You shouldn't touch these settings.
$db_last_error 1581658179;


# Make sure the paths are correct... at least try to fix them.
if (!file_exists($boarddir) && file_exists(dirname(__FILE__) . '/agreement.txt'))
$boarddir dirname(__FILE__);
if (!
file_exists($sourcedir) && file_exists($boarddir '/Sources'))
$sourcedir $boarddir '/Sources';

$cachedir '/home/tseatcc/public_html/smf/cache';
?>

tonywells82

Quote from: Sir Osis of Liver on January 25, 2025, 11:13:59 PMJust checked, if you're running SMF version earlier than 2.0.19 you'll get the Subs.php error in php 8.2.  You'll need to upload a clean set of 2.0.19 files, or upgrade to 2.1.4, or drop your php version to 7.4.


I tried to upgrade to 2.1.4 and got the following message;

Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/u725526139/domains/tseatc.com/public_html/smf/Sources/Subs-Compat.php on line 100

Doug Heffernan

Quote from: tonywells82 on January 26, 2025, 02:05:03 PMI tried to upgrade to 2.1.4 and got the following message;

Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/u725526139/domains/tseatc.com/public_html/smf/Sources/Subs-Compat.php on line 100

First of all, never post sensitive data such as the database details in public as it poses a huge security risk. I edited your post above and removed them.

That said, what version of Smf are you upgrading from, 1.1.? I am asking because that's the version at your Settings.php file. If that's the case most likely you are using a very old php version, 5 and smf 2.1. doesn't support it. You will have to upgrade your php version too.

And last but certainly not least, please don't bump your topic within 24 hours. We're all volunteers here and provide support on our own free time and dime. Thank you for your understanding.


Sir Osis of Liver

Quote from: tonywells82 on January 26, 2025, 02:05:03 PMI tried to upgrade to 2.1.4 and got the following message;

Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/u725526139/domains/tseatc.com/public_html/smf/Sources/Subs-Compat.php on line 100

How did you do the upgrade?

If your forum actually is 1.1 you may have to upgrade in steps.  2.1.4 upgrader is supposed to upgrade from any earlier version, but sometimes it doesn't.  And you'll have problems with php versions.  1.1 branch supported up to php 5.4, 2.0.18 php 7.4, 2.0.19 php 8.0, and 2.1.4 iirc supports 8.1/8.2.  Does your control panel allow you to select php version, and if so, which versions are available?
When in Emor, do as the Snamors.
                              - D. Lister

Advertisement: