Sign Up for OSTraining

Welcome, Guest
Username: Password: Remember me

TOPIC: Background Image Error Message

Background Image Error Message 11 months 3 weeks ago #47467

  • tonyim
  • tonyim's Avatar
  • OFFLINE
  • OSTarter
  • Posts: 18
  • Karma: 0
Hello,

I recently changed the background of my website (tpp.webcltd.com) to an image, however I got the following error message and the page looks skewed with the key contents missing:

Notice: Undefined index: title in tppa_links() (line 357 of /home/tonyim/public_html/tpp/sites/all/themes/tppa/template.php).
Notice: Undefined index: title in tppa_links() (line 357 of /home/tonyim/public_html/tpp/sites/all/themes/tppa/template.php).
Notice: Undefined index: title in tppa_links() (line 357 of /home/tonyim/public_html/tpp/sites/all/themes/tppa/template.php).
Notice: Undefined index: title in tppa_links() (line 357 of /home/tonyim/public_html/tpp/sites/all/themes/tppa/template.php).
Notice: Undefined index: title in tppa_links() (line 357 of /home/tonyim/public_html/tpp/sites/all/themes/tppa/template.php).
Notice: Undefined index: title in tppa_links() (line 357 of /home/tonyim/public_html/tpp/sites/all/themes/tppa/template.php).
Notice: Undefined index: title in tppa_links() (line 357 of /home/tonyim/public_html/tpp/sites/all/themes/tppa/template.php).
Notice: Undefined index: title in tppa_links() (line 357 of /home/tonyim/public_html/tpp/sites/all/themes/tppa/template.php).
Notice: Undefined index: title in tppa_links() (line 357 of /home/tonyim/public_html/tpp/sites/all/themes/tppa/template.php).
Notice: Undefined variable: terms in include() (line 65 of /home/tonyim/public_html/tpp/sites/all/themes/tppa/node.tpl.php).
Notice: Undefined variable: links in include() (line 74 of /home/tonyim/public_html/tpp/sites/all/themes/tppa/node.tpl.php).
Notice: Undefined index: sidebar_first in include() (line 119 of /home/tonyim/public_html/tpp/sites/all/themes/tppa/page.tpl.php).
Notice: Undefined index: footer_first in include() (line 127 of /home/tonyim/public_html/tpp/sites/all/themes/tppa/page.tpl.php).
Notice: Undefined index: footer_second in include() (line 127 of /home/tonyim/public_html/tpp/sites/all/themes/tppa/page.tpl.php).
Notice: Undefined index: footer_third in include() (line 127 of /home/tonyim/public_html/tpp/sites/all/themes/tppa/page.tpl.php).
Notice: Undefined index: footer_fourth in include() (line 127 of /home/tonyim/public_html/tpp/sites/all/themes/tppa/page.tpl.php).
Notice: Undefined index: title in tppa_links() (line 357 of /home/tonyim/public_html/tpp/sites/all/themes/tppa/template.php).
Notice: Undefined index: title in tppa_links() (line 357 of /home/tonyim/public_html/tpp/sites/all/themes/tppa/template.php).
Notice: Undefined index: title in tppa_links() (line 357 of /home/tonyim/public_html/tpp/sites/all/themes/tppa/template.php).
Notice: Undefined index: title in tppa_links() (line 357 of /home/tonyim/public_html/tpp/sites/all/themes/tppa/template.php).
Notice: Undefined index: title in tppa_links() (line 357 of /home/tonyim/public_html/tpp/sites/all/themes/tppa/template.php).
Notice: Undefined index: title in tppa_links() (line 357 of /home/tonyim/public_html/tpp/sites/all/themes/tppa/template.php).
Notice: Undefined variable: primary_links in include() (line 168 of /home/tonyim/public_html/tpp/sites/all/themes/tppa/page.tpl.php).

I have tried to amend the files referred to with no success. Your help would be much appreciated.

Tony
Please become a member of OSTraining to reply to this post.

Background Image Error Message 11 months 3 weeks ago #47471

  • Nick
  • Nick's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 16826
  • Thank you received: 393
  • Karma: 57
Hi Tony,

How did you change it? Did you use CSS or something else?

What Drupal version are you using?

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Background Image Error Message 11 months 3 weeks ago #47472

  • tonyim
  • tonyim's Avatar
  • OFFLINE
  • OSTarter
  • Posts: 18
  • Karma: 0
I used the Drupal Dynamic Background Image Module (drupal.org/project/dynamic_background) which enables site administrators to upload a range of images and select one as background on the site.
Please become a member of OSTraining to reply to this post.

Background Image Error Message 11 months 3 weeks ago #47473

  • Nick
  • Nick's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 16826
  • Thank you received: 393
  • Karma: 57
Hi Tony,

Thanks Tony! What Drupal version are you using?

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Background Image Error Message 11 months 3 weeks ago #47475

  • tonyim
  • tonyim's Avatar
  • OFFLINE
  • OSTarter
  • Posts: 18
  • Karma: 0
Hello Nick, its Drupal 7.12
Please become a member of OSTraining to reply to this post.

Background Image Error Message 11 months 3 weeks ago #47478

  • tonyim
  • tonyim's Avatar
  • OFFLINE
  • OSTarter
  • Posts: 18
  • Karma: 0
Update Nick,

I disabled the module and restored to the original image on the theme and then tried to add the background image manually by updating the page.tpl.php with the following code: <div style="background-image: url(/<?php print(drupal_get_path('theme', 'tppa'));?>/images/header01b.jpg)" ?>

When I did this, the background image then displayed multiple times on the page, moving the contents to the sidebars and footer, all so cluttered.
Please become a member of OSTraining to reply to this post.

Background Image Error Message 11 months 3 weeks ago #47480

  • tonyim
  • tonyim's Avatar
  • OFFLINE
  • OSTarter
  • Posts: 18
  • Karma: 0
Can I email you the page.tpl.php and the style sheets? Just to be sure I have coded it properly.
Please become a member of OSTraining to reply to this post.

Background Image Error Message 11 months 3 weeks ago #47483

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
Hi tony,

This looks like a php problem. It's looking for an array or string that is not defined. Or it's using a token that hasn't been defined.

Is it possible for you to revert back to the working version? The easiest thing might be to start over and try this again on a test site.

The notice is just a warning, and it's not likely the cause of the page going wacky on you. So if content is missing, and the layout is skewed, you might have a module conflict or other problem. Could be a bug in the module.

Ed

Please become a member of OSTraining to reply to this post.

Sign Up for OSTraining

Powered by Kunena Forum

Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.

Copyright 2013 Open Source Training, LLC. All rights reserved.