Hello mates,
First of all thank you very much to all for the help and quick support you gave me.
Sorry for the delay in reply, I have been very busy with the forum upgrade and other stuff.
I will like to tell you about the problem I found because maybe it is useful for someone who faces the same issues. I will try to resume the relevant topics here.
Our hosting company (hostgator) sent me an email telling us that we need to upgrade our web to support PHP 7.4 for security reasons. And do the upgrade before 2th March.
I have SMF 1.1.10 with a lot of mods, custom themes and many custom developments for our community. So for this reason I keep that old version.
So I decide to remove all customizations and go for a big upgrade.
Everything goes fine, except some SQL modifications needed because of the old version.
But when I tried "large upgrade" to 2.0.14 to 2.0.18 versions i always got a blank page / error 500.
So the last version I could upgrade without a blank page was 2.0.13.
I tried 2.0.14 with PHP 5.4 and 5.6.
I tried 2.0.18 with PHP 5.4, 5.6, 7.0 and 7.4.Always got the same blank page.By the way I always checked the PHP version with phpinfo.php because hosting cPanel info was wrong telling me 5.6 and it was 5.2.17. Hosting fixed this after talking with their support.The error log was empty about this problem.I tried to create my own php.ini enabling error logging.
I tried to display all php errors by including proper code in the pageI had no clue at all.I tried to find up to which line of code it went before the error occurred. I wrote some
die('this is as far as it goes")
until I found the error was produced here:
/Sources/load/loaddatabase() line 2564
// Either we aren't in SSI mode, or it failed.
if (empty($db_connection))
$db_connection = smf_db_initiate($db_server, $db_name, $db_user, $db_passwd, $db_prefix, array('persist' => $db_persist, 'dont_select_db' => SMF == 'SSI'));
So any new PHP version can not connect to the database.
I became very suspicious and tried to install a new full install SMF 2.0.14 version separately in another path to test it.
Well, executing install.php I got this:
Critical Error!
The installer was unable to detect any database support in PHP. Please ask your host to ensure that PHP was compiled with the desired database, or that the proper extension is being loaded.
Indeed it seemed that PHP versions 5.4 and higher could not connect to the database.So I contact the hosting support again and they fixed the problem and told me:
" I have fixed it by disabling PHP 5.2 on home .htaccess"
So I could continue upgrading to 2.0.18.I still can not believe that a hosting requires you to upgrade your web to support PHP 7.4 for security reasons and when you try to go any PHP 5.4 or higher nothing runs, producing blank pages with no error clue and a headache.
I hope I have properly resumed the important topics: I am spanish, so sorry if my english is not good enough.
Again, thank you very much to all of you, I am very grateful, your messages are very much appreciated!
Have a nice day ahead!