Advertisement:

Author Topic: HELP - 2.0.13 to 2.0.14 upgrade failure  (Read 1491 times)

Offline CurtisS

  • Semi-Newbie
  • *
  • Posts: 19
HELP - 2.0.13 to 2.0.14 upgrade failure
« on: November 27, 2017, 11:51:35 AM »
Hello,
I hate to tag onto an existing thread but my issue is similar to the OP's after updating through Package Manager from 2.0.13 to 2.0.14. I updated to PHP 5.6 but now I see a error 500 server error. I am unable to get past this and I am not a PHP expert but could certainly use any suggestions. I have searched the forums for similar problems but none of that information helped.
Thanks.
CurtisS

[edit]topic split. - Illori
« Last Edit: November 27, 2017, 11:54:31 AM by Illori »

Offline CurtisS

  • Semi-Newbie
  • *
  • Posts: 19
Re: HELP - 2.0.13 to 2.0.14 upgrade failure
« Reply #1 on: November 27, 2017, 11:59:01 AM »
Apologies for tagging onto another thread and thanks for splitting it.
The original error after the update was:
Fatal error: Function name must be a string in /forum/Sources/Load.php on line 142

After updating PHP from 5.3 to 5.6 I now see only a 500 server error.
Thanks.
CurtisS

Offline drewactual

  • Jr. Member
  • **
  • Posts: 101
    • College Football Fan Site CFB51
Re: HELP - 2.0.13 to 2.0.14 upgrade failure
« Reply #2 on: November 27, 2017, 12:14:22 PM »
there was another recent thread where a user had some whacked compression/decompression take place... basically, one of the files removed white space where there was white space required. 

there should always be a space after 'php' in the opening line.  anytime a single line comment '//' is made there has to be a line break when code restarts.  in his case, it crammed a part of a commented out line into to next making a term that doesn't exist in PHP- hence, it wasn't parsed...

it may be of interest to peek at load.php and see if something like this occurred with your attempted update as well.

on another note, i may be wrong and i hope someone will set me straight if i am- but 5.6 isn't the issue- jumping yo 7.x is the issue with versions prior to .14 if i'm not mistaken.  they're part of the same php package via apache, but they have differences that matter. 
https://www.cfb51.com is a College Football Fan Site, Store, and Publisher, launched in July of 2017

Offline sǝๅqɯɐɥS

  • SMF Hero
  • ******
  • Posts: 4,509
  • Gender: Male
    • i30 Owners Club
Re: HELP - 2.0.13 to 2.0.14 upgrade failure
« Reply #3 on: November 27, 2017, 12:22:00 PM »
Are you hosted by Godaddy?

Offline CurtisS

  • Semi-Newbie
  • *
  • Posts: 19
Re: HELP - 2.0.13 to 2.0.14 upgrade failure
« Reply #4 on: November 27, 2017, 12:35:59 PM »
The hosting is through GoDaddy. Using a suggestion in another thread I renamed the "Sources/Subs-Db-mysql.php~" by removing the ~ and I also renamed the "Sources/Subs-Db-mysql.php" to "Sources/Subs-Db-mysql-old.php" (just in case). This brought the forum back but now when trying to log into Admin functions I see:
"Session verification failed. Please try logging out and back in again, and then try again."

So I still have some work to do. Any thoughts?

Many thanks!

Offline drewactual

  • Jr. Member
  • **
  • Posts: 101
    • College Football Fan Site CFB51
Re: HELP - 2.0.13 to 2.0.14 upgrade failure
« Reply #5 on: November 27, 2017, 12:38:49 PM »
you need to add a sessions check to your index.template for that theme...

find:
Code: [Select]
<input type="hidden" name="hash_passwrd" value="" />
replace with:
Code: [Select]
<input type="hidden" name="hash_passwrd" value="" />
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
https://www.cfb51.com is a College Football Fan Site, Store, and Publisher, launched in July of 2017

Offline CurtisS

  • Semi-Newbie
  • *
  • Posts: 19
Re: HELP - 2.0.13 to 2.0.14 upgrade failure
« Reply #6 on: November 27, 2017, 01:31:29 PM »
Wow. This one is being difficult. I modified the "index.template.php" and the "login.template.php" with the Form fix to no avail. I can log-in using the Home login but when I try to access Admin functions I get a login dialog and this is where I see the Session error. I will see the Session error when I try to log out as well. Perhaps I have a strange mix of 2.0.13 and 2.0.14 files since I had problems trying to update to 2.0.14.
Thanks.

Offline drewactual

  • Jr. Member
  • **
  • Posts: 101
    • College Football Fan Site CFB51
Re: HELP - 2.0.13 to 2.0.14 upgrade failure
« Reply #7 on: November 27, 2017, 01:35:39 PM »
may need to send an SOS to Sir Osis, and i've never seen or heard of this.. but... check your admin.template for that form fix too?
https://www.cfb51.com is a College Football Fan Site, Store, and Publisher, launched in July of 2017

Offline CurtisS

  • Semi-Newbie
  • *
  • Posts: 19
Re: HELP - 2.0.13 to 2.0.14 upgrade failure
« Reply #8 on: November 27, 2017, 01:47:15 PM »
The "admin.template.php" file was not updated with 2.0.14. There are quite a few <form> tags in this file. Do I need to add the code to each form? I am not actually sure the the 2.0.14 is being used and I cannot find a way to see the version since I cannot login to Admin functions.

Offline drewactual

  • Jr. Member
  • **
  • Posts: 101
    • College Football Fan Site CFB51
Re: HELP - 2.0.13 to 2.0.14 upgrade failure
« Reply #9 on: November 27, 2017, 01:53:14 PM »
just find and replace as mentioned above and see if it remedies the situation... it's a hack, but one that may get you going again.... if it doesn't work, no harm no foul, just replace with the original code... if it does work, then good- but like a fuse, it didn't get wonky on it's own... we'll need to figure out why..

https://www.cfb51.com is a College Football Fan Site, Store, and Publisher, launched in July of 2017

Offline CurtisS

  • Semi-Newbie
  • *
  • Posts: 19
Re: HELP - 2.0.13 to 2.0.14 upgrade failure
« Reply #10 on: November 27, 2017, 03:48:56 PM »
None of these suggestions have helped. I have been searching through the forums for enlightenment but am pretty running into the ideas. Is there a way to switch themes outside of the Admin functions?

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 48,054
Re: HELP - 2.0.13 to 2.0.14 upgrade failure
« Reply #11 on: November 27, 2017, 03:54:17 PM »
The hosting is through GoDaddy. Using a suggestion in another thread I renamed the "Sources/Subs-Db-mysql.php~" by removing the ~ and I also renamed the "Sources/Subs-Db-mysql.php" to "Sources/Subs-Db-mysql-old.php" (just in case). This brought the forum back but now when trying to log into Admin functions I see:
"Session verification failed. Please try logging out and back in again, and then try again."

So I still have some work to do. Any thoughts?

Many thanks!
by doing this you are now mixing file versions and you have lost the support for mysqli that was added to SMF 2.0.14. you need to put the files back as they were. you should be checking the server error log to get the cause of the error and looking to fix that.

Offline CurtisS

  • Semi-Newbie
  • *
  • Posts: 19
Re: HELP - 2.0.13 to 2.0.14 upgrade failure
« Reply #12 on: November 27, 2017, 04:08:46 PM »
I would check the server error log but I cannot log into the Admin functions. Switching back to the original "Sub-Db-mysql.php" file results in a server error 500 but I will take a closer look at it.
Thanks for responding.
CurtisS

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 48,054
Re: HELP - 2.0.13 to 2.0.14 upgrade failure
« Reply #13 on: November 27, 2017, 04:11:30 PM »
the server error log is on the server not within SMF.

Offline CurtisS

  • Semi-Newbie
  • *
  • Posts: 19
Re: HELP - 2.0.13 to 2.0.14 upgrade failure
« Reply #14 on: November 27, 2017, 04:30:22 PM »
the server error log is on the server not within SMF.
Right. Looks like I will need to wait a day to see the logs from today. This all started with a failed update this morning.
Thanks.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 7,082
  • 'Tis the gift to be simple
Re: HELP - 2.0.13 to 2.0.14 upgrade failure
« Reply #15 on: November 27, 2017, 09:55:30 PM »
GoDaddy does bad things to some Source files, but shouldn't have affected your forum if you patched 2.0.13 -> 2.0.14 using package manager.  Upgrade failed initially because 2.0.14 will not run in php 5.3.  If you renamed .php~ files to .php, you've reverted those files to 2.0.13, so, as Illori pointed out, you have a mix of .13 and .14 files.

Look in /Packages/backups, you should find a package manager backup from before 2.0.14 install.  Download, unzip, upload to forum root.  It should restort your forum to 2.0.13.  Once you have it up and running, you should be able to patch to .14 successfully. 

Offline CurtisS

  • Semi-Newbie
  • *
  • Posts: 19
Re: HELP - 2.0.13 to 2.0.14 upgrade failure
« Reply #16 on: November 28, 2017, 10:11:42 AM »
Thanks for the response Sir Osis.
I did go to the backup created when the 2.0.13 to 2.0.14 update was run and uploaded those files to forum. The login/logout (Session verification failed. Please try logging out and back in again, and then try again) issues remain. I must have missed something as you think overwriting all of the files would have done the trick.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 7,082
  • 'Tis the gift to be simple
Re: HELP - 2.0.13 to 2.0.14 upgrade failure
« Reply #17 on: November 28, 2017, 02:55:44 PM »
Are you having the login problem in Curve or a custom theme?  If it's a custom theme, you need to do this -

you need to add a sessions check to your index.template for that theme...

find:
Code: [Select]
<input type="hidden" name="hash_passwrd" value="" />
replace with:
Code: [Select]
<input type="hidden" name="hash_passwrd" value="" />
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />



Offline CurtisS

  • Semi-Newbie
  • *
  • Posts: 19
Re: HELP - 2.0.13 to 2.0.14 upgrade failure
« Reply #18 on: November 28, 2017, 03:13:20 PM »
I have tried to revert back to 2.0.13. This code does not exist in my themes index.template file but is was working before.
I did mention earlier that I am able to login on the initial index page so I can view my profile, etc. However, I cannot logout, post, or access Admin functions (it asks for password once again and I get a session error).
« Last Edit: November 28, 2017, 03:23:28 PM by CurtisS »

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 7,082
  • 'Tis the gift to be simple
Re: HELP - 2.0.13 to 2.0.14 upgrade failure
« Reply #19 on: November 28, 2017, 03:30:29 PM »
The session check (second line of code) was added in 2.0.14.  If you uploaded the package backup via FTP to a GoDaddy account, some of the /Sources files may have been deleted.  Try uploading the backup with cpanel file manager.