News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMF 1.1.11 to SMF 1.1.12 update error

Started by Robert., November 01, 2010, 04:12:29 PM

Previous topic - Next topic

Robert.

]Upgrade.php
define('SMF_VERSION', '1.1.11');
Should be changed to
define('SMF_VERSION', '1.1.12');
Otherwise, the upgrade doesn't work. ;)

ModelBoatMayhem

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"
That's my firm opinion.... but what do I know?!

kat


ModelBoatMayhem

Many thanks for that, I'm now getting the error...

Execute Modification[/t][/t] ./Themes/default/Display.template.php Test failed
That's my firm opinion.... but what do I know?!

kat

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.

ModelBoatMayhem

I've no idea how to do that.. is this a vital update?
That's my firm opinion.... but what do I know?!

lurkalot


kat

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.

Oya



Norv

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.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

sharks

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?

kat

Check with your host.

Ask them if you have FULL ownership of the files on your site.

sharks

#13
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?

kat

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.

live627

Can someone move this to Bogus (or Fixed) Bugs if it's... uh... solved?

sharks

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.

Aleksi "Lex" Kilpinen

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 )
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: