PHP Warning: Illegal string offset

I’m going to let my ignorance show in a plea for help. I have a desperate client and he seems to have far too much faith in my abilities. I know VERY little about PHP but I’ve agreed to try and help before he pays someone else a lot of money to do it. He’s receiving the following errors that may be referring to deprecated PHP:

[Mon Aug 05 17:16:37 2013] [error] [client 76.23.3.219] PHP Warning:
Illegal string offset ‘phone’ in
/var/www/vhosts/sc-services.com/httpdocs/inc_adm/job/sites.inc.php on line
63, referer:
http://sc-services.com/admin/tracking?vendor=Enter%20New&carrier=Enter%20New
&status=none&job=none&destination=new&origination=new

[Mon Aug 05 17:16:37 2013] [error] [client 76.23.3.219] PHP Warning:
Illegal string offset ‘xtn’ in
/var/www/vhosts/sc-services.com/httpdocs/inc_adm/job/sites.inc.php on line
66, referer:
http://sc-services.com/admin/tracking?vendor=Enter%20New&carrier=Enter%20New
&status=none&job=none&destination=new&origination=new

[Mon Aug 05 17:16:40 2013] [error] [client 76.23.3.219] PHP Warning:
Illegal string offset ‘phone’ in
/var/www/vhosts/sc-services.com/httpdocs/inc_adm/job/sites.inc.php on line
63, referer: http://sc-services.com/admin/job

[Mon Aug 05 17:16:40 2013]
[error] [client 76.23.3.219] PHP Warning: Illegal string offset ‘xtn’ in
/var/www/vhosts/sc-services.com/httpdocs/inc_adm/job/sites.inc.php on line
66, referer: http://sc-services.com/admin/job

[Mon Aug 05 17:19:26 2013]
[error] [client 76.23.3.219] PHP Warning: Illegal string offset ‘phone’ in
/var/www/vhosts/sc-services.com/httpdocs/inc_adm/job/sites.inc.php on line
63, referer: http://sc-services.com/admin/vendors?vendor=client_1115

[Mon Aug 05 17:19:26 2013] [error] [client 76.23.3.219] PHP Warning:
Illegal string offset ‘xtn’ in
/var/www/vhosts/sc-services.com/httpdocs/inc_adm/job/sites.inc.php on line
66, referer: http://sc-services.com/admin/vendors?vendor=client_1115

I pulled up the first one. Here’s line 63
[php][/php]

Since all of the errors appear to be similar, I’m hoping if someone can explain the problem and solution to me, I can figure out the rest. I really appreciate any help you are willing to provide. Please excuse my ignorance. Thank you in advance! :slight_smile:

Don’t ever apologize for asking for help, specially when you don’t have a clue to what’s happening. Where is the information coming from? I gather its in some sort of loop, what what kind. from what I’ve been reading, its trying to find phone, xtn, etc. in an array, but those values aren’t there.

If you’re sure the keys are there, then i’d suggest doing a var_dump (or print_r()) on $value to see what the array contains.

Sponsor our Newsletter | Privacy Policy | Terms of Service