[wp-trac] [WordPress Trac] #41151: Fatal error on Plugin Activation if it bundled in theme

WordPress Trac noreply at wordpress.org
Sat Jun 24 15:05:19 UTC 2017


#41151: Fatal error on Plugin Activation if it bundled in theme
----------------------------+-----------------------------
 Reporter:  rinkuyadav999   |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Plugins         |    Version:  4.8
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 I have bundled 'Hello Dolly' plugin in 'Twenty Seventeen' theme and it
 works fine but when i install and activate 'Hello Dolly' plugin, it
 display 'Plugin could not be activated because it triggered a fatal
 error.' and 'Fatal error: Cannot redeclare hello_dolly_get_lyric()
 (previously declared in C:\xampp\htdocs\start\wordpress-svn\src\wp-
 content\themes\twentyseventeen\hello-dolly\hello.php:46) in
 C:\xampp\htdocs\start\wordpress-svn\src\wp-content\plugins\hello-
 dolly\hello.php on line 52'

 I have modified plugin and added {{{#!php
 <?php
 if( ! function_exists( 'hello_dolly_get_lyric' ) ) {
 }}}

 But still does not activate.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41151>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list