This topic was marked solved by its starter, on January 5th, 2015, 09:08 PM
Install problem....

Drunken Clam

  • Drool, drool, drool....!
  • Posts: 154
Install problem....
« on January 5th, 2015, 06:37 PM »
So, I may be a complete dork but I have been trying to re-install wedge from today's .zip without success. :sob:

I had a very early release installed but deleted it to start over. (Everything!! db, files, directories etc.) :ph34r:

I have unzipped and uploaded all files to my host and pointed my browser to: mysite/wedge_dir/index.php

I then receive the following:

Code: [Select]
Fatal error: Cannot redeclare updateSettingsFile() (previously declared in /home/********/public_html/aaa/core/app/Subs-CachePHP.php:263) in /home/********/public_html/aaa/install/install.php on line 1787

What the hell am I doing wrong/forgetting???  :whistle:

Any pointers greatly appreciated!

Cheers
DC

CerealGuy

  • Posts: 343
Re: Install problem....
« Reply #1, on January 5th, 2015, 07:22 PM »
Perhaps its enough to delete the updateSettingsFile() function in /install/install.php.
Wedge is now using that function to write enabled plugins into the Settings.php file.

Drunken Clam

  • Drool, drool, drool....!
  • Posts: 154
Re: Install problem....
« Reply #2, on January 5th, 2015, 07:49 PM »
Quote from CerealGuy on January 5th, 2015, 07:22 PM
Perhaps its enough to delete the updateSettingsFile() function in /install/install.php.
Wedge is now using that function to write enabled plugins into the Settings.php file.
Thanks for that CG, but, me having virtually 'zero' coding skills, I wouldn't know what to delete! I see updateSettingsFile is mentioned 7 times in install.php, but what to delete well, *shrug* :unsure:

CerealGuy

  • Posts: 343
Re: Install problem....
« Reply #3, on January 5th, 2015, 08:19 PM »
Cant test it in the moment, but you need to open /install/install.php in an editor and look for "function updateSettingsFile($vars)". Rename it to "function updateSettingsFile2($vars)", that should be the easiest solution for the moment.

But cant test it, im not sure if both functions work exactly the same, its possible that there are more improvements needed.

Drunken Clam

  • Drool, drool, drool....!
  • Posts: 154
Re: Install problem....
« Reply #4, on January 5th, 2015, 09:08 PM »
Quote from CerealGuy on January 5th, 2015, 08:19 PM
Cant test it in the moment, but you need to open /install/install.php in an editor and look for "function updateSettingsFile($vars)". Rename it to "function updateSettingsFile2($vars)", that should be the easiest solution for the moment.

But cant test it, im not sure if both functions work exactly the same, its possible that there are more improvements needed.
Thanks again CG - That did the trick! I had to change all instances of updateSettingsFile to updateSettingsFile2  and bingo!

All installed and working well.

Many thanks, appreciated. :eheh:

Nao

  • Dadman with a boy
  • Posts: 16,079