TGMPA / TGM-Plugin-Activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins). It allows your users to install, update and even automatically activate plugins in singular or bulk fashion using native WordPress classes, functions and interfaces. You can reference bundled plugins, plugins from the WordPress Plugin Repository or even plugins hosted elsewhere on the internet.
http://tgmpluginactivation.com/
GNU General Public License v2.0
1.76k stars 431 forks source link

TGMPA plugin installation notices not showing #677

Closed Muazhesam closed 7 years ago

Muazhesam commented 7 years ago

After Theme Installation and activation there should be a notice about installing plugins on that theme.But i am not getting that message/notice. Look at the below picture

Image of Yaktocat

But still there is plugins to install and activate

Image of Yaktocat

How can i solve this problem?

jrfnl commented 7 years ago

Have you previously had a theme/plugin installed which also used TGMPA and dismissed the admin notice ? If so, that is most likely the problem as the admin notice is currently not unique to your theme/plugin.

Muazhesam commented 7 years ago

I have tried on new wp install on new domain..but result zero..

jrfnl commented 7 years ago

What setting have you got for has_notices in the $config array ?

Muazhesam commented 7 years ago

'has_notices' => true,

jrfnl commented 7 years ago

I presume you have access to the database: could you do a search in the usermeta table for meta_key LIKE 'tgmpa_dismissed_notice%' ? If it is truly a fresh install, that key should not exist in the usermeta table. If it does.... that's the problem and only goes to show that the admin notice was dismissed before.

You can delete those rows from the table in that case and the admin notice should start showing up again.

Muazhesam commented 7 years ago

Does not exists! screenshot_37

screenshot_38

jrfnl commented 7 years ago

Oh dear. Ok, do you know of any plugins on your website which also use TGMPA ?

Muazhesam commented 7 years ago

Solved that dude..Thanks a lot

GaryJones commented 7 years ago

@Muazhesam Can you please share your solution so future readers know what to try?

jrfnl commented 7 years ago

What @GaryJones said. Oh and...

Solved that dude

Eh... I presume you mean Thank you for your help, fair lady ?