Parse Error when upgrading 1.1.11 to 2.0 in Load.php on line 290

Started by HentzDynasty, July 16, 2010, 11:59:58 AM

Previous topic - Next topic

cicka

Hopefully this will work. Maybe your file did not get overwritten properly. By the look of it there is a change in size between the 2 files.

xenovanis

Quote
'integrate_pre_include'../smf_2-0-rc3_upgrade Folder/Sources/]) && file_exists(strtr($modSettings['integrate_pre_include'../smf_2-0-rc3_upgrade Folder/Sources/], array('$boarddir' => $boarddir))))

:o

How did that get in there? Did Dramweaver reset all paths?

I'd suggest you download a new upgradepackage, unzip it and upload the files with an ftp-client to your server.
"Insanity: doing the same thing over and over again and expecting different results."

HentzDynasty

well, that new load.php seems to have done the trick (it's at least letting me continue on to step 5) so we'll see how the rest of upgrade goes.

for what it's worth, I'm new to php but decided to (after running into problems) take a look at line 290.  It seemed to point towards an old file location.  even after trying to fix the file location I returned the same error.  For my own curiosity, if you can figure out what the problem is with the old file, could you let me know if the problem had something to do with my suspicion or if it was something completely different?  I'd like to learn more about php so I can problem solve/troubleshoot myself more.  This is actually the first time I've been someone who's asked for help using a forum.

BTW, upgrade finished while I wrote this.  How long do my forums stay closed?

HentzDynasty

Quote from: xenovanis on July 17, 2010, 11:17:03 AM
Quote
'integrate_pre_include'../smf_2-0-rc3_upgrade Folder/Sources/]) && file_exists(strtr($modSettings['integrate_pre_include'../smf_2-0-rc3_upgrade Folder/Sources/], array('$boarddir' => $boarddir))))

:o

How did that get in there? Did Dramweaver reset all paths?

I'd suggest you download a new upgradepackage, unzip it and upload the files with an ftp-client to your server.



SEE! that's the part that didn't make sense.  I changed it to ../forum/Sources/ blah blah blah blah because it was no longer in the smf_2-0-rc3_Upgrade Folder.  even after changing the name, though, it still didn't work.  so do you just think the load.php wasn't referencing files correctly?

xenovanis

Well, I know Dreamweaver also has the habit to change url's and pathsettings to your local settings. There is a warning but that could easily be misread or missed.

The correct line should be

if (isset($modSettings['integrate_pre_include']) && file_exists(strtr($modSettings['integrate_pre_include'], array('$boarddir' => $boarddir))))


and you don't have to change anything.

Quote from: HentzDynasty on July 17, 2010, 11:22:27 AM
BTW, upgrade finished while I wrote this.  How long do my forums stay closed?

You weren't asked to login during upload?

In the file Settings.php, which is in the root of your foruminstall, change this line to

$maintenance = '0'; # Set to 1 to enable Maintenance Mode, 2 to make the forum untouchable. (you'll have to make it 0 again manually!)


Use a proper editor though, like Notepad++  ;)

If you don't want to edit any files anymore  :P, use repair_settings to get you out of Maintenance Mode.

What is repair_settings.php?
"Insanity: doing the same thing over and over again and expecting different results."

HentzDynasty

lol, I just deleted repair_settings.php because I didn't want my forums to be vulnerable anymore.  Oh well, that'll be a simple fix in my editor.

btw, not finding settings.php.   managesettings.php I assume?

Herman's Mixen

in your forum root path you find settings.php / settings_bak.php

not the managesettings.php coz thats a ./Source/managesettings.php
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)


xenovanis

Don't want to be picky, but it's Settings.php (not settings.php).  :P

/your_forum_directory/Settings.php
"Insanity: doing the same thing over and over again and expecting different results."

HentzDynasty


Herman's Mixen

/forum/settings.php
/forum/settings_bak.php
/forum/SSI.php
/forum <== forum root path   ;)

Quote from: xenovanis on July 17, 2010, 11:44:07 AM
Don't want to be picky, but it's Settings.php (not settings.php).  :P

Yeah i know... Case sensative :P
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

HentzDynasty

yea, I was still looking Dw local view.  Then, feeling I had made that stupid error, I looked with Fetch and found it.  $me = n00b

xenovanis

"Insanity: doing the same thing over and over again and expecting different results."

HentzDynasty

yes, though not displaying correctly.

somethingelsetv.com/forum

Herman's Mixen

if your using the neptune theme from bloc on your site be sure u use the SMF 2.x RC2/3 Version to avoid problems :P
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

HentzDynasty

ya know what I think the problem is? it changed some of the links in the templates the same way it did with load.php.....

I think this because after logging into the forums as the admin, and trying to go to my CP, an error showed up and I saw the same reference to smf_2.0 rc3 upgrade blah blah.

xenovanis

Actually, that should have resulted more in a parseerror, like in the Load file.

I assume you used this theme on your 1.1.11 installation. 1.1.x themes are way different than themes for 2.0.x. You'll have to get the 2.0 version for that theme and install it.
"Insanity: doing the same thing over and over again and expecting different results."

Herman's Mixen

hm.. if those files are a few to edit use a proper editor like notepad/any text editor will do it.. dont use any WYSIWYG editors..

otherwise if they are a lot of files then use the large upgrade package upload and overwrite /Themes and /Sources with a good FTP-Client like FileZilla or simulair  ;)
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

HentzDynasty

Quote from: xenovanis on July 17, 2010, 12:15:25 PM
Actually, that should have resulted more in a parseerror, like in the Load file.

I assume you used this theme on your 1.1.11 installation. 1.1.x themes are way different than themes for 2.0.x. You'll have to get the 2.0 version for that theme and install it.

Here's what's going on (pic two is after a scroll througha small amount of code.)

xenovanis

Yeah, I see  ::)

You'll have to upload all files from a fresh downloaded upgradepackage again. Grap a new one from the download site.

You can leave out upgrade.php and the *.sql files.
"Insanity: doing the same thing over and over again and expecting different results."

Advertisement: