Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Pyrhel on July 25, 2012, 06:46:25 AM

Title: Missing options from the Admin panel
Post by: Pyrhel on July 25, 2012, 06:46:25 AM
I wrote in the topic of one of the plugins, that i have problems with, but maybe its better to open a topic here, because it's not a plugin-specific problem. Anyway, here what happens...

I have several plugins like Thank-O-Matic, Facebook box, etc, that have options available in the admin section. They was working few days ago. I haven't made any modifications, and the only change was a system's software update. The php version is 5.4.4. The problem is about the options in the admin panel. They're not displayed. Nothing in the page source! ???
The translations in the internationalization files are ok. I'm pretty sure about that, because when I put them in an echo in the functions that display the menus the translation is displayed. Here how my admin panel looks now:
(http://a5.sphotos.ak.fbcdn.net/hphotos-ak-ash4/391307_479423178735867_1501739387_n.jpg)

For example, the the code, that should display the Thank-O-Matic menu in the admin panel is:
28 //Admin Areas
29 function ThanYou_add_admin_areas($adminAreas)
30 {
31     global $txt;
32     $adminAreas['config']['areas'] += array(
33         'thankyoupostsettings' => array(
34             'label' => $txt['thankyouposttitle'],
35             'file' => 'ManageThankYouPost.php',
36             'function' => 'ManageThankYouPost',
37             'icon' => 'thank_you_settings.png',
38             'subsections' => array(
39                 'general' => array($txt['general_settings']),
40                 'layout' => array($txt['mods_cat_layout']),
41                 'permission' => array($txt['edit_permissions'], 'enabled' => allowedTo('manage_permissions')),
42                 'boards' => array($txt['admin_boards']),
43                 'modrelated' => array($txt['thxmodification']),
44             ),
45         ),
46     );
47
48     $adminAreas['maintenance']['areas'] += array(
49         'maintainThankYouPost' => array(
50             'label' => $txt['maintain_thxpost'],
51             'file' => 'ThankYouPost-Maintaince.php',
52             'icon' => 'thank_you_maintain.png',
53             'function' => 'ManageMaintenanceThankYouPost',
54             'subsections' => array(
55                 'maintain' => array($txt['maintain_thank_you_post_maintainaince'], 'admin_forum'),
56                 'recount' => array($txt['maintain_thank_you_post_recount'], 'admin_forum'),
57             ),
58         ),
59     );
60 }

I forgot to say, there are no errors or warnings in the logs. Do you have any ideas?
Title: Re: Missing options from the Admin panel
Post by: Lout on July 25, 2012, 07:57:24 AM
Look at the following post, it does appear that the change to 5.4 is indeed the culprit -

http://www.simplemachines.org/community/index.php?topic=419479.msg3342085#msg3342085
Title: Re: Missing options from the Admin panel
Post by: Pyrhel on July 25, 2012, 08:10:19 AM
Lout, you are my hero! : ))))
Thank you, that solved my problem.