Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

WordPress not using localhost

Posted on 2014-04-18
4
Medium Priority
?
194 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 35

Accepted Solution

by:
Dan Craciun earned 2000 total points
ID: 40010009
It complains on this:
$themeOptions['logo']['url']

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

Expert Comment

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

Author Closing Comment

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

Expert Comment

by:Dan Craciun
ID: 40031190
You're welcome. Glad I could help!
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are looking for plug-ins to add functions to your WordPress small business web site, take some time to read though this comprehensive list.  These are all the plugins I use for my customers WordPress web sites, as well as my own.  Be sure to …
While Plesk offers many potential benefits to website administrators, including compatibility with Windows Server and other leading technologies, the company has also been working to differentiate it from other control panels for content management…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
Suggested Courses

886 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