Solved

WordPress not using localhost

Posted on 2014-04-18
4
186 Views
Last Modified: 2014-04-29
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
Comment
Question by:slightlyoff
  • 2
4 Comments
 
LVL 34

Accepted Solution

by:
Dan Craciun earned 500 total points
Comment Utility
It complains on this:
$themeOptions['logo']['url']

Do a print_r($themeOptions) to see what it contains.
0
 
LVL 28

Expert Comment

by:chilternPC
Comment Utility
is this a standard install with a built in theme or are you creating a theme?
0
 
LVL 1

Author Closing Comment

by:slightlyoff
Comment Utility
Thank you for your help!  It was the logo.  It wasn't set.  Sorry for the delay in responding.
0
 
LVL 34

Expert Comment

by:Dan Craciun
Comment Utility
You're welcome. Glad I could help!
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Who says nothing in life is free? WordPress.com is a freebie. WordPress.org's downloadable publishing platform is free. Heck, even WordPressMU is free. WordPress is an open source project, which means it can be used on any personal or commerc…
I want to start by talking about the use of plug-ins for WordPress. I started a web-site for a company I was working for a few years ago; I had extremely basic knowledge of HTML. I am a Graphic Designer by trade so I invited the opportunity as a cha…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now