Title: Post Network installation error
Last modified: January 25, 2023

---

# Post Network installation error

 *  Resolved [dmischel](https://wordpress.org/support/users/dmischel/)
 * (@dmischel)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/post-network-installation-error/)
 * I would like to include Post Network in a site I am working on. I am using WordPress
   on a DreamHost site. WordPress version 6.1.1, PHP 8.0.
 * Has anyone seen this problem? Is there a fix? When I try to activate the plugin
   I get this error (replacing my domain with mysite.com):
 * Fatal error: Uncaught Error: Using $this when not in object context in /home/
   dh_7zqbrb/mysite.com/wp-content/plugins/post-network/includes/admin.php:536 Stack
   trace: 
   #0 /home/dh_7zqbrb/mysite.com/wp-content/plugins/post-network/post-network.
   php(53): PostNetwork::pn_option_init() #1 /home/dh_7zqbrb/mysite.com/wp-includes/
   class-wp-hook.php(308): pn_activation(”) #2 /home/dh_7zqbrb/mysite.com/wp-includes/
   class-wp-hook.php(332): WP_Hook->apply_filters(”, Array) #3 /home/dh_7zqbrb/mysite.
   com/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /home/dh_7zqbrb/
   mysite.com/wp-admin/plugins.php(194): do_action(‘activate_post-n…’) #5 {main}
   thrown in /home/dh_7zqbrb/mysite.com/wp-content/plugins/post-network/includes/
   admin.php on line 536
 * The code at issue:
 *     public static function pn_option_init() {
    $fields = $this->pn_get_fields();#
   THIS LINE GIVES THE ERROR $default_settings = array_column( $fields, ‘default’,‘
   id’ ); update_option( self::$option_name, $default_settings ); }
 * Has anyone seen this problem? Is there a fix?

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

 *  Plugin Author [Naoto Onodera](https://wordpress.org/support/users/naotoonodera/)
 * (@naotoonodera)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/post-network-installation-error/#post-16586114)
 * [@dmischel](https://wordpress.org/support/users/dmischel/) 
   Fixed this error 
   in ver.1.4.1Thank you!
 *  Thread Starter [dmischel](https://wordpress.org/support/users/dmischel/)
 * (@dmischel)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/post-network-installation-error/#post-16608323)
 * Thanks. I can confirm that installation now works. However, activation fails 
   and I’ll post that on a separate thread since this is now resolved.

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

The topic ‘Post Network installation error’ is closed to new replies.

 * ![](https://ps.w.org/post-network/assets/icon-128x128.png?rev=3424386)
 * [Post Network](https://wordpress.org/plugins/post-network/)
 * [Support Threads](https://wordpress.org/support/plugin/post-network/)
 * [Active Topics](https://wordpress.org/support/plugin/post-network/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-network/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-network/reviews/)

## Tags

 * [activation error](https://wordpress.org/support/topic-tag/activation-error/)
 * [admin.php](https://wordpress.org/support/topic-tag/admin-php/)
 * [uncaught error](https://wordpress.org/support/topic-tag/uncaught-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [dmischel](https://wordpress.org/support/users/dmischel/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/post-network-installation-error/#post-16608323)
 * Status: resolved