Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 23, 2013, 04:23:21 am

Login with username, password and session length
Members
Total Members: 10767
Latest: posia123
Stats
Total Posts: 32387
Total Topics: 5479
Online Today: 57
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 48
Total: 49
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Constant Error  (Read 5780 times)
Renegd98
Inline PM Customer
*****
Offline Offline

Posts: 26


View Profile
« 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
Logged
Renegd98
Inline PM Customer
*****
Offline Offline

Posts: 26


View Profile
« 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.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11000


View Profile
« 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.
Logged
Renegd98
Inline PM Customer
*****
Offline Offline

Posts: 26


View Profile
« Reply #3 on: April 29, 2007, 02:50:14 pm »

Thanks... it is OBE now.... I Puchased the Pro version...
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11000


View Profile
« 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.
Logged
Renegd98
Inline PM Customer
*****
Offline Offline

Posts: 26


View Profile
« 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
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11000


View Profile
« 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:
<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:
<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>
Logged
Renegd98
Inline PM Customer
*****
Offline Offline

Posts: 26


View Profile
« 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

Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11000


View Profile
« Reply #8 on: April 29, 2007, 06:09:10 pm »

Hmm the code above should have fixed that one.
Logged
Renegd98
Inline PM Customer
*****
Offline Offline

Posts: 26


View Profile
« 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.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11000


View Profile
« 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
Logged
Renegd98
Inline PM Customer
*****
Offline Offline

Posts: 26


View Profile
« Reply #11 on: April 29, 2007, 07:45:05 pm »

Resolved... both had to be changed...

Thanks...
Logged
DarkWolf
Inline PM Customer
*****
Offline Offline

Posts: 9



View Profile WWW
« 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:
echo '<div align="center"><br /><b>' . $txt['gallery_text_oldpicture'] . '</b><br />
and replace with
Code:
echo '<div align="center"><br />
Now all work fine!  Cheesy
PS i have found other small bug in template now i have fix and my gallery is valid W3C  Wink
Thank'you very much for your work,
Regards DarkWolf.
-
PS sorry for my bad english  Embarrassed
« Last Edit: June 29, 2007, 02:56:44 pm by DarkWolf » Logged

Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[May 22, 2013, 10:03:30 pm]

[May 22, 2013, 03:00:09 pm]

[May 22, 2013, 03:03:31 am]

[May 21, 2013, 03:27:16 pm]

[May 21, 2013, 02:11:10 pm]

[May 21, 2013, 01:18:58 pm]

[May 21, 2013, 12:22:02 am]

[May 21, 2013, 12:20:41 am]

[May 19, 2013, 11:13:02 pm]

[May 19, 2013, 08:18:27 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.172 seconds with 20 queries.