Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
June 20, 2013, 08:32:06 am

Login with username, password and session length
Members
Total Members: 10808
Latest: smfhacks77
Stats
Total Posts: 32573
Total Topics: 5511
Online Today: 62
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 44
Total: 45
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Go Down Print
Author Topic: Gallery link disappeared and 100's of errors in error log.  (Read 6519 times)
wrcline
Inline PM Customer
*****
Offline Offline

Posts: 17


View Profile WWW
« on: February 11, 2007, 03:07:51 pm »

 Purchased and installed SMF Gallery Pro last year around September or October. Although difficult to use, it at least worked. I don't know which version number as I can't find it anywhere. The SMF forum is version 1.1.1 but it was probably 1.1 when we originally installed the gallery. All was ok until February 2, 2007 when the errors started: 
 http://sabretalk.com/forum/index.php?board=31.0
8: Undefined index: allow_smfgallery_view
File: /home/sabremax/public_html/forum/Themes/default/MessageIndex.template.php (eval?)
Line: 576

There are several other variations of the error but they all show line 576. I checked several php files looking for line 576 but found nothing that made sense to me.

The gallery still works using http://sabretalk.com/forum/index.php?action=gallery but the Gallery tab is no longer visible on the forum. I have no idea where to start on fixing this. Any help would be appreciated but please realize I'm not a programmer or coder so try to post in layman's terms. Thanks in advance for any replies.
« Last Edit: February 12, 2007, 04:12:50 pm by wrcline » Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11056


View Profile
« Reply #1 on: February 11, 2007, 06:30:57 pm »

I am interested to know what part of the gallery was extremely difficult to use.

For the error. It seems for the above a line of code was deleted or removed. I can apply the patch to the file if you attach your file from your forum found under Sources/Subs.php


Or you can find this code in Sources/Subs.php
Code:
$context['allow_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);
And make sure that this code is after that line
Code:
$context['allow_smfgallery_view'] = allowedTo('smfgallery_view');
Logged
wrcline
Inline PM Customer
*****
Offline Offline

Posts: 17


View Profile WWW
« Reply #2 on: February 11, 2007, 07:07:57 pm »

I am interested to know what part of the gallery was extremely difficult to use.

For the error. It seems for the above a line of code was deleted or removed. I can apply the patch to the file if you attach your file from your forum found under Sources/Subs.php


Or you can find this code in Sources/Subs.php
Code:
$context['allow_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);
And make sure that this code is after that line
Code:
$context['allow_smfgallery_view'] = allowedTo('smfgallery_view');


Hi SMFHacks,

Thank you for the reply and help but unfortunately, when I did exactly as you instructed using a php editor, it crashed the forum completely. I now get this error when trying to access the forum:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/sabremax/public_html/forum/Sources/Subs.php on line 891 Please tell me how to get the forum back online and I'll just give up on the gallery.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11056


View Profile
« Reply #3 on: February 11, 2007, 07:12:34 pm »

Can you attach the file? I can fix it then.
Logged
wrcline
Inline PM Customer
*****
Offline Offline

Posts: 17


View Profile WWW
« Reply #4 on: February 11, 2007, 07:23:32 pm »

Can you attach the file? I can fix it then.

Ok, I'll attach the file but I downloaded SMF version 1.1.1 again just to get a proper subs.php file and uploaded it. Now the forum's working again but the gallery is still the same with the same errors.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11056


View Profile
« Reply #5 on: February 11, 2007, 07:28:07 pm »

Edited File attached should fix the gallery error log
Logged
wrcline
Inline PM Customer
*****
Offline Offline

Posts: 17


View Profile WWW
« Reply #6 on: February 11, 2007, 07:38:40 pm »

Thanks but nothing's changed. The gallery tab is still not there and when I click on http://sabretalk.com/forum/index.php?action=gallery , it takes me to the gallery but this error shows up in the error log: Undefined index: smfgallery_menu
File: /home/sabremax/public_html/forum/Themes/default/Admin.template.php (eval?)
Line: 579
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11056


View Profile
« Reply #7 on: February 11, 2007, 07:43:09 pm »

Can you attach your modifications.english.php file from Themes/default/languages/modifications.english.php
Logged
wrcline
Inline PM Customer
*****
Offline Offline

Posts: 17


View Profile WWW
« Reply #8 on: February 11, 2007, 07:48:01 pm »

Here you go:
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11056


View Profile
« Reply #9 on: February 11, 2007, 07:56:01 pm »

File attached:
Logged
wrcline
Inline PM Customer
*****
Offline Offline

Posts: 17


View Profile WWW
« Reply #10 on: February 11, 2007, 08:13:25 pm »

Ok thanks, we're getting there. The gallery tab is back and there aren't any new errors in the log. Unfortunately the gallery is still not listed under Configuration in the left column of the admin page:
Configuration
Features and Options
Server Settings
Current Theme
Themes and Layout

I can get to the config stuff through the gallery but I'm sure it used to be listed in admin as well. I won't be replying back for awhile as the wife informs me that dinner is ready.
Thanks again for your prompt assistance, I'll check back here after dinner but there's no hurry now since it's almost back to normal.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11056


View Profile
« Reply #11 on: February 11, 2007, 08:14:54 pm »

Hmm. It seems the SMF files were reuploaded which wiped out the mod.

For the configuration url. I again need to Sources/Subs.php file to be attached.
Logged
wrcline
Inline PM Customer
*****
Offline Offline

Posts: 17


View Profile WWW
« Reply #12 on: February 11, 2007, 09:44:26 pm »

Hmm. It seems the SMF files were reuploaded which wiped out the mod.

For the configuration url. I again need to Sources/Subs.php file to be attached.

Ok, here you go:
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11056


View Profile
« Reply #13 on: February 11, 2007, 09:53:59 pm »

File attached
Logged
wrcline
Inline PM Customer
*****
Offline Offline

Posts: 17


View Profile WWW
« Reply #14 on: February 11, 2007, 10:06:12 pm »

Ok, that seems to be it. Everything is working fine now and still no errors.

Thanks once again for taking the time to straighten out my mess. 

I promise I'll get back on here tomorrow and answer your question about what I find difficult about using the gallery. I overreacted with "extremely" difficult.

I'm done for tonight.

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

Recent
[Today at 04:49:39 am]

[Today at 03:53:19 am]

[Today at 03:49:43 am]

[Today at 02:05:58 am]

[Today at 02:02:45 am]

[June 19, 2013, 10:08:41 pm]

[June 19, 2013, 07:25:45 pm]

[June 19, 2013, 01:36:26 pm]

[June 18, 2013, 07:27:33 am]

[June 17, 2013, 12:27:50 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.228 seconds with 20 queries.