• Resolved Tom

    (@jeffreeeeey)


    Upgrades to the latest version on a clients site today at their request but now the “Promotions” menu item has gone from the Dashboard menu. I’ve tried disabling other plugins to see if there’s a conflict but to no avail.

    I’ve also unable to access the settings page for it as there’s no link in the menu. Since the upgrade, the pagination has been added to the slide (this was disabled prior to the upgrade).

    Any ideas?

    http://wordpress.org/extend/plugins/promotion-slider/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Micah Wood

    (@woodent)

    @tom,

    I am trying to deduce what the cause of this could be… can you do a little investigation for me?

    Aside from disabling all other plugins, can you also switch to a default WordPress theme and see if the problem still exists? If you can indicate what version of WordPress you are using, that would be great. Also, perhaps try typing in the URL manually to see if you get any errors: <your domain>/wp-admin/edit.php?post_type=ps_promotion&page=options

    Thanks!

    Thread Starter Tom

    (@jeffreeeeey)

    Hi Micah,

    I’m using the latest version of WP. Have tried using default theme although with the same results (not sure why that’d matter however as it’s only a back-end issue)?

    Also visited the options page using the link you gave above – that works fine and I can change/ save settings no problem.

    It appears the links are just all missing from the menu

    Thanks

    Thread Starter Tom

    (@jeffreeeeey)

    Also, the slides don’t seem to change (neither automatically or upon click of the nav) if using “Slider navigation links” and loading javascript in the footer (was defaulted to footer after upgrade).

    I have now changed that to load in the header and it’s working fine (on the front end)

    Plugin Author Micah Wood

    (@woodent)

    @tom,

    So just to make sure I fully understand the issue, everything on the front end works fine and the only thing that isn’t working as expected is that the menu items in the admin are hidden… right?

    Since it is working in the tests I have done and you have ruled out the theme / plugins, I’m not entirely sure what to make of it. It would seem to me that something is coming behind the plugin and unregistering the post type page in the admin.

    I doubt this is something specific to the plugin, or I probably would have heard from more than just two people regarding this issue after over 1,000 downloads today. Is there anything specific about your setup that might be atypical? I would be willing to take a look at the backend to help diagnose the issue.

    Thread Starter Tom

    (@jeffreeeeey)

    Hi Micah,

    I’ve been debugging this as admittedly it was a strange one – I’ve now got to the bottom of it.. For some reason, whoever developed the website had added this to the theme’s functions file:

    function wp_admin_dashboard_remove_menus() {
        global $menu;
        $restricted = array(__('Links'), __('Promotions'));  //**************
        end ($menu);
        while (prev($menu)){
            $value = explode(' ',$menu[key($menu)][0]);
            if(in_array($value[0] != NULL?$value[0]:"" , $restricted)){unset($menu[key($menu)]);}
        }
    }
    add_action('admin_menu', 'wp_admin_dashboard_remove_menus');

    So I’ve now amended that and got the links for your plugin back in the dashboard menu.

    All good here now, but two things you might wish to note about the recent version that you released:

    1. After upgrading, the settings of the plugin were reset (noticeably, the navigation style)
    2. Slider wasn’t sliding automatically, or by clicking the navigation. This was because the JS was being loaded in the footer. I’m not sure if that was an option in previous versions to be honest. After switching it to load in the site head, it worked again

    Plugin Author Micah Wood

    (@woodent)

    @jeffreeeeey,

    Thanks for pointing out those two items. I will definitely work on number one before the next release. Number two was a side effect of number one combined with another likely issue with your theme.

    Check your theme’s footer.php file for wp_footer(). It should be present just before the closing body tag (</body>). If it isn’t there, you should probably add it.

    Thread Starter Tom

    (@jeffreeeeey)

    Hi Micah,

    Yes both wp head and footer and intact within the theme. All other plugins (including ones I’ve created myself) manage to hook in just fine. It’s just that with yours, loading JS in the footer stops your plugin from working.

    No issue for me as it’s fine loading in the header but just thought I’d let you know.

    Thanks

    Plugin Author Micah Wood

    (@woodent)

    Thanks again for checking that. Indeed it should work.. I will have to look into that as well.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Update removed Promotions from menu’ is closed to new replies.