Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: Robert. on November 01, 2010, 04:12:29 PM

Title: SMF 1.1.11 to SMF 1.1.12 update error
Post by: Robert. on November 01, 2010, 04:12:29 PM
]Upgrade.php
define('SMF_VERSION', '1.1.11');
Should be changed to
define('SMF_VERSION', '1.1.12');
Otherwise, the upgrade doesn't work. ;)
Title: Re: SMF 1.1.11 to SMF 1.1.12 update error
Post by: ModelBoatMayhem on November 01, 2010, 06:05:15 PM
I'm just getting the error...  :-[

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF"
Title: Re: SMF 1.1.11 to SMF 1.1.12 update error
Post by: kat on November 01, 2010, 06:07:13 PM
If you're using v1.1.11, use this:

http://custom.simplemachines.org/mods/downloads/smf_patch_1.0.20_1.1.12.tar.gz

Apply by using Package Manager.


BACKUP FIRST!!!!
Title: Re: SMF 1.1.11 to SMF 1.1.12 update error
Post by: ModelBoatMayhem on November 01, 2010, 06:11:19 PM
Many thanks for that, I'm now getting the error...

Execute Modification[/t][/t] ./Themes/default/Display.template.php Test failed
Title: Re: SMF 1.1.11 to SMF 1.1.12 update error
Post by: kat on November 01, 2010, 06:14:24 PM
That'll be because you have a mod that's altered that file.

You'll need to make that particular edit manually, I'm afraid.
Title: Re: SMF 1.1.11 to SMF 1.1.12 update error
Post by: ModelBoatMayhem on November 01, 2010, 06:18:11 PM
I've no idea how to do that.. is this a vital update?
Title: Re: SMF 1.1.11 to SMF 1.1.12 update error
Post by: lurkalot on November 01, 2010, 06:21:45 PM
Quote from: K@ on November 01, 2010, 06:07:13 PM
If you're using v1.1.11, use this:

http://custom.simplemachines.org/mods/downloads/smf_patch_1.0.20_1.1.12.tar.gz

Apply by using Package Manager.


BACKUP FIRST!!!!

Thanks, that worked for me. ;)
Title: Re: SMF 1.1.11 to SMF 1.1.12 update error
Post by: kat on November 01, 2010, 06:25:41 PM
WooHoo!

Quote from: ModelBoatMayhem on November 01, 2010, 06:18:11 PM
I've no idea how to do that.. is this a vital update?

It's a security update, I believe.

Oddly, there doesn't seem to be a parser, for this update, as yet.

It'll mean going through the smf_1-1-11_to_1-1-12_patch.mod file, inside the archive, to see what edits are made.
Title: Re: SMF 1.1.11 to SMF 1.1.12 update error
Post by: Oya on November 01, 2010, 06:27:56 PM
http://custom.simplemachines.org/upgrades/ has a parser but be careful, each operation is listed twice...
Title: Re: SMF 1.1.11 to SMF 1.1.12 update error
Post by: kat on November 01, 2010, 06:30:26 PM
Ta, Oya!
Title: Re: SMF 1.1.11 to SMF 1.1.12 update error
Post by: Norv on November 01, 2010, 08:09:44 PM
Tah Zonemaster:
Thank you for reporting so quickly. This should have been solved now.

ModelBoatMayhem:
Please, consider opening a support topic, if you still need assistance with edits.

Oya:
thank you for reporting. That should have been solved now.
Title: Re: SMF 1.1.11 to SMF 1.1.12 update error
Post by: sharks on November 02, 2010, 11:41:10 AM
i have to tried update from the package manager link itself moving from SMF 1.1.11 to SMF 1.1.12 but this is the persistent error:

Forbidden

You don't have permission to access new/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I know you will tell me to CHMOD my folders and files, which i already did. I changed all to 755, including my public_html folder. But changing to 777 gives an internal server error, so i have left it at 755. Still same error. :( Can someone please tell me what i'm missing?
Title: Re: SMF 1.1.11 to SMF 1.1.12 update error
Post by: kat on November 02, 2010, 03:18:27 PM
Check with your host.

Ask them if you have FULL ownership of the files on your site.
Title: Re: SMF 1.1.11 to SMF 1.1.12 update error
Post by: sharks on November 03, 2010, 02:54:55 PM
Hi K@

I have checked with my host (hostgator) and the support guy told me that i am not allowed to CHMOD my folders and files to 777, for security reasons. I have tried to CHMOD to 777 nevertheless and i got internal server error. So, i have CHMOD'ed all my folders and files to 755 but it still did not work.

After about 30mins with support, the tech guy finally figured out how to update my forum from 1.1.11 to 1.1.12 using an update package that he downloaded separately and then uploaded to update it via the package manager.

I don't know how and where he got that specific update/upgrade package, but i downloaded it from the Packages folder on my server and here it is attached to this post for others who might need it. The update and upgrade packages available for download on this site are all over 1MB, but this one is much less and it works!

Also, i have another SMF 1.1.11 forum and when i tried to update it with the same package, it gave me error "Test failed" on this file:
./Themes/default/Display.template.php
How do i solve this? I suppose i will be forced to manually install this? In that case, what code do i have to edit? I have tried the SMF parser but it gives error when going through the package.

Lastly, i have a SMF 2.0 RC3 forum and i have the same problem with the auto-update feature, so what package do i need and how to get it?
Title: Re: SMF 1.1.11 to SMF 1.1.12 update error
Post by: kat on November 03, 2010, 03:23:18 PM
If you ignore that message and proceed with the install, you'll need to make these edits:

BACKUP EVERYTHING FIRST!!!

The edits to Display.template.php:

Find:

// Version: 1.1; Display

Replace with:

// Version: 1.1.12; Display

(That just changes the version, obviously.)

Find:

if ($context['can_remove_poll'])
$moderationButtons[] = '<a href="' . $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start'] . '" onclick="return confirm(\'' . $txt['poll_remove_warn'] . '\');">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_remove_poll.gif" alt="' . $txt['poll_remove'] . '" border="0" />' : $txt['poll_remove']) . '</a>';


Replace that with this:

if ($context['can_remove_poll'])
$moderationButtons[] = '<a href="' . $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '" onclick="return confirm(\'' . $txt['poll_remove_warn'] . '\');">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_remove_poll.gif" alt="' . $txt['poll_remove'] . '" border="0" />' : $txt['poll_remove']) . '</a>';


Those edits should be made in all the themes, if they have that file in them.
Title: Re: SMF 1.1.11 to SMF 1.1.12 update error
Post by: live627 on November 09, 2010, 12:50:26 AM
Can someone move this to Bogus (or Fixed) Bugs if it's... uh... solved?
Title: Re: SMF 1.1.11 to SMF 1.1.12 update error
Post by: sharks on November 09, 2010, 01:04:29 AM
It's OK from my side. I think it's safe to say (for reference purposes) that the update feature from within the admin panel doesn't always work, depending on your server configuration. I have tested this on an offshore server and it worked, but for hostgator they have disabled some permissions on their shared server which makes updating impossible by just clicking on the update link in the admin panel. In that case, the only way to update is by downloading the update package separately and then installing it. The last solution would be to do a manual install, if all else fails.
Title: Re: SMF 1.1.11 to SMF 1.1.12 update error
Post by: Aleksi "Lex" Kilpinen on November 09, 2010, 01:18:20 AM
For future reference, the package manager updates are found at http://custom.simplemachines.org/upgrades/
( Take note, that 2.0 has only a few patches, and not actual updates - since it is currently in RC )