SimpleMachines / tools

Tools for SMF: useful scripts, install/repair and others.
22 stars 34 forks source link

repair_settings nulls out attachmentUploadDir #44

Closed sbulen closed 4 years ago

sbulen commented 4 years ago

This is an old one that pops up once in a while, but I have finally narrowed down when/what is happening.

If moving a forum (or building a test copy, etc.), and all new settings are required, you will go thru the normal 2-step repair_settings process: First time thru, db credentials are entered & corrected. Second time thru, all the other urls & folders are set.

But... First time thru, when correcting the new db credentials, attachmentUploadDir is empty after you press SAVE. Something about that first pass wipes out the attachment folder setting for some reason.

Possibly related to #41 .

This affects both 2.0 & 2.1.

To reproduce in 2.0 or 2.1:

You will now see that the attachmentUploadDir field in the settings table is empty.