Author Topic: Error upgrade 1.6.2 -- 1.7.0  (Read 16238 times)

damendieta

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Re: Error upgrade 1.6.2 -- 1.7.0
« Reply #15 on: July 01, 2010, 02:53:22 pm »
Thanks a lot Cabeza, you are a hero.

You save my live.

Well, it is fixed.

I have to change the permissions from 775 to 755 to the next files and folders:

/fengoffice/
/fengoffice/index.php
/fengoffice/public/
/fengoffice/public/install/
/fengoffice/public/install/index.php
fengoffice/public/upgrade/
/fengoffice/public/upgrade/index.php

Ones I made those changes, I went to:

/fengoffice/public/upgrade

Follow the upgrade script and that's it, working again.

I hope it is useful for someone else.

Daniel.



cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: Error upgrade 1.6.2 -- 1.7.0
« Reply #16 on: July 01, 2010, 03:07:39 pm »
Glad to hear it's solved.

SUTANEJO

  • Freshman
  • *
  • Posts: 22
    • View Profile
    • Email
Re: Error upgrade 1.6.2 -- 1.7.0
« Reply #17 on: July 01, 2010, 08:42:28 pm »
thanks for your guidance

but now I get this error

Config file found and loaded.
File '/config/config.php' exists and is writable
Folder '/config' exists and is writable
Folder '/cache' exists and is writable
Folder '/tmp' exists and is writable
Folder '/upload' exists and is writable
Extension 'mysql' is loaded
Extension 'gd' is loaded
Extension 'simplexml' is loaded
Upgrade script has connected to the database.
Test query has been executed. Its safe to proceed with database migration.
Failed to execute DB schema transformations. MySQL said: Duplicate column name 'visible'
[/color]
Error upgrading to version 1.7

can you help me please

cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: Error upgrade 1.6.2 -- 1.7.0
« Reply #18 on: July 02, 2010, 10:16:32 am »
http://forums.fengoffice.com/index.php?topic=4378.msg16302#msg16302

Restore the backup and retry the upgrade with debug=true. Copy the errors you get while trying to upgrade from a working 162 copy.

The errors you get when retrying after a failed install are not useful.

Best

mcedwards54

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Error upgrade 1.6.2 -- 1.7.0
« Reply #19 on: July 02, 2010, 12:29:15 pm »
Running 1.6.2. This is related to installed_version.php.

When I go to /public/upgrade it tells me "You already have upgraded to the latest possible version."

I checked config/installed_version and see "return '1.6.2'; "

Anyone know what could be causing this problem?

linuxman

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Re: Error upgrade 1.6.2 -- 1.7.0
« Reply #20 on: July 03, 2010, 10:14:07 pm »
http://forums.fengoffice.com/index.php?topic=4378.msg16302#msg16302

Restore the backup and retry the upgrade with debug=true. Copy the errors you get while trying to upgrade from a working 162 copy.

The errors you get when retrying after a failed install are not useful.

Best
Hi , i try with this method but is not working . I get the
Failed to execute DB schema transformations. MySQL said: Duplicate column name 'visible'
I try upgraded from 1.7-rc2 .

Is working after I remove some line from  1_7_pastafrola.php and from  PastafrolaUpgradeScript.class.php   
And the line I remove is

ALTER TABLE `<?php echo $table_prefix ?>administration_tools` ADD COLUMN `visible` BOOLEAN NOT NULL DEFAULT 1; 

from  1_7_pastafrola.php

and

ALTER TABLE `" . TABLE_PREFIX . "administration_tools` ADD COLUMN `visible` BOOLEAN NOT NULL DEFAULT 1;
from PastafrolaUpgradeScript.class.php

After this I upgrade is perfect .

cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: Error upgrade 1.6.2 -- 1.7.0
« Reply #21 on: July 05, 2010, 09:53:22 am »
Running 1.6.2. This is related to installed_version.php.

When I go to /public/upgrade it tells me "You already have upgraded to the latest possible version."

I checked config/installed_version and see "return '1.6.2'; "

Anyone know what could be causing this problem?

This should happen when you have not upgraded the code.

wantman

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Error upgrade 1.6.2 -- 1.7.0
« Reply #22 on: July 07, 2010, 08:31:54 am »
Hi! I'm upgrade fengoffice 1.6.2 to 1.7.0 and have this error:

Failed to execute DB schema transformations. MySQL said: Duplicate entry 'slim' for key 2

How fix it?

cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: Error upgrade 1.6.2 -- 1.7.0
« Reply #23 on: July 07, 2010, 10:19:45 am »
This error usually happens when  you try to upgrade after a failed upgrade.

Please revert to your backup, and retry  the upgrade. If it does not work, copy the error you get the first time.

Best

wantman

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Error upgrade 1.6.2 -- 1.7.0
« Reply #24 on: July 07, 2010, 01:00:56 pm »
Yes, i'm try 5 july upgrade but is failed and i'm restore from backup filesystem and BD fengoffice 1.6.2 .
Now i'm backup mysql BD from 4 july and try upgrade 1.6.2 to 1.7.0, and see this error:

Failed to execute DB schema transformations. MySQL said: Table 'og_application_read_logs' already exists

P.S. 5 july, theni first try to upgrade, i do this, but i see bug with lang.js with russian language, and try again, after second attempt upgrade i see errors.

cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: Error upgrade 1.6.2 -- 1.7.0
« Reply #25 on: July 07, 2010, 04:04:00 pm »
Does the table og_administration_logs exist in your DB?
What about table og_mail_datas? Is og_mail_datas empty?

SUTANEJO

  • Freshman
  • *
  • Posts: 22
    • View Profile
    • Email
Re: Error upgrade 1.6.2 -- 1.7.0
« Reply #26 on: July 07, 2010, 09:00:34 pm »
I did the update for aa 1.7 and 1.6.2 gives me this error

nothing appears!

I need help please

Fatal error: Call to undefined method User::isGuest() in /var/www/py/coficina/application/helpers/permissions.php on line 193

Fatal error: Undefined class constant 'ACTION_LOGOUT' in /var/www/py/coficina/application/controllers/AccessController.class.php on line 412

Fatal error: Call to undefined method User::isGuest() in /var/www/py/coficina/application/helpers/permissions.php on line 40
« Last Edit: July 07, 2010, 09:09:44 pm by SUTANEJO »

wantman

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Error upgrade 1.6.2 -- 1.7.0
« Reply #27 on: July 08, 2010, 03:19:21 am »
Does the table og_administration_logs exist in your DB?
What about table og_mail_datas? Is og_mail_datas empty?

og_administration_logs, yes exist.
og_mail_datas, not empty .

SUTANEJO

  • Freshman
  • *
  • Posts: 22
    • View Profile
    • Email
Re: Error upgrade 1.6.2 -- 1.7.0
« Reply #28 on: July 08, 2010, 08:31:01 am »
in my case are also tables

og_administration_logs, sí existe.
og_mail_datas, no está vacío.

cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: Error upgrade 1.6.2 -- 1.7.0
« Reply #29 on: July 08, 2010, 10:15:38 am »
Have you checked code permissions (try 777 or 755)?
Are you sure you replaced all files?
Was the upgrade interrupted by a power failure or a process killed while upgrading?

If you are Feng Onsite user please enter a ticket and the team will solve it immediately.