Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: RFD - tammikuu 15, 2020, 09:17:36 AP

Otsikko: Lost Admin access to a mod, error displayed, and more ...
Kirjoitti: RFD - tammikuu 15, 2020, 09:17:36 AP
forum is  SMF 2.0.13 release.  the theme is 'grasslands1'.

i wanted to update the 'simple audio video embedder' mod and when i deleted the older 4.1 version the results created havoc with the theme with lost theme icons.  it also removed access to another installed mod, 'global headers and footers' - the mod works, but i have no access to its controls, it's as if it was also deleted, which it wasn't. 

reloaded the theme backup fixed everything but now when entering admin the icons were missing and i get this up at the screen top ...

$txt['hover_length'] = 'Length of the message preview on hover'; $txt['hover_characters'] = 'characters';

... the /images folder for the grasslands1 theme was missing, i replaced that folder and the admin icons are back.

what's left that's a problem is that the 'global header footer' mod shows in the packages but i have no access to it, the 'simple audio video embedder' mod is not show in packages, but i have access to it via 'admin', but the icons are missing.  and then there's that screen message that pops up when entering admin.

please help.
Otsikko: Re: Lost Admin access to a mod, error displayed, and more ...
Kirjoitti: vbgamer45 - tammikuu 15, 2020, 09:33:51 AP
Attach your themes/default/lanaguages/modificatoins.english.php

Or look inside that file and find ?>
And move all the way to the end of the file.
Otsikko: Re: Lost Admin access to a mod, error displayed, and more ...
Kirjoitti: RFD - tammikuu 15, 2020, 09:47:26 AP
attached ...
Otsikko: Re: Lost Admin access to a mod, error displayed, and more ...
Kirjoitti: vbgamer45 - tammikuu 15, 2020, 09:50:42 AP
That file looks ok.
Do you have any other Modifications.*.php file?

Looking for the file that has "$txt['hover_characters'] = 'characters'; "  in it. Check your other themes languages folder as well.
Otsikko: Re: Lost Admin access to a mod, error displayed, and more ...
Kirjoitti: RFD - tammikuu 15, 2020, 10:03:40 AP
the attached image shows what's in Themes.  only the default has a modifications php file.

Otsikko: Re: Lost Admin access to a mod, error displayed, and more ...
Kirjoitti: RFD - tammikuu 15, 2020, 10:06:08 AP
the 'greengrass1' theme has no languages subdir ...
Otsikko: Re: Lost Admin access to a mod, error displayed, and more ...
Kirjoitti: vbgamer45 - tammikuu 15, 2020, 11:03:15 AP
Looks like my last reply didn't get posted.
Do you have any other modifications.*.php files in any of the themes

If not you would have to search your language files for "$txt['hover_characters'] = 'characters';
Otsikko: Re: Lost Admin access to a mod, error displayed, and more ...
Kirjoitti: RFD - tammikuu 15, 2020, 12:25:45 IP
Lainaus käyttäjältä: vbgamer45 - tammikuu 15, 2020, 11:03:15 AP
Looks like my last reply didn't get posted.
Do you have any other modifications.*.php files in any of the themes

If not you would have to search your language files for "$txt['hover_characters'] = 'characters';

in the Themes subdir, only the default theme has a languages subdir and none of the .php files within have the above string.

Otsikko: Re: Lost Admin access to a mod, error displayed, and more ...
Kirjoitti: Shambles - tammikuu 15, 2020, 12:55:49 IP
Look in Themes/default/languages/Admin.english.php
Otsikko: Re: Lost Admin access to a mod, error displayed, and more ...
Kirjoitti: RFD - tammikuu 15, 2020, 01:42:08 IP
Lainaus käyttäjältä: Shambles - tammikuu 15, 2020, 12:55:49 IP
Look in Themes/default/languages/Admin.english.php

yes, it's there, at the last line of that file ....

//Tapatalk
$txt['tapatalktitle'] = 'Tapatalk Settings';
$txt['tp_general_settings'] = 'General';
$txt['tp_other_settings'] = 'Others';
$txt['tp_board_settings'] = 'Boards';
$txt['tp_iar_settings'] = 'In App Registration';
$txt['tp_rebranding_settings'] = 'Rebranding Settings';?>
$txt['hover_length'] = 'Length of the message preview on hover';
$txt['hover_characters'] = 'characters';
Otsikko: Re: Lost Admin access to a mod, error displayed, and more ...
Kirjoitti: Illori - tammikuu 15, 2020, 01:50:36 IP
Lainaa$txt['tp_rebranding_settings'] = 'Rebranding Settings';?>

