[2.0] Wrong URLs on fresh install

Started by digger, January 11, 2018, 07:51:58 AM

Previous topic - Next topic

digger

There is a long-known bug with the SMF installer and PHP Opcache when forum url looks like 127.0.0.1 after fresh install. There are hundreds of topics about this problem like this
https://www.simplemachines.org/community/index.php?topic=555179.0
https://www.simplemachines.org/community/index.php?topic=558223.0
It can be easilly fixed in the install.php file



if (isset($_POST['pop_done']))
return true;

+ // Force opcache invalidate for the Settings.php file.
+ if (function_exists('opcache_invalidate')) {
+ opcache_invalidate(dirname(__FILE__) . '/Settings.php', true);
}
+
// Reload settings.
require(dirname(__FILE__) . '/Settings.php');
load_database();





Illori

are you sure this is a bug with SMF 2.1? i thought this was fixed in SMF 2.1 as no one installing that version has reported this issue.

Arantor

Funny, fairly sure I did that back in 2013...

digger

Quote from: Illori on January 11, 2018, 07:56:49 AM
are you sure this is a bug with SMF 2.1? i thought this was fixed in SMF 2.1 as no one installing that version has reported this issue.
Not shure about 2.1, it was not fixed when I try github version some monthes ago. Will check latest version.

digger

Quote from: Illori on January 11, 2018, 07:56:49 AM
are you sure this is a bug with SMF 2.1? i thought this was fixed in SMF 2.1 as no one installing that version has reported this issue.
Tested SMF 2.1 beta3 and it don't have this bug. Can't test latest github version becase install.php don't continue from "Database Server Settings" step and back me to the "Welcome" installer page every time.

So, why this bug still not fixed for SMF 2.0?

Irisado

Soñando con una playa donde brilla el sol, un arco iris ilumina el cielo, y el mar espejea iridescentemente

digger

Quote from: Irisado on January 11, 2018, 01:49:37 PM
Just to note that this issue has already been reported for 2.0 here: https://www.simplemachines.org/community/index.php?topic=558223.0
This issue has been reported hundred ones for many years, but never been fixed.

digger

https://www.simplemachines.org/community/index.php?topic=558483.msg3958588
Many users will not deal with the problem, but just install another forum software that works out of the box like phpBB.

Advertisement: