Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: proo - tammikuu 14, 2020, 05:59:31 AP

Otsikko: Update Error from 2.0.15 to 2.0.16 on Subs.php
Kirjoitti: proo - tammikuu 14, 2020, 05:59:31 AP
Hi everyone,

i was getting 2 errors when trying to update from 15 to 16. The one was the Profile-Modify.php common issue and i fixed that with the solution found on other topics.

Now i'm left with this in the Subs.php:


if (strpos($_SERVER['REQUEST_URL'], 'action=dlattach') === false && strpos($_SERVER['REQUEST_URL'], 'action=viewsmfile') === false)

// !!! $remember_old_url is set in writeLog().
if (!empty($remember_old_url))


Any thoughts on this one? I'm not really familiar with codes...
Otsikko: Re: Update Error from 2.0.15 to 2.0.16 on Subs.php
Kirjoitti: jim3cantos - tammikuu 14, 2020, 06:11:57 AP
Compare your file with vanilla 2.0.15 version at these lines with any tool like Winmerge or similar. Something similar (https://www.simplemachines.org/community/index.php?topic=571188.msg4042693#msg4042693) happened to me.
Otsikko: Re: Update Error from 2.0.15 to 2.0.16 on Subs.php
Kirjoitti: proo - tammikuu 14, 2020, 08:33:01 AP
i've searched a bit and still i havent figured out what a vanilla version 2.0.15 is  :-[
Otsikko: Re: Update Error from 2.0.15 to 2.0.16 on Subs.php
Kirjoitti: Illori - tammikuu 14, 2020, 08:38:03 AP
vanilla=that version without mods installed.

https://download.simplemachines.org/index.php?archive;b=4;v=99
Otsikko: Re: Update Error from 2.0.15 to 2.0.16 on Subs.php
Kirjoitti: proo - tammikuu 14, 2020, 09:08:58 AP
Many thanks to both of you.

I removed this part

'action=dlattach') === false && strpos($_SERVER['REQUEST_URL'],

and installed both upgrades fine after that.

Now i;m experiencing other issues but i will adress them elsewhere if needed.

Marked as solved.
Otsikko: Re: Update Error from 2.0.15 to 2.0.16 on Subs.php
Kirjoitti: m4z - tammikuu 14, 2020, 11:05:49 AP
https://www.urbandictionary.com/define.php?term=vanilla
https://en.m.wiktionary.org/wiki/vanilla#Adjective
Otsikko: Re: Update Error from 2.0.15 to 2.0.16 on Subs.php
Kirjoitti: proo - tammikuu 14, 2020, 11:08:00 AP
 :laugh: