Advertisement:

Author Topic: "The upgrader was unable to find some crucial files." when upgrading  (Read 1110 times)

Online Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,902
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • SMF Helper
Re: "The upgrader was unable to find some crucial files." when upgrading
« Reply #20 on: February 17, 2019, 03:56:47 PM »
She stated php 7.0

Offline natcip

  • Semi-Newbie
  • *
  • Posts: 89
Re: "The upgrader was unable to find some crucial files." when upgrading
« Reply #21 on: February 17, 2019, 03:58:20 PM »
*He

Yes, I already said it twice in this thread. Third time: PHP 7.0.

Online Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,902
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • SMF Helper
Re: "The upgrader was unable to find some crucial files." when upgrading
« Reply #22 on: February 17, 2019, 04:10:43 PM »
Oh, sorry bout that sir. :)

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 8,917
Re: "The upgrader was unable to find some crucial files." when upgrading
« Reply #23 on: February 17, 2019, 04:29:00 PM »
Try downgrading to php 5.6.

Offline shawnb61

  • Support Specialist
  • Sophist Member
  • *
  • Posts: 1,184
    • sbulen on GitHub
Re: "The upgrader was unable to find some crucial files." when upgrading
« Reply #24 on: February 17, 2019, 04:40:42 PM »
The upgrader looks for a very specific random set of files for that message (trying to confirm your themes & sources are where your settings say they are...):
 - in your themes folder:  /index.template.php
 - in your source folder: /QueryString.php
 - in your source folder: /Subs-Db-Mysqli.php
 - in forum root (where upgrade.php should be running):  /upgrade_2-0_mysql.sql (if source version is < 2.1)
 - in forum root (where upgrade.php should be running):  /upgrade_1-1.sql (if source version is < 2.0)
 - in forum root (where upgrade.php should be running):  /upgrade_1-0.sql (if source version is < 1.1)

I would first ensure that these files are present.

The next thing I would do is double-check the settings for your $sourcedir (in settings.php) and your setting for theme_dir (for theme 1 from your themes table).   If it can't find a theme_dir setting, it tries to make an educated guess that it's under your $boarddir. 

Everything should be working fine in 2.0 before you start the upgrade.  If you are having theme issues before the upgrade, the upgrade won't work. 

It might help to run the 2.0 version of repair_settings.php. 

An upgrade is overkill for moving from 2.0.11 to 2.0.15 - patches are simpler...

Hope this helps,
« Last Edit: February 17, 2019, 05:15:45 PM by shawnb61 »
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 70,992
    • StoryBB/StoryBB on GitHub
Re: "The upgrader was unable to find some crucial files." when upgrading
« Reply #25 on: February 17, 2019, 05:53:03 PM »
Doesn't it also need Themes/default/languages/Install.(language).php (at a minimum, English)?
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline shawnb61

  • Support Specialist
  • Sophist Member
  • *
  • Posts: 1,184
    • sbulen on GitHub
Re: "The upgrader was unable to find some crucial files." when upgrading
« Reply #26 on: February 17, 2019, 06:00:08 PM »
It needs lots of stuff...   

But the check it performs that produces the error message above only looks for the sampling of files listed above. 
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Offline natcip

  • Semi-Newbie
  • *
  • Posts: 89
Re: "The upgrader was unable to find some crucial files." when upgrading
« Reply #27 on: February 18, 2019, 11:25:03 AM »
Thanks for the responses

The upgrader looks for a very specific random set of files for that message (trying to confirm your themes & sources are where your settings say they are...):
 - in your themes folder:  /index.template.php
 - in your source folder: /QueryString.php
 - in your source folder: /Subs-Db-Mysqli.php
 - in forum root (where upgrade.php should be running):  /upgrade_2-0_mysql.sql (if source version is < 2.1)
 - in forum root (where upgrade.php should be running):  /upgrade_1-1.sql (if source version is < 2.0)
 - in forum root (where upgrade.php should be running):  /upgrade_1-0.sql (if source version is < 1.1)

I would first ensure that these files are present.
All of these files are present in the listed directories, however a "new" Subs-Db-mysqli.php doesn't seem to be included in smf_2-0-15_upgrade.zip. But there's already an older Subs-Db-mysqli.php on my server. Maybe that's causing a conflict?

The next thing I would do is double-check the settings for your $sourcedir (in settings.php)
The paths in settings.php correctly lead to the respective directories
Code: [Select]
$boarddir = '/home/www/name'; # The absolute path to the forum's folder. (not just '.'!)
$sourcedir = '/home/www/name/Sources'; # Path to the Sources directory.
$cachedir = '/home/www/name/cache'; # Path to the cache directory.

and your setting for theme_dir (for theme 1 from your themes table).   If it can't find a theme_dir setting, it tries to make an educated guess that it's under your $boarddir.
Also in settings.php? There's none, but the "Themes" directory is in root where it belongs.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 8,917

Offline natcip

  • Semi-Newbie
  • *
  • Posts: 89
Re: "The upgrader was unable to find some crucial files." when upgrading
« Reply #29 on: February 18, 2019, 11:30:04 AM »
It might help to run the 2.0 version of repair_settings.php. 
I just did that and my board was still set on MySQLi.
Like suggested, I changed it to MySQL and now it seems to be working. :)

Offline shawnb61

  • Support Specialist
  • Sophist Member
  • *
  • Posts: 1,184
    • sbulen on GitHub
Re: "The upgrader was unable to find some crucial files." when upgrading
« Reply #30 on: February 18, 2019, 03:40:34 PM »
Then the error makes sense.  It builds filenames based on the db type, so it was looking for:
- in your source folder: /Subs-Db-Mysqli.php
- in forum root (where upgrade.php should be running):  /upgrade_2-0_mysqli.sql (if source version is < 2.1)

And neither of those files exist.   

Thanks for closing the loop. 
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Offline natcip

  • Semi-Newbie
  • *
  • Posts: 89
Re: "The upgrader was unable to find some crucial files." when upgrading
« Reply #31 on: February 18, 2019, 04:43:10 PM »
Thank you very much :)