WPIntell

Source evidence

Post Network installation error

Post Network · support · 2023-01-25T01:52:00+00:00

mixedsentiment
highseverity
0.95relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 34 rows with source links

14.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

29 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
dmischel resolved
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? @dmischel Fixed this error in ver.1.4.1 Thank you! 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.

Comments

2 shown
Naoto Onodera 2023-03-22T21:18:00+00:00

@dmischel Fixed this error in ver.1.4.1 Thank you!

dmischel 2023-03-30T01:38:00+00:00

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.