Image layouts won't stick (v. 2.93)
When logging in as the general administrator, if you try to change the image layouts to something like slideshow, gallery, etc., the image types won't stick. This is happening because the system is using the default layouts specified in the script, and nothing is in the database.
To fix this without any coding changes, just log in as the master administrator, select Layouts, and then click Update Layouts to save the default data into the database. You only have to do this once per site; after that, the system will start using the database details.
For a coding fix that will not force you to log in as the master password, open the layouts.php file in the /storeadmin/ folder, and add the code:
// FIX BLANK LAYOUTS
$blanksingle = $dataconn->query("UPDATE " .SB_DB_PREFIX ."_vars SET SingleLayout='" . addslash_mq($singledefault) . "' WHERE SingleLayout=''");
$blankdouble = $dataconn->query("UPDATE " .SB_DB_PREFIX ."_vars SET DoubleLayout='" . addslash_mq($doubledefault) . "' WHERE DoubleLayout=''");
$blanktriple = $dataconn->query("UPDATE " .SB_DB_PREFIX ."_vars SET TripleLayout='" . addslash_mq($tripledefault) . "' WHERE TripleLayout=''");
$blankmulti = $dataconn->query("UPDATE " .SB_DB_PREFIX ."_vars SET MultiLayout='" . addslash_mq($multidefault) . "' WHERE MultiLayout=''");
$blankdetail = $dataconn->query("UPDATE " .SB_DB_PREFIX ."_vars SET DetailLayout='" . addslash_mq($detaildefault) . "' WHERE DetailLayout=''");
just above the code:
// IMAGE TYPES $image_options = '';