Support Forum

Error Warning | array_key_exists()

OL oldsaint
oldsaint
Member

First I can’t thank this forum enough for the info that is available. When I came here over a year ago I knew nothing about simple press or WP and very little about code. During that time I’ve learned enough to maintain our club’s website, completely reconstruct another site and to realize just how much I haven’t got a clue on. lol embarassed

Thank you, Thank you!

 

I have a couple of errors that are popping up in my log that I haven’t been able to find an answer for.

First:

 file: /simple-press/sp-api/sp-api-filters.php

line: 1242

function: parse_url

Warning | parse_url(/s1104.photobucket.com/albums/problem-with-post-edit-button324/trickimaster/?action=view&amp;current=seahorse3.jpg" target="_blank"><img src="http:/i1104.photobucket.com/albums/problem-with-post-edit-button324/trickimaster/seahorse3.jpg" border="0" alt="Photobucket"></a>) [function.parse-url]: Unable to parse URL

This is line 1242

$parsed = parse_url($src[1]);

Second:

file: /simple-press/sp-api/sp-api-filters.php

line: 1243

function: array_key_exists

Warning | array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object

This is line 1243

if (array_key_exists(‘scheme’, $parsed)) {

 

A couple of weeks ago I thought I found the photo seahorse3.jpg and deleted it from the site figuring if I’m not smart enough to fix the error then I’ll just remove what’s causing it. Well, that didn’t work.

Any help or direction is greatly appreciated.

3 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Do you know how the url got into a post? It looks a little to me like someone has pasted the url in after it has been urlencoded instead of pasting in the raw url.

I would suggest the best method would be to edit the post and repair the actual url which seems to simply be:

s1104.photobucket.com/albums/problem-with-post-edit-button324/trickimaster/?action=view¤t=seahorse3.jpg

OL oldsaint
oldsaint
Member

Thank you.

 

Fixed!

 

That was too easy. I should have caught that. embarassed