move that ?> to the end of the file.
Otsikko: Re: Lost Admin access to a mod, error displayed, and more ...
Kirjoitti: RFD - tammikuu 15, 2020, 02:06:09 IP
Lainaus käyttäjältä: Illori - tammikuu 15, 2020, 01:50:36 IP
Lainaa$txt['tp_rebranding_settings'] = 'Rebranding Settings';?>

move that ?> to the end of the file.

perfect, eliminated the error message, thank you!

what's left is gaining access to the 'global header footer' mod that's missing from the configuration menu.  the mod is listed in the packages, the header changes i had previously created are still viable and seen within the forum, i just have no access to the controls of that 'global header footer' mod to make changes to the forum header area.
Otsikko: Re: Lost Admin access to a mod, error displayed, and more ...
Kirjoitti: Shambles - tammikuu 15, 2020, 02:19:17 IP
Attach your Sources/Admin.php
Otsikko: Re: Lost Admin access to a mod, error displayed, and more ...
Kirjoitti: RFD - tammikuu 15, 2020, 02:22:29 IP
Lainaus käyttäjältä: Shambles - tammikuu 15, 2020, 02:19:17 IP
Attach your Sources/Admin.php
Otsikko: Re: Lost Admin access to a mod, error displayed, and more ...
Kirjoitti: Shambles - tammikuu 15, 2020, 02:44:11 IP
The menu item should be between the "Server Settings" and "Current Theme" items in the Admin>Configuration menu. Do you see it there?

EDIT: you said it doesn't. Check your error log.
Otsikko: Re: Lost Admin access to a mod, error displayed, and more ...
Kirjoitti: RFD - tammikuu 15, 2020, 03:24:32 IP
Lainaus käyttäjältä: Shambles - tammikuu 15, 2020, 02:44:11 IP
The menu item should be between the "Server Settings" and "Current Theme" items in the Admin>Configuration menu. Do you see it there?

EDIT: you said it doesn't. Check your error log.

from the error log - it appears to be about the global/header/footer mod ...
Otsikko: Re: Lost Admin access to a mod, error displayed, and more ...
Kirjoitti: Kindred - tammikuu 15, 2020, 04:09:18 IP
If you deleted a mod without uninstalling it 1st and then attempted to install a new version of the mod, you put your system in a badd state with probable duplicate code.

At this point you probably have partial installations of mods. Your best bet is to install a clean set of code, and then re install mods one at a time
Otsikko: Re: Lost Admin access to a mod, error displayed, and more ...
Kirjoitti: RFD - tammikuu 15, 2020, 04:20:26 IP
the mod ('simple audio video embedder') was first uninstalled before attempting to install the newer version, which failed.

Lainaa...Your best bet is to install a clean set of code, ......

which code, reinstall a mod or SMF release? 

Otsikko: Re: Lost Admin access to a mod, error displayed, and more ...
Kirjoitti: Sir Osis of Liver - tammikuu 15, 2020, 10:44:08 IP
Hey, Rob, did you fix this?  You're running 2.0.15 and showing Simple Audio Video installed.  Older version may not have uninstalled cleanly and borked new install.  None of my access works, look in /Packages/backups/, see if there's a backup before the uninstall.
Otsikko: Re: Lost Admin access to a mod, error displayed, and more ...
Kirjoitti: RFD - tammikuu 16, 2020, 05:39:16 AP
Lainaus käyttäjältä: Sir Osis of Liver - tammikuu 15, 2020, 10:44:08 IP
Hey, Rob, did you fix this?  You're running 2.0.15 and showing Simple Audio Video installed.  Older version may not have uninstalled cleanly and borked new install.  None of my access works, look in /Packages/backups/, see if there's a backup before the uninstall.

i think yer looking at tradgang and not bpgang ....
Otsikko: Re: Lost Admin access to a mod, error displayed, and more ...
Kirjoitti: Sir Osis of Liver - tammikuu 16, 2020, 05:52:31 IP
Fixed the mod, theme looks ok, anything still broken?
Otsikko: Re: Lost Admin access to a mod, error displayed, and more ...
Kirjoitti: RFD - tammikuu 16, 2020, 06:33:57 IP
Lainaus käyttäjältä: Sir Osis of Liver - tammikuu 16, 2020, 05:52:31 IP
Fixed the mod, theme looks ok, anything still broken?

themes/default/images was missing the grassland1 theme admin images.  just loaded them up.  so far, it all looks good.

thank you so much SOL!

r.