Solved

WordPress not using localhost

Posted on 2014-04-18
4
191 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 35

Accepted Solution

by:
Dan Craciun earned 500 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Word press home page creation help, zephyr 3 53
Open iframe using jquery dialog box 13 94
Level out logo and increase size? 16 52
upload a theme to wordpress 6 30
Did you use a default hosting installation of wordpress with the intention of it being your actual site?  Maybe you’ve installed it as a Blog to your current site and recently converted it to be the main site and do away with the old .htm pages.  An…
WordPress can be pretty daunting, especially for a beginner, so I thought it might be a good idea to write an article to show how easy it is to get started in WordPress and to design a custom theme.  The first step is to check with your hosting comp…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

710 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