Advertisement:

Author Topic: Update Error from 2.0.15 to 2.0.16 on Subs.php  (Read 218 times)

Offline proo

  • Semi-Newbie
  • *
  • Posts: 16
Update Error from 2.0.15 to 2.0.16 on Subs.php
« on: January 14, 2020, 05:59:31 AM »
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:

Code: [Select]
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...

Offline jim3cantos

  • Semi-Newbie
  • *
  • Posts: 11
    • @https://twitter.com/ on Twitter
    • ForoEV.com
Re: Update Error from 2.0.15 to 2.0.16 on Subs.php
« Reply #1 on: January 14, 2020, 06:11:57 AM »
Compare your file with vanilla 2.0.15 version at these lines with any tool like Winmerge or similar. Something similar happened to me.

Offline proo

  • Semi-Newbie
  • *
  • Posts: 16
Re: Update Error from 2.0.15 to 2.0.16 on Subs.php
« Reply #2 on: January 14, 2020, 08:33:01 AM »
i've searched a bit and still i havent figured out what a vanilla version 2.0.15 is  :-[

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,944
Re: Update Error from 2.0.15 to 2.0.16 on Subs.php
« Reply #3 on: January 14, 2020, 08:38:03 AM »
vanilla=that version without mods installed.

https://download.simplemachines.org/index.php?archive;b=4;v=99

Offline proo

  • Semi-Newbie
  • *
  • Posts: 16
Re: Update Error from 2.0.15 to 2.0.16 on Subs.php
« Reply #4 on: January 14, 2020, 09:08:58 AM »
Many thanks to both of you.

I removed this part

Code: [Select]
'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.

Online m4z

  • Localizer
  • Sr. Member
  • *
  • Posts: 806
  • /mɛs/
"Faith is what you have in things that don't exist."
--Homer Simpson

Offline proo

  • Semi-Newbie
  • *
  • Posts: 16
Re: Update Error from 2.0.15 to 2.0.16 on Subs.php
« Reply #6 on: January 14, 2020, 11:08:00 AM »
 :laugh: