|
Upgrading from 7.00.x to 7.01.00
|
| Richard Ainz |
Posted on 28-06-2011 20:36
|

Super Admin

Posts: 1894
Joined: 24/01/2005
|
I am in the progress of sorting out a few sites that i have hosted and have been neglected. hence not updated by their admins as they should have been.
I get the following error when upgrading one site from 7.00.07 to 7.01.00 (done this before :P )
CodeFatal error: Cannot redeclare get_microtime() (previously declared in /mounted-storage/home107b/sub001/sc63273-IMND/pds.homeworldaccess.net/maincore.php:24) in /mounted-storage/home107b/sub001/sc63273-IMND/pds.homeworldaccess.net/maincore.php on line 854
I have been looking at that code in maincore.php and I would assume its related to the server somehow, but the upgrades up to 7.00.7 went well so I am a bit at a loss.
The site is currently unbrowsable.
Please assist this poor admin...B)
|
| |
|
|
| Ankur |
Posted on 29-06-2011 09:41
|

Admin

Posts: 1291
Joined: 02/11/2010
|
This problem occurs when the same function is declared two times or other function with the same name, either in the same file maincore.php or in the other Core files.
Check for Double declaration in maincore.php or in some functions files like includes/theme_function... etc etc...
Or may be this can occur while using multisite ? umm... not sure about multisite but you try other things...
|
| |
|
|
| Richard Ainz |
Posted on 29-06-2011 09:50
|

Super Admin

Posts: 1894
Joined: 24/01/2005
|
I tried editing out the function, since it does in fact occur twice in maincore.php, or more... but it did not work.
I could try reuploading the maincore.php from the old version and then skip a version of the maincore.php.
But it is of course worrying since I have not edited any files.
|
| |
|
|
| Ankur |
Posted on 29-06-2011 10:35
|

Admin

Posts: 1291
Joined: 02/11/2010
|
As the error says, it is redeclared on line 854... then it may possible that there could be a mistake done manually in maincore.php...
You may thoroughly look into the maincore for get_microtime for any mistyping etc or try reuploading the maincore...
Good Luck
|
| |
|
|
| Richard Ainz |
Posted on 30-06-2011 10:54
|

Super Admin

Posts: 1894
Joined: 24/01/2005
|
So I exchanged the maincorewith no result and reuploaded the 7.01 maincore (there is no 7.00) but now it threw theme related errors. GAWD!
I am reuploading the lot, changing themes, and doing some general fiddeling.
CodeFatal error: Cannot redeclare get_image() (previously declared in /mounted-storage/home107b/sub001/sc63273-IMND/pds.homeworldaccess.net/includes/system_images.php:93) in /mounted-storage/home107b/sub001/sc63273-IMND/pds.homeworldaccess.net/includes/system_images.php on line 224
that file does not even have 224 lines....??
Edited by Richard Ainz on 30-06-2011 11:17
|
| |
|
|
| Ankur |
Posted on 30-06-2011 12:17
|

Admin

Posts: 1291
Joined: 02/11/2010
|
Hmm ... Then probably either your Server or you are including the maincore.php wrongly in some file...
Ex:- using include "maincore.php" or require "maincore.php" instead of include_once or require_once...
BTW, check the index.php of root if it has some problem... 
Error at Line Number which is not even in the File out of my mind too...
|
| |
|
|
| Richard Ainz |
Posted on 01-07-2011 07:18
|

Super Admin

Posts: 1894
Joined: 24/01/2005
|
Wait. Could this be related to safe_mode?
|
| |
|
|
| Ankur |
Posted on 01-07-2011 07:48
|

Admin

Posts: 1291
Joined: 02/11/2010
|
Searched some Topics about it and found that If your Host has Safe Mode ON, then it may give you problems including files using require include etc functions...!
|
| |
|
|
| Richard Ainz |
Posted on 01-07-2011 07:53
|

Super Admin

Posts: 1894
Joined: 24/01/2005
|
Safe mode was on, so I am changing that.
|
| |
|
|
| Richard Ainz |
Posted on 01-07-2011 09:01
|

Super Admin

Posts: 1894
Joined: 24/01/2005
|
Did not help. I am rolling back to latest working setup.
|
| |
|
|
| Richard Ainz |
Posted on 12-08-2011 09:56
|

Super Admin

Posts: 1894
Joined: 24/01/2005
|
I tried to upload a later version 7.01.02 and still do not work.
I have verified that safe mode is off, I have tried to search for a solution here, but what applies to others does not seem to apply to me. More tips please? I really need this site up and running and considering there are 5 more sites on the same server in need of upgrade I fear I will stumble upon this issue a few more times.
Support please?
|
| |
|
|
| Ankur |
Posted on 12-08-2011 10:50
|

Admin

Posts: 1291
Joined: 02/11/2010
|
Try commenting the get_microtime function in maincore.php and then see, does it show you the correct query time on page load ?
Then, try also checking if the function already exists somewhere by using it somewhere in panel or custom php file including maincore.php :
Code<?php
if (function_exists('get_microtime')) {
echo "get_microtime already exists<br />\n";
} else {
echo "No there is no other get_microtime function.<br />\n";
}
?>
|
| |
|
|
| Richard Ainz |
Posted on 12-08-2011 13:26
|

Super Admin

Posts: 1894
Joined: 24/01/2005
|
Hang on Ankur, the errors are different this time:
http://www.pds.ho...ccess.net/
CodeNotice: Undefined index: locale in /mounted-storage/home107b/sub001/sc63273-IMND/pds.homeworldaccess.net/maincore.php on line 95
Warning: include(locale//global.php) [function.include]: failed to open stream: No such file or directory in /mounted-storage/home107b/sub001/sc63273-IMND/pds.homeworldaccess.net/maincore.php on line 202
Warning: include(locale//global.php) [function.include]: failed to open stream: No such file or directory in /mounted-storage/home107b/sub001/sc63273-IMND/pds.homeworldaccess.net/maincore.php on line 202
Warning: include() [function.include]: Failed opening 'locale//global.php' for inclusion (include_path='.:/usr/share/php5/') in /mounted-storage/home107b/sub001/sc63273-IMND/pds.homeworldaccess.net/maincore.php on line 202
Notice: Undefined index: theme in /mounted-storage/home107b/sub001/sc63273-IMND/pds.homeworldaccess.net/includes/cookie_include.php on line 130
Notice: Undefined index: opening_page in /mounted-storage/home107b/sub001/sc63273-IMND/pds.homeworldaccess.net/index.php on line 20
and look at /news.php.. it loads but with a ****load of errors. :|
|
| |
|
|
| Richard Ainz |
Posted on 12-08-2011 13:38
|

Super Admin

Posts: 1894
Joined: 24/01/2005
|
I get the feeling I am missing something. The paths to global.php have // instead of / so I need to check that.
Where did it get that from anyways...
|
| |
|
|
| Ankur |
Posted on 12-08-2011 13:43
|

Admin

Posts: 1291
Joined: 02/11/2010
|
I can't even guess the problem source. But, I think that you have done something wrong for sure while upgrading.
There are lots of threads with similar errors and the problem they said, is that they have gone it wrong for upgrading.
Please Google it ! You may find the solution !
|
| |
|
|
| Richard Ainz |
Posted on 12-08-2011 15:37
|

Super Admin

Posts: 1894
Joined: 24/01/2005
|
Several of those threads has no clear statement that the problem was solved. But I will continue.
|
| |
|
|
| muscapaul |
Posted on 07-12-2011 13:44
|

Fusioneer

Posts: 1082
Joined: 10/05/2004
|
And? Did you succeed? Because I am looking at the same issue and I have so far mainly seen lame solutions like 'just roll back'...
|
| |
|
|
| Richard Ainz |
Posted on 07-12-2011 15:25
|

Super Admin

Posts: 1894
Joined: 24/01/2005
|
Yes I did eventually succeed. Mainly by checking locales, even uploading locales in upgrades first, before running the upgrades. Also the 7.02 upgrade worked pretty well.
|
| |
|
|
| muscapaul |
Posted on 07-12-2011 18:48
|

Fusioneer

Posts: 1082
Joined: 10/05/2004
|
I *had* the locales uploaded and replaced before I ran the upgrade. I read the readme! I guess I have to reload the old database and run the upgrade again...
|
| |
|