Title: [Plugin: Mailing List] fatal error when activating plugin
Last modified: August 20, 2016

---

# [Plugin: Mailing List] fatal error when activating plugin

 *  [brucedwilliams](https://wordpress.org/support/users/brucedwilliams/)
 * (@brucedwilliams)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-mailing-list-fatal-error-when-activating-plugin/)
 * Plugin produces fatal error when attempting to activate. Nothing is logged in
   the log.txt file the author mentions in another forum thread.
 * [http://wordpress.org/extend/plugins/mailz/](http://wordpress.org/extend/plugins/mailz/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [zingiri](https://wordpress.org/support/users/zingiri/)
 * (@zingiri)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-mailing-list-fatal-error-when-activating-plugin/#post-2323702)
 * Is this a new installation or an upgrade? What version are you using?
 *  [feelfree](https://wordpress.org/support/users/feelfree/)
 * (@feelfree)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-mailing-list-fatal-error-when-activating-plugin/#post-2323873)
 * Error while installing the plugin on wp 3.2.1
 *  Plugin Author [zingiri](https://wordpress.org/support/users/zingiri/)
 * (@zingiri)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-mailing-list-fatal-error-when-activating-plugin/#post-2323892)
 * It would be helpful if you provide a bit more info about the error you’re encountering…
 *  [Geoff Wass](https://wordpress.org/support/users/geoff-wass/)
 * (@geoff-wass)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-mailing-list-fatal-error-when-activating-plugin/#post-2323914)
 * Zingiri,
 * I can’t say what the others encountered, but here is the error I get when installing
   on WordPress 3.2.1 on a WinXP machine:
 * > Plugin could not be activated because it triggered a fatal error.
   >  Could not
   > create phpList database tables
 * If there is anything else I can tell you that would help, let me know.
 *  Plugin Author [zingiri](https://wordpress.org/support/users/zingiri/)
 * (@zingiri)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-mailing-list-fatal-error-when-activating-plugin/#post-2323915)
 * Local installations are always the hardest to debug. Most likely curl missing,
   permission problems or really a database access problem.
    I suggest you try on
   a hosted Linux server.
 *  [Geoff Wass](https://wordpress.org/support/users/geoff-wass/)
 * (@geoff-wass)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-mailing-list-fatal-error-when-activating-plugin/#post-2323920)
 * Zingiri,
 * Thank-you for the reply. It’s a long story, but I have to develop locally for
   now and I will be uploading later (hopefully in the coming few weeks). I’ll try
   again at that time when I can work on the host.
 *  [uacstudios](https://wordpress.org/support/users/uacstudios/)
 * (@uacstudios)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-mailing-list-fatal-error-when-activating-plugin/#post-2323949)
 * I found this error was because the server my website was hosted on didn’t resolve
   the website’s DNS name locally. Therefore, when cUrl tried to visit a URL to 
   create the databases, it was failing to visit the local server. Append these 
   two lines immediately after “function zing_mailz_activate() {” on line 115 of
   the mailz.php file in the root of the plugin:
 *     ```
       error_reporting(E_ALL);
       ini_set('display_errors', '1');
       ```
   
 * If it is the same error, it will show you the URL which could not be resolved.
   You can visit this URL manually to create the tables in the database (hence the
   error when this is not done). Then retry activation and it should work.
 * (Sorry if this doesn’t make much sense, written in a hurry).
 *  [uacstudios](https://wordpress.org/support/users/uacstudios/)
 * (@uacstudios)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-mailing-list-fatal-error-when-activating-plugin/#post-2323950)
 * Also worth noting that this (cUrl to local address) seems to be the method that
   the plugin uses to display pages in the admin panel. Maybe a solution to the 
   dev would be to have an option to use a proxy for the cUrl parts.
 *  [Geoff Wass](https://wordpress.org/support/users/geoff-wass/)
 * (@geoff-wass)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-mailing-list-fatal-error-when-activating-plugin/#post-2323953)
 * uacstudios,
 * Thank-you for your message. You know more about this stuff than I do. I placed
   your snippet of code into mailz.php and got this when I tried to activate the
   plug-in on my local PC:
 *     ```
       Warning: HTTP Error:22/The requested URL returned error: 400 at http://localhost:28860/wp-content/plugins/mailz/lists/admin/index.php?plugin_status=all&paged=1&s=&page=initialise&firstintall=1&wpdb=DiNuovo2&wpf=wp_&wph=localhost&wpu=wordpressuser&wpp=MySQL123%21&wppageid=&wpsiteurl=http%3A%2F%2Flocalhost%3A28860 in C:\Documents and Settings\Work\My Documents\My Web Sites\DiNuovo2\wp-content\plugins\mailz\classes\http.class.php on line 186
        Could not create phpList database tables
       ```
   
 * I have a feeling this is the same issue as you described. I am sure it will be
   useful to Zingiri.
 * Thank-you again for sharing this.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘[Plugin: Mailing List] fatal error when activating plugin’ is closed 
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mailz_1e1e1b.svg)
 * [Mailing List](https://wordpress.org/plugins/mailz/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailz/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailz/)
 * [Active Topics](https://wordpress.org/support/plugin/mailz/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailz/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailz/reviews/)

 * 9 replies
 * 5 participants
 * Last reply from: [Geoff Wass](https://wordpress.org/support/users/geoff-wass/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-mailing-list-fatal-error-when-activating-plugin/#post-2323953)
 * Status: not resolved