WordPress not using localhost

Hello,

I'm getting this error: "Illegal string offset 'url' in C:\wamp\www\mywebsite\wp-content\themes\theme\header.php on line 109"

Line 109 is

 <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img alt="<?php bloginfo('name'); ?> | <?php bloginfo('description'); ?>" src="<?php if($themeOptions['logo']['url'] != "") echo $themeOptions['logo']['url']; else echo $logo; ?>"></a>

Open in new window


It seems as if home_url is pulling my absolute path - but I can't figure out why. I've looked through the database and files and everything seems to be set to localhost/mysite...  any ideas on what might be going wrong?

Thanks for your help!!!
LVL 1
slightlyoffAsked:
Who is Participating?
 
Dan CraciunIT ConsultantCommented:
It complains on this:
$themeOptions['logo']['url']

Do a print_r($themeOptions) to see what it contains.
0
 
Peter HartCommented:
is this a standard install with a built in theme or are you creating a theme?
0
 
slightlyoffAuthor Commented:
Thank you for your help!  It was the logo.  It wasn't set.  Sorry for the delay in responding.
0
 
Dan CraciunIT ConsultantCommented:
You're welcome. Glad I could help!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.