Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 177
Total: 177

Author Topic: 8: Undefined index: gallery_text_title  (Read 4383 times)

0 Members and 1 Guest are viewing this topic.

Offline clive

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
8: Undefined index: gallery_text_title
« on: February 19, 2008, 03:17:55 am »
Hi all

I am getting this error in my forum log whenever anyone looks at images in the gallery

8: Undefined index: gallery_text_title
File: /home/iberian/public_html/Themes/default/Gallery.template.php (mainview sub template - eval?)
Line: 370

This is line 370...
echo '<h1 align="center">', $txt['gallery_text_title'], '</h1>';

The image title is appearing above an image as normal

I am using the Babylon theme not the default theme.

It happens even when a guest views an image and I think even when spiders crawl them because over night it produced 72 pages of this one error..

Can someone help me fix this?

Thanks

Clive
« Last Edit: February 19, 2008, 03:23:29 am by clive »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: 8: Undefined index: gallery_text_title
« Reply #1 on: February 19, 2008, 08:08:14 pm »
It appears that you are missing $txt['gallery_text_title'] in your Gallery.english.php file found in

themes/default/languages/Gallery.english.php
Should have a line like this inside the file
Code: [Select]
$txt['gallery_text_title'] = 'Gallery';

If you are not using the title you can just remove heading in the template
Code: [Select]
echo '<h1 align="center">', $txt['gallery_text_title'], '</h1>';
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline clive

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Re: 8: Undefined index: gallery_text_title
« Reply #2 on: February 20, 2008, 03:05:54 am »
Ahhh.. Of course!

I commented out the word "gallery" in the English language file...

thank you

Offline clive

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Re: 8: Undefined index: gallery_text_title
« Reply #3 on: February 21, 2008, 11:33:24 am »
Thanks for your help SMFHacks

What I should have done was read your excellent advice at the topic I started before I bought the pro version of gallery

http://www.smfhacks.com/index.php/topic,2049.0.html

Clive

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
6266 Views
Last post October 10, 2006, 08:03:25 pm
by SMFHacks
2 Replies
5561 Views
Last post January 16, 2007, 08:34:00 pm
by DawnsWebDesigns
1 Replies
4408 Views
Last post April 02, 2008, 07:58:22 pm
by SMFHacks
2 Replies
16526 Views
Last post May 09, 2008, 02:33:12 pm
by RoFus
3 Replies
4607 Views
Last post November 04, 2008, 08:33:05 pm
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal