WPBP / WordPress-Plugin-Boilerplate-Powered

Wordpress Plugin Boilerplate but Powered with examples and a generator!
https://wpbp.github.io/
GNU General Public License v3.0
789 stars 114 forks source link

call_user_func_array() expects parameter 1 to be a valid callback #33

Closed MercedesAMG1 closed 9 years ago

MercedesAMG1 commented 9 years ago

Got the generator to work on a mac and was able to genrate full set of files

Finally got it loaded into a localhost wamp install

Was able to successfully install plugin

Got the following two(2) errors when trying to activate plugin (1) Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'My_First_Try_Admin' not found in C:\wamp\www\website.com\wp-includes\plugin.php on line 496 (2) Fatal error: Class 'Plugin_Name' not found in C:\wamp\www\website.com\wp-content\plugins\my-first-try\includes\widgets\sample.php on line 8

MercedesAMG1 commented 9 years ago

In Error (1) wordpress is complaining about something Error (2) may be because of error(1) Not sure what to do or where to fix

MercedesAMG1 commented 9 years ago

I figured it out

Where it says to change the wording "Plugin_Name" I have to change that to the name of the plugin

I just kept fixing the errors as they showed up and all seems to fine with this issue.

@TODO means there is something for the coder todo

Mte90 commented 9 years ago

Uhm okay, you found a bug :-) But the correct place for problems of the generator is the repo of the generator https://github.com/Mte90/generator-wp-plugin-boilerplate-powered/

Mte90 commented 9 years ago

ok i've released a new version of boilerplate and generator with bugfix :-)