WPIntell

Source evidence

Error, help! Warning: array_key_exists()

Display Name Author Permalink · support · 2013-12-04T01:45:00+00:00

complaintsentiment
mediumseverity
0.92relevance
4replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

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

2 / 25 rows with source links

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

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

23 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
nkeatign unresolved
Getting the following error: Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in /nas/wp/www/staging/stackstreet/wp-content/plugins/display-name-author-permalink/display-name-author-permalink.php on line 55 http://wordpress.org/plugins/display-name-author-permalink/ I’m Getting this same error too. Would love help resolving it. I have the same error. Pleace help: Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in ..../wp-content/plugins/display-name-author-permalink/display-name-author-permalink.php on line 55 What cam we do??? The Error is under Author Ok, i dont no, but i have make this: In the display-name-author-permalink.php Search: // Replace the username in author links generated in the theme with the users display name function filter_author($link,$author_id,$author_nicename) { if ( array_key_exists($author_nicename, $this->users) ) $link = str_replace($author_nicename,$this->users[$author_nicename], $link); return $link; } replace with // Replace the username in author links generated in the theme with the users display name function filter_author($link,$author_id,$author_nicename) { if(is_string($author_nicename)) { if ( array_key_exists($author_nicename, $this->users) ) $link = str_replace($author_nicename,$this->users[$author_nicename], $link); return $link; } } I have this snippet just found. I do not know whether that’s right or what happened to it. The error is no longer displayed. Important: I do not guarantee. Dear Support Team. Please tell me how to fix this error! If the code is ok, then you say please.

Comments

4 shown
Dannyroberts 2014-01-08T03:00:00+00:00

I’m Getting this same error too. Would love help resolving it.

DjPD 2014-08-29T13:27:00+00:00

I have the same error. Pleace help: Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in ..../wp-content/plugins/display-name-author-permalink/display-name-author-permalink.php on line 55 What cam we do???

DjPD 2014-08-29T13:30:00+00:00

The Error is under Author

DjPD 2014-08-29T13:37:00+00:00

Ok, i dont no, but i have make this: In the display-name-author-permalink.php Search: // Replace the username in author links generated in the theme with the users display name function filter_author($link,$author_id,$author_nicename) { if ( array_key_exists($author_nicename, $this->users) ) $link = str_replace($author_nicename,$this->users[$author_nicename], $link); return $link; } replace with // Replace the username in author links generated in the theme with the users display name function filter_author($link,$author_id,$author_nicename) { if(is_string($author_nicename)) { if ( array_key_exists($author_nicename, $this->users) ) $link = str_replace($author_nicename,$this->users[$author_nicename], $link); return $link; } } I have this snippet just found. I do not know whether that’s right or what happened to it. The error is no longer displayed. Important: I do not guarantee. Dear Support Team. Please tell me how to fix this error! If the code is ok, then you say please.