also discussed here: http://drupal.org/node/813552

Trying to upgrade 6.x-1.x-Beta 2 to 6.x-1.x-dev
I cannot upgrade module according normal upgrade procedure. I'm getting error when try to upgrade. Check attached file.

I can upgrade if I do following:

1. Disable ALL Mediafront modules
2. Delete old files
3. Add new files
4. enable following modules:
MediaFront 6.x-1.x-dev
Open Standards Media Player
5. run update.php

this is quite incorrect way to upgrade module since I swqapped 4. and 5. but this way needed function is found!

CommentFileSizeAuthor
#3 preset.png11.13 KBmstrelan
ScreenHunter_01 Jun. 15 17.42.gif45.16 KBalmalino

Comments

travist’s picture

I will test out the upgrade path tonight and see if I can fix this issue.

Thanks.

Travis.

travist’s picture

Status: Active » Postponed (maintainer needs more info)

I just went through a clean install. Installed the BETA2, and then upgraded to the DEV and it worked just fine for me. Has anyone else had this problem?

Here are the steps I took...

1.) Download clean install of Drupal 6 and install.
2.) Download and install MediaFront Beta 2 module.
3.) Setup a preset to verify that it works.
4.) Download and install latest DEV release.
5.) Run the update.php script.
6.) Verify that the player updated. The latest player has a version of 0.95.

This worked just fine.

mstrelan’s picture

StatusFileSize
new11.13 KB

I know that the correct way is to disable the module before upgrading it, but in practise how many people ever do that?

I was not logged in. I replaced the files and tried to log in, but got this fatal error.

require_once(sites/all/modules/mediafront/players/osmplayer/player/OSMPlayer.php) [function.require-once]: failed to open stream: No such file or directory in C:\www\sites\all\modules\mediafront\players\osmplayer\osmplayer.module on line 3.

After refreshing I was able to load up the log in page to run update.php

I haven't looked at your code but I wonder if you can use include_once instead of require_once, that way it won't throw a fatal error in this situation.

As well as this my presets are totally screwed now. Please see screenshot

almalino’s picture

BTW, may be my module upgrade procedure is wrong?

shall module be enabled BEFORE runing update.php?
Someone told me here that it should:
http://drupal.org/node/828956

travist’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Here is what the sequence should be on all modules.

1.) Put your site in maintenance mode.
2.) Backup your database.
3.) Delete the files from the old module ( DO NOT DO ANY PAGE REFRESHES ON YOUR SITE AFTERWARD ).
4.) Copy over the new module files.
5.) Run update.php
6.) Put your site out of maintenance mode.

Nowhere in that proceedure should you disable the module. I am pretty sure that is what is causing this issue.

Please let me know otherwise.

Thanks,

Travis.