Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Install and Upgrade Help => Topic started by: cristiano on November 17, 2009, 04:46:02 PM

Title: ucwords error when upgrading from 1.1.10 to RC2 2.0
Post by: cristiano on November 17, 2009, 04:46:02 PM
On the template step, I get this

Notice: Undefined index: ucwords in D:\Hosting\4456506\html\forum\Sources\Load.php on line 2001

Fatal error: Function name must be a string in D:\Hosting\4456506\html\forum\Sources\Load.php on line 2001


I went to the file and I got this

            $context['languages'][$matches[1]] =
               array('name' => $smcFunc['ucwords'](strtr($matches[1], array('_' => ' '))),
               'selected' => false,
               'filename' => $matches[1],
               'location' => $language_dir . '/index.' . $matches[1] . '.php',
            );

Any clue why it wont upgrade?

Thanks

Title: Re: ucwords error when upgrading from 1.1.10 to RC2 2.0
Post by: JimM on November 21, 2009, 07:56:44 PM
Try starting the upgrade again and see if you get past this point. 
Title: Re: ucwords error when upgrading from 1.1.10 to RC2 2.0
Post by: Reneald on February 01, 2010, 10:05:33 AM
I have almost the same problem. I try to upgrade from 1.1.11 to 2.0 RC2, and after the database changes step, i get the error:

"Notice: Undefined index: ucwords in /home/org/historia/www/interactief/Sources/Load.php on line 2002

Fatal error: Function name must be a string in /home/org/historia/www/interactief/Sources/Load.php on line 2002"

So the difference is the line number. I tried starting the upgrade again, but it didn't solve anything. Any solutions?


EDIT: weird, right after I posted my question here, the problem simply disappeared.
Title: Re: ucwords error when upgrading from 1.1.10 to RC2 2.0
Post by: JimM on February 01, 2010, 10:37:55 PM
Welcome to SMF.  Glad it fixed itself! ;)
Title: Re: ucwords error when upgrading from 1.1.10 to RC2 2.0
Post by: ke on February 26, 2011, 11:58:57 PM
I wasn't so lucky when upgrading from 1.1.15 to 2.0 RC5, but I found this in upgrade.php:

// Are we going to be mimic'ing SSI at this point?

if (isset($_GET['ssi']))

{

require_once($sourcedir . '/Subs.php');

require_once($sourcedir . '/Errors.php');

require_once($sourcedir . '/Load.php');

require_once($sourcedir . '/Security.php');

require_once($sourcedir . '/Subs-Package.php');



loadUserSettings();

loadPermissions();

}


And I was able to fix the problem by adding reloadSettings(); before loadUserSettings();
Title: Re: ucwords error when upgrading from 1.1.10 to RC2 2.0
Post by: JimM on March 01, 2011, 08:11:51 PM
Great, I'll mark this as solved, seeing as it is an old topic, to keep it off our support queue.
Title: Re: ucwords error when upgrading from 1.1.10 to RC2 2.0
Post by: retsalBretsaM on June 18, 2011, 12:05:21 PM
Quote from: ke on February 26, 2011, 11:58:57 PM
I wasn't so lucky when upgrading from 1.1.15 to 2.0 RC5, but I found this in upgrade.php:

// Are we going to be mimic'ing SSI at this point?

if (isset($_GET['ssi']))

{

require_once($sourcedir . '/Subs.php');

require_once($sourcedir . '/Errors.php');

require_once($sourcedir . '/Load.php');

require_once($sourcedir . '/Security.php');

require_once($sourcedir . '/Subs-Package.php');



loadUserSettings();

loadPermissions();

}


And I was able to fix the problem by adding reloadSettings(); before loadUserSettings();

Fwiw, I just ran into this same issue installing 2.0 Gold over top of 1.1.14

Adding reloadSettings(); as noted by ke resolved it for me also.
Title: Re: ucwords error when upgrading from 1.1.10 to RC2 2.0
Post by: Norv on June 19, 2011, 11:18:22 AM
Thank you for sharing this. Are you also on a windows server?
Title: Re: ucwords error when upgrading from 1.1.10 to RC2 2.0
Post by: retsalBretsaM on July 01, 2011, 11:15:43 PM
I am using Linux/Apache