ucwords error when upgrading from 1.1.10 to RC2 2.0

Started by cristiano, November 17, 2009, 04:46:02 PM

Previous topic - Next topic

cristiano

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


JimM

Try starting the upgrade again and see if you get past this point. 
Jim "JimM" Moore
Former Support Specialist

Reneald

#2
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.

JimM

Jim "JimM" Moore
Former Support Specialist

ke

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();

JimM

Great, I'll mark this as solved, seeing as it is an old topic, to keep it off our support queue.
Jim "JimM" Moore
Former Support Specialist

retsalBretsaM

#6
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.

Norv

Thank you for sharing this. Are you also on a windows server?
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github


Advertisement: