Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Upgrading from 7.00.x to 7.01.00

Asked Modified Viewed 6,008 times
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
asked
Fusioneer

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 )
Fatal 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)
0 replies

18 posts

A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
answered
Veteran Member

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... ;)
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
answered
Fusioneer

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.
0 replies
A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
answered
Veteran Member

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 ;)
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
answered
Fusioneer

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.

Fatal 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 Homdax on 30-06-2011 12:17,
0 replies
A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
answered
Veteran Member

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... B)

Error at Line Number which is not even in the File :P out of my mind too... :@
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
answered
Fusioneer

Wait. Could this be related to safe_mode?
0 replies
A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
answered
Veteran Member

Quote

Homdax wrote:

Wait. Could this be related to safe_mode?


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...!
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
answered
Fusioneer

Safe mode was on, so I am changing that.
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
answered
Fusioneer

Did not help. I am rolling back to latest working setup.
0 replies
— 1 month later —
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
answered
Fusioneer

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?
0 replies
A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
answered
Veteran Member

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 :
<?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";
}
?>
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
answered
Fusioneer

Hang on Ankur, the errors are different this time:
http://www.pds.homeworldaccess.net/

Notice: 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. :|
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
answered
Fusioneer

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...:(
0 replies
A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
answered
Veteran Member

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 ! :|
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
answered
Fusioneer

Several of those threads has no clear statement that the problem was solved. But I will continue.
0 replies
— 3 months later —
M
muscapaul
M
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

Sites: Diptera.info (site owner); Online-Keys.net (site owner); Sciomyzidae.info (site co-owner); muscapaul.com (defunct; site owner)
  • Veteran Member, joined since
  • Contributed 1,075 posts on the community forums.
  • Started 8 threads in the forums
answered
Veteran Member

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'...
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
answered
Fusioneer

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.
0 replies
M
muscapaul
M
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

Sites: Diptera.info (site owner); Online-Keys.net (site owner); Sciomyzidae.info (site co-owner); muscapaul.com (defunct; site owner)
  • Veteran Member, joined since
  • Contributed 1,075 posts on the community forums.
  • Started 8 threads in the forums
answered
Veteran Member

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...
0 replies

Category Forum

Installation Issues - 8

Labels

None yet

Statistics

  • Views 0 views
  • Posts 18 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

M
M
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

Sites: Diptera.info (site owner); Online-Keys.net (site owner); Sciomyzidae.info (site co-owner); muscapaul.com (defunct; site owner)
  • Veteran Member, joined since
  • Contributed 1,075 posts on the community forums.
  • Started 8 threads in the forums
H
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
A
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet