Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: coldfusionpower on February 07, 2009, 08:14:07 AM

Title: Error Upgrading from 2.0.4 to RC1
Post by: coldfusionpower on February 07, 2009, 08:14:07 AM
Fatal error: Cannot redeclare get_spoiler() (previously declared in /home/cold/domains/eaecm.com/public_html/Sources/Subs.php:835) in /home/cold/domains/eaecm.com/public_html/Sources/Subs.php on line 951

how to solve this ? i even tried it again but stuck at step 5 ... after clicking continue at step 4 , it straight away show that error ...
Title: Re: Error Upgrading from 2.0.4 to RC1
Post by: Kermit on February 07, 2009, 08:14:45 AM
Please attach your Sources/Subs.php
Title: Re: Error Upgrading from 2.0.4 to RC1
Post by: coldfusionpower on February 07, 2009, 08:24:56 AM
here it is
Title: Re: Error Upgrading from 2.0.4 to RC1
Post by: Kermit on February 07, 2009, 08:34:38 AM
Try attached file
Title: Re: Error Upgrading from 2.0.4 to RC1
Post by: coldfusionpower on February 07, 2009, 08:52:01 AM
still the same .. with new code

Fatal error: Cannot redeclare disable_right_click() (previously declared in /home/cold/domains/eaecm.com/public_html/Sources/Subs.php:4378) in /home/cold/domains/eaecm.com/public_html/Sources/Subs.php on line 4491
Title: Re: Error Upgrading from 2.0.4 to RC1
Post by: Kermit on February 07, 2009, 09:07:33 AM
Did you actually overwrite all your old files with the new ones (RC1) ?

Apparently you didn't,just try it with a fresh Subs.php,fresh one is attached
Title: Re: Error Upgrading from 2.0.4 to RC1
Post by: coldfusionpower on February 07, 2009, 09:16:12 AM
yes i did ....
Title: Re: Error Upgrading from 2.0.4 to RC1
Post by: Kermit on February 07, 2009, 09:18:29 AM
Quote from: coldfusionpower on February 07, 2009, 09:16:12 AM
yes i did ....

Unfortunately Subs.php is still not renewed,there are lots of mod code,that's why you're getting that errors,on a default Subs.php file you can not get such errors,just try the fresh one from my post
Title: Re: Error Upgrading from 2.0.4 to RC1
Post by: coldfusionpower on February 07, 2009, 09:28:47 AM
ok let me copy everything again ... FileZilla might missed some files
Title: Re: Error Upgrading from 2.0.4 to RC1
Post by: coldfusionpower on February 07, 2009, 10:02:59 AM
ok i copy everything again .. the ftp does miss some files .. the upgrade is done .. but now .. i cant even go into my admin page ...


Maintenance Mode
Okay faithful users...we're attempting to restore an older backup of the database...news will be posted once we're back!

Title: Re: Error Upgrading from 2.0.4 to RC1
Post by: Kermit on February 07, 2009, 10:05:05 AM
Settings.php

$maintenance = 0;

this should be 0,probably on your Settings.php it's 1 or 2
Title: Re: Error Upgrading from 2.0.4 to RC1
Post by: coldfusionpower on February 07, 2009, 10:27:36 AM
haha . ok thanks
Title: Re: Error Upgrading from 2.0.4 to RC1
Post by: Kermit on February 07, 2009, 10:28:46 AM
Any further questions regarding this issue ?

Otherweise feel free to mark your topic as solved
Title: Re: Error Upgrading from 2.0.4 to RC1
Post by: coldfusionpower on February 07, 2009, 12:13:16 PM
well the upgrade is considered done .. but i cant install back mods via package manager even with all permission is 777 ....
Title: Re: Error Upgrading from 2.0.4 to RC1
Post by: Kermit on February 07, 2009, 12:30:11 PM
Quote from: coldfusionpower on February 07, 2009, 12:13:16 PM
well the upgrade is considered done .. but i cant install back mods via package manager even with all permission is 777 ....

What kinda error did you get then ?
Title: Re: Error Upgrading from 2.0.4 to RC1
Post by: coldfusionpower on February 07, 2009, 12:34:19 PM
permission error ..

An Error Has Occurred!
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!
Title: Re: Error Upgrading from 2.0.4 to RC1
Post by: Kermit on February 07, 2009, 01:34:24 PM
Hmm,try that

create a new directory with name temp in your packages directory and chmod it as 777,maybe that can help
Title: Re: Error Upgrading from 2.0.4 to RC1
Post by: coldfusionpower on February 08, 2009, 01:08:37 AM
aha . ok thanks ...