News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SMF 2.0.6 upgrade to 2.0.7 ./Sources/Subs-Editor.phpTest failed

Started by Painlesstom, December 25, 2020, 10:25:42 PM

Previous topic - Next topic

Painlesstom

Could use some help and advice. Have had my forum going for 8 years now and have avoided upgrading from SMF 2.0.6 since file test failure kept popping up during install, so I just left it alone and hoped for the best. I'd really like to be able to upgrade if there are real advantages for doing so. I've download the package via the forum package manager, and also downloaded from simplemachines directly and uploaded via the package manager, same results. I get this error:

21.   Execute Modification   ./Sources/Subs-Editor.php   Test failed

Code: (Find) [Select]
   // Parse unique ID's and disable javascript into the smileys - using the double space.
   $i = 1;
   $text = preg_replace('~(?:\s|&nbsp;)?<(img\ssrc="' . preg_quote($modSettings['smileys_url'], '~') . '/[^<>]+?/([^<>]+?)"\s*)[^<>]*?class="smiley" />~e', '\'<\' . ' . 'stripslashes(\'$1\') . \'alt="" title="" onresizestart="return false;" id="smiley_\' . ' . "\$" . 'i++ . \'_$2" style="padding: 0 3px 0 3px;" />\'', $text);

Code: (Replace) [Select]
   // Parse unique ID's and disable javascript into the smileys - using the double space.
   $text = preg_replace_callback('~(?:\s|&nbsp;)?<(img\ssrc="' . preg_quote($modSettings['smileys_url'], '~') . '/[^<>]+?/([^<>]+?)"\s*)[^<>]*?class="smiley" />~', create_function('$m', 'static $i = 1; return \'<\' . ' . 'stripslashes($m[1]) . \'alt="" title="" onresizestart="return false;" id="smiley_\' . ' . "\$" . 'i++ . \'_\' . $m[2] . \'" style="padding: 0 3px 0 3px;" />\';'), $text);


Bear in mind I don't have a clue what this stuff is, what it does, or what it means. So please reply to the novice that I am. If you can point me in the right direction and help me understand what I need to do, it would be greatly appreciated.

Kindred

1- yes, you really need to upgrade.you are 11 versions behind, including numerous security updates.

2- https://wiki.simplemachines.org/smf/Error_in_mod_installation
You'll have to manually change the target code,

Alternatively, you can use the large upgrade files
https://wiki.simplemachines.org/smf/Upgrading
This means that you will have to reinstall mods
Сл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."

Painlesstom

Thanks... All of that is why I'm still at 2.0.6.   I don't know how to manually change the code, what to change it to, I have no business under the hood there. Then using the large upgrade method there are tons of warnings about backing up databases and files and testing to make sure those are viable, then if all goes well I have to spend the time to reinstall all the mods I've added over the years. Feeling like I'm going to be with 2.0.6 a bit longer, I've got 8 years of work invested in the content of my forum and I'm not excited about risking it being down or losing any of it due to my ignorance.

Steve

In which case you could ask for help here: Help Wanted (not for support)

Be sure to read the stickied topics before posting.

Marking this solved. Feel free to to mark it unsolved if you have more questions about this issue. :)
My pet rock is not feeling well. I think it's stoned.

Painlesstom

I backed up via cPanel and just installed. Made it to 2.0.13 without problem. Installing 2.0.14 there were a couple errors and installation resulted in fatal error that crashed the site. Had to restore backup to regain forum. I'll start another post for help with that later. Just wanted to update this since there was more to share. Thanks for your replies.

Advertisement: