PHP Warning
-
I am getting the following warning in my apache log every time someone hits a page that has an expiring post — which is basically everything.
[Thu Dec 22 06:43:09.808441 2016] [:error] [pid 15918] [client xxx.xxx.xxx.xxx] PHP Warning: Missing argument 2 for expirationdate_add_column() in /../../../wp-content/plugins/post-expirator/post-expirator.php on line 50, referer: http://mysite.org/resources/calendar/?date=2016-04In the code, it’s this function:
/** * adds an 'Expires' column to the post display table. */ function expirationdate_add_column ($columns,$type) { $defaults = get_option('expirationdateDefaults'.ucfirst($type)); if (!isset($defaults['activeMetaBox']) || $defaults['activeMetaBox'] == 'active') { $columns['expirationdate'] = __('Expires','post-expirator'); } return $columns; } add_filter ('manage_posts_columns', 'expirationdate_add_column', 10, 2);Any help?
The topic ‘PHP Warning’ is closed to new replies.