• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 195
  • Last Modified:

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!!!
0
slightlyoff
Asked:
slightlyoff
  • 2
1 Solution
 
Dan CraciunIT ConsultantCommented:
It complains on this:
$themeOptions['logo']['url']

Do a print_r($themeOptions) to see what it contains.
0
 
chilternPCCommented:
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

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now