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: 43261
Total Topics: 7519
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 2
Guests: 282
Total: 284

Author Topic: Gallery link disappeared and 100's of errors in error log.  (Read 16163 times)

0 Members and 1 Guest are viewing this topic.

Offline wrcline

  • Member
  • *
  • Posts: 17
    • View Profile
    • Sabretalk.com
Gallery link disappeared and 100's of errors in error log.
« 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 »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Gallery link disappeared and 100's of errors in error log.
« 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: [Select]
$context['allow_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);
And make sure that this code is after that line
Code: [Select]
$context['allow_smfgallery_view'] = allowedTo('smfgallery_view');
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 wrcline

  • Member
  • *
  • Posts: 17
    • View Profile
    • Sabretalk.com
Re: Gallery link disappeared and 100's of errors in error log.
« 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: [Select]
$context['allow_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);
And make sure that this code is after that line
Code: [Select]
$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.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Gallery link disappeared and 100's of errors in error log.
« Reply #3 on: February 11, 2007, 07:12:34 pm »
Can you attach the file? I can fix it then.
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 wrcline

  • Member
  • *
  • Posts: 17
    • View Profile
    • Sabretalk.com
Re: Gallery link disappeared and 100's of errors in error log.
« 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.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Gallery link disappeared and 100's of errors in error log.
« Reply #5 on: February 11, 2007, 07:28:07 pm »
Edited File attached should fix the gallery error log
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 wrcline

  • Member
  • *
  • Posts: 17
    • View Profile
    • Sabretalk.com
Re: Gallery link disappeared and 100's of errors in error log.
« 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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Gallery link disappeared and 100's of errors in error log.
« 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
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 wrcline

  • Member
  • *
  • Posts: 17
    • View Profile
    • Sabretalk.com
Re: Gallery link disappeared and 100's of errors in error log.
« Reply #8 on: February 11, 2007, 07:48:01 pm »
Here you go:

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Gallery link disappeared and 100's of errors in error log.
« Reply #9 on: February 11, 2007, 07:56:01 pm »
File attached:
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 wrcline

  • Member
  • *
  • Posts: 17
    • View Profile
    • Sabretalk.com
Re: Gallery link disappeared and 100's of errors in error log.
« 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.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Gallery link disappeared and 100's of errors in error log.
« 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.
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 wrcline

  • Member
  • *
  • Posts: 17
    • View Profile
    • Sabretalk.com
Re: Gallery link disappeared and 100's of errors in error log.
« 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:

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Gallery link disappeared and 100's of errors in error log.
« Reply #13 on: February 11, 2007, 09:53:59 pm »
File attached
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 wrcline

  • Member
  • *
  • Posts: 17
    • View Profile
    • Sabretalk.com
Re: Gallery link disappeared and 100's of errors in error log.
« 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.


 

Related Topics

  Subject / Started by Replies Last post
8 Replies
8853 Views
Last post June 11, 2007, 10:09:07 pm
by BAlGaInTl
1 Replies
4100 Views
Last post November 26, 2007, 08:39:34 pm
by SMFHacks
4 Replies
14675 Views
Last post December 04, 2007, 09:27:54 pm
by SMFHacks
1 Replies
3610 Views
Last post May 19, 2008, 08:10:37 pm
by SMFHacks
9 Replies
9973 Views
Last post February 03, 2010, 09:26:25 am
by Black Viper

+- Recent Topics

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
Today at 08:27:36 am

No thumbnails on new uploads by Tonyvic
Today at 06:26:18 am

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

Powered by EzPortal