News:

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

Main Menu

Upgrade from 2.0.12 to 2.0.16

Started by Mumken, November 18, 2024, 11:32:07 AM

Previous topic - Next topic

Mumken

I am trying to upgrade from SMF 2.0.12 to SMF 2.0.16. However, I get an error message when I try to install the package.

38. execute modification
./Sources/Profile-Modify.php
Test failed

Can anyone give me a tip on how to find out the error and fix it?

Aleksi "Lex" Kilpinen

You can not update from 2.0.12 to 2.0.16 using a single patch update.
So, just to be clear - what version are you on exactly, right now, and what patch file is giving you this error?
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

Diego Andrés

You need to first install 2.0.13 patch, then 2.0.14, then 2.0.15... until 2.0.19
Although I'd recommend you to upgrade to 2.1.4.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Mumken

I am very sorry, but I have reported an incorrect version number of my SMF installation. The forum is currently running under SMF 2.0.15.


Mumken

Thanks for the tips and the link.

When I click on the edit icon to the left of the failed instruction, it appears:

search:

$sizes = @getimagesize($_FILES['attachment']['tmp_name,']);

replace:

$mime_valid = check_mime_type($_FILES['attachment']['tmp_name'], 'image/', true);

         $sizes = empty($mime_valid) ? false : @getimagesize($_FILES['attachment']['tmp_name']);


I can find exactly this search statement in the relevant file

./Sources/Profile-Modify.php file

$sizes = @getimagesize($_FILES['attachment']['tmp_name']);

Should I run the installation routine and then manually replace the search text with the replacement code?

Doug Heffernan

Quote from: Mumken on November 18, 2024, 11:32:07 AMI am trying to upgrade from SMF 2.0.12 to SMF 2.0.16. However, I get an error message when I try to install the package.

May I ask why aren't you upgrading to 2.0.19 which is the latest stable version of the 2.0.x branch?

As mentioned previously, you will have to apply the edits manually whenever you got such a filed file error message. Another way to go is to overwrite all your forum files with those from the large 2.0.19 upgrade package, the upgrade.php and.sql files shouldn't be uploaded as running the upgrader isn't necessary in this case. The only downside to this method is that all your third party mods will be uninstalled, and any manual edits done to the files will be gone.


Doug Heffernan

Quote from: Mumken on November 18, 2024, 04:39:59 PMShould I run the installation routine and then manually replace the search text with the replacement code?

if by installation routine you mean to go ahead and apply the patch first and then do the manual edits, then yes.

Kindred

but you need to be careful when doing the manual edit -- it's (maybe) not just a replace the code situation...   if it was, then the automated system would have worked.   Because of the failure, it suggests that some mod or other edit that you have made has changed the original code -- and just doing a replace with the new code for the version migth break whatever mod made the original change
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: