Wordpress Help Please!?

Die_HenkTait

Member
Joined
Oct 13, 2015
Messages
14
Reaction score
0
Im getting code on some of my pages:
Warning: Illegal string offset 'gpsLatitude' in /home/websitename/public_html/wp-content/themes/directory/functions/directory.php on line 173
And
Warning: Illegal string offset 'field' in /home/websitename/public_html/wp-content/themes/directory/header.php on line 27

I have no idea what to do. Can anyone help me please
 
Last edited:
Quick Google give this
The code is valid, but it expects the function parameter $inputs to be an array. The "Illegal string offset" warning when using $inputs['type'] means that the function is being passed a string instead of an array. (And then since a string offset is a number, 'type' is not suitable.)
 
AIT Directory Theme.
I saw that aswell on google but to be honest im not a programmer and a beginner if that.
Not sure what array means
 
AIT Directory Theme.
I saw that aswell on google but to be honest im not a programmer and a beginner if that.
Not sure what array means

No problem, PM me your contact details and I will contact you in the morning to see if I can help :)
 
Last edited:
No problem, PM me your contact details and I will contact you in the morning to see if I can help :)

I do not see anywhere i can send you pm .
I am in the road tomorrow and thursday. can you help me maybe friday after 12?
Or pm me (if you can) and i will send you my details
 
Im getting code on some of my pages:
Warning: Illegal string offset 'gpsLatitude' in /home/websitename/public_html/wp-content/themes/directory/functions/directory.php on line 173
And
Warning: Illegal string offset 'field' in /home/websitename/public_html/wp-content/themes/directory/header.php on line 27

I have no idea what to do. Can anyone help me please

There's an issue with your theme, check for an update or do the following:
in /home/websitename/public_html/wp-content/themes/directory/functions/directory.php on line 173 you probably have something like:
$array['gpsLatitude']

but $array has no key gpsLatitude, so on line 172 you can add something like:
if(!isset($array['gpsLatitude'])) {
$array['gpsLatitude'] = '';
}

Similar thing with 'field'.

This should remove the error message but may mess with your functionality, depending on what the code is supposed to do..
 
Top
Sign up to the MyBroadband newsletter
X