Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4253
Latest: Ineedsmfhelp
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43242
Total Topics: 7516
Most Online Today: 92
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 97
Total: 97

Author Topic: Constant Error  (Read 13981 times)

0 Members and 1 Guest are viewing this topic.

Offline Renegd98

  • Member
  • *
  • Posts: 26
    • View Profile
Constant Error
« on: April 26, 2007, 08:55:49 pm »
I get the below error in the error logs but the gallery seems to be working correclty except for the posting/deleting comments error I posted in the previous message before this one today.

http://xxx.xxxxx.xxx/smf/index.php?action=gallery;sa=edit&id=28 
8: Undefined index: gallery_text_oldpicture
File: /home/nobss/public_html/smf/Themes/default/languages/Post.english.php (eval?)
Line: 621

SMF: 1.1.2
Tiyportal: 0.9.8

Offline Renegd98

  • Member
  • *
  • Posts: 26
    • View Profile
Re: Constant Error
« Reply #1 on: April 28, 2007, 09:33:17 am »
I guess I have stumped the entire forums with an error that has never been seen.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16428
    • View Profile
Re: Constant Error
« Reply #2 on: April 29, 2007, 02:38:21 pm »
That's an error if you are using an old version of SMF Gallery Lite which did not have those text strings or using a language pack where that string does not exist.
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 Renegd98

  • Member
  • *
  • Posts: 26
    • View Profile
Re: Constant Error
« Reply #3 on: April 29, 2007, 02:50:14 pm »
Thanks... it is OBE now.... I Puchased the Pro version...

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16428
    • View Profile
Re: Constant Error
« Reply #4 on: April 29, 2007, 02:59:56 pm »
Let me know if it continues to happen simple fix it occurs just add a language text string to the gallery.language.php file.
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 Renegd98

  • Member
  • *
  • Posts: 26
    • View Profile
Re: Constant Error
« Reply #5 on: April 29, 2007, 05:03:07 pm »
I am getting this now.... The only error I am getting...

Can you provide to me the code I need to add to gallery.language.php

8: Undefined index: gallery_pic_id
File: /home/nobss/public_html/smf/Themes/default/languages/Post.english.php (eval?)
Line: 2368

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16428
    • View Profile
Re: Constant Error
« Reply #6 on: April 29, 2007, 05:20:47 pm »
This is a different error not a language error. Fixed for next release

Hotfix
Open Themes/default/Gallery.template.php
Find
Code: [Select]
<a href="' . $scripturl . '?action=gallery;sa=view;id=' . $context['gallery_pic_id'] . '" target="blank"><img src="' . $modSettings['gallery_url'] . $context['gallery_pic_thumbfilename'] . '" /></a>
Change To
Code: [Select]
<a href="' . $scripturl . '?action=gallery;sa=view;id=' . $context['gallery_comment']['ID_PICTURE'] . '" target="blank"><img src="' . $modSettings['gallery_url'] . $context['gallery_pic_thumbfilename'] . '" /></a>
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 Renegd98

  • Member
  • *
  • Posts: 26
    • View Profile
Re: Constant Error
« Reply #7 on: April 29, 2007, 05:51:04 pm »
Ok that problem is fixed...

I get this now:


http://www.xxxxxx.com/smf/index.php?action=gallery;sa=editcomment;id=19
8: Undefined index: gallery_pic_id
File: /home/nobss/public_html/smf/Themes/default/languages/Post.english.php (eval?)
Line: 4735


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16428
    • View Profile
Re: Constant Error
« Reply #8 on: April 29, 2007, 06:09:10 pm »
Hmm the code above should have fixed that one.
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 Renegd98

  • Member
  • *
  • Posts: 26
    • View Profile
Re: Constant Error
« Reply #9 on: April 29, 2007, 06:31:13 pm »
I get that error after clicking edit comment and before doing anything else. As soon as I click edit the error occurs in the log but the action performs as expected.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16428
    • View Profile
Re: Constant Error
« Reply #10 on: April 29, 2007, 06:57:06 pm »
Look in Gallery.template.php below
 <b>', $txt['gallery_text_editcomment'], '</b></td>

There should be a line like the previous post and just make the update
http://www.smfhacks.com/index.php/topic,761.msg4696/topicseen.html#new
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 Renegd98

  • Member
  • *
  • Posts: 26
    • View Profile
Re: Constant Error
« Reply #11 on: April 29, 2007, 07:45:05 pm »
Resolved... both had to be changed...

Thanks...

Offline DarkWolf

  • Member
  • *
  • Posts: 9
    • View Profile
    • DarkWolf
Re: Constant Error
« Reply #12 on: June 29, 2007, 02:54:03 pm »
That's an error if you are using an old version of SMF Gallery Lite which did not have those text strings or using a language pack where that string does not exist.
Now i have installed new version but i have the same error with gallery_text_oldpicture
butr is very sample to repair,
simply open /forum/Themes/default/Gallery.template.php, search
Code: [Select]
echo '<div align="center"><br /><b>' . $txt['gallery_text_oldpicture'] . '</b><br />and replace with
Code: [Select]
echo '<div align="center"><br />Now all work fine!  :D
PS i have found other small bug in template now i have fix and my gallery is valid W3C  ;)
Thank'you very much for your work,
Regards DarkWolf.
-
PS sorry for my bad english  :-[
« Last Edit: June 29, 2007, 02:56:44 pm by DarkWolf »

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
9785 Views
Last post September 19, 2006, 07:51:14 am
by muehli
9 Replies
9389 Views
Last post November 01, 2006, 12:25:31 pm
by Me_angus
1 Replies
4973 Views
Last post November 02, 2006, 10:24:33 am
by SMFHacks
1 Replies
4717 Views
Last post November 20, 2006, 03:00:57 pm
by Elkaholic
4 Replies
6343 Views
Last post January 30, 2007, 06:25:15 pm
by TenshiHime

+- Recent Topics

is it possible to add support for odysee.com by SMFHacks
March 13, 2024, 10:53:28 pm

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

User Gallery Feature: move / bulk move images by SMFHacks
January 30, 2024, 05:48:25 pm

In the future it may be for smf 2.1.x? by smithloo
January 30, 2024, 12:55:34 am

Powered by EzPortal