SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 23, 2012, 06:45:54 am

Login with username, password and session length
Members
Total Members: 10069
Latest: tetsujrock
Stats
Total Posts: 28682
Total Topics: 4975
Online Today: 94
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 50
Total: 50
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Errors Filling up Forum Log  (Read 5209 times)
jchopick
Newbie
*
Offline Offline

Posts: 17


View Profile
« on: October 17, 2006, 07:55:46 pm »

I keep getting these two errors. I am running a custom theme and gallery 1.64

8: Undefined index: can_moderate_forum
File: /home/clong/public_html/forum/Themes/default/languages/Gallery.english.php (eval?)
Line: 732

8: Undefined index: can_moderate_forum
File: /home/clong/public_html/forum/Themes/default/languages/Gallery.english.php (eval?)
Line: 124

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

Posts: 9676


View Profile
« Reply #1 on: October 17, 2006, 08:14:19 pm »

Try running this sql query
REPLACE INTO smf_settings
   (variable, value)
VALUES ('disableTemplateEval', '1');

And see what file it is in.
Logged
jchopick
Newbie
*
Offline Offline

Posts: 17


View Profile
« Reply #2 on: October 17, 2006, 08:19:30 pm »

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/header_meta_style.inc.php:27) in /usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/common.lib.php on line 1154
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« Reply #3 on: October 17, 2006, 08:24:08 pm »

Are you getting that on your SMF board? Or just accessing phpMyAdmin
Logged
jchopick
Newbie
*
Offline Offline

Posts: 17


View Profile
« Reply #4 on: October 17, 2006, 08:25:31 pm »

I ran the sql query in phpMyAdmin on the database for the forum.

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

Posts: 9676


View Profile
« Reply #5 on: October 17, 2006, 08:31:33 pm »

Now you need to check the error log on the gallery for new entries and see the correct file location.
Logged
jchopick
Newbie
*
Offline Offline

Posts: 17


View Profile
« Reply #6 on: October 17, 2006, 08:38:18 pm »

The error log shows these errors

8: Undefined index: can_moderate_forum
File: /home/clong/public_html/forum/Themes/default/Gallery.template.php
Line: 124

8: Undefined index: can_moderate_forum
File: /home/clong/public_html/forum/Themes/default/Gallery.template.php
Line: 732

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

Posts: 9676


View Profile
« Reply #7 on: October 17, 2006, 09:10:42 pm »

Try the file attached to this post

* GalleryLite1.6.5..zip (31.31 KB - downloaded 130 times.)
Logged
jchopick
Newbie
*
Offline Offline

Posts: 17


View Profile
« Reply #8 on: October 17, 2006, 10:08:39 pm »

So far that worked I will keep you posted. Thanks so much!!!


Jeff
Logged
jchopick
Newbie
*
Offline Offline

Posts: 17


View Profile
« Reply #9 on: October 18, 2006, 07:17:18 am »

SMFHACKS,

 This Morning I check the error logs and now I had and error in the index.template.php for the theme I was using. I was the code for the menu button. I had the simplify it to get it to stop showing up in the error log. Below is what I have changed it to and what it was. I unfortnately erased the error it was giving me but It involved the [smfgallery_menu]

Original:

// the [SMF Gallery] button
   if ($context['allow_smfgallery_view'])
      echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'gallery' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu']  , '</a>
            </td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

Modified:

// the [SMF Gallery] button
   if ($context['allow_smfgallery_view'])
      echo'
            <td align="center" class="menubg' , $current_action == 'gallery' ? '2' : '' , '">
               <a href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu']  , '</a>
            </td>';

I will keep watching the log file for any other issues.


Jeff
Logged
jchopick
Newbie
*
Offline Offline

Posts: 17


View Profile
« Reply #10 on: October 18, 2006, 11:13:35 am »

I am also getting this error.

8: Undefined index: gallery_commentchoice
File: /home/clong/public_html/forum/Sources/Gallery.php
Line: 1171

Something just seems to be messed up with the whole install but I have removed it and installed again without customizing it and I am still getting the errors under the default theme as well.

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

Posts: 9676


View Profile
« Reply #11 on: October 18, 2006, 11:18:31 am »

It is not really major errors or anything that will cause a problem. Those if I remember were from fields that had a checkbox that was not set.
Logged
jchopick
Newbie
*
Offline Offline

Posts: 17


View Profile
« Reply #12 on: October 18, 2006, 11:37:00 am »

SMFHacks,

I turned on the check to allow user to show comments or not and error stopped for the moment.


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

Recent
[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]

[May 17, 2012, 12:38:16 pm]

[May 15, 2012, 09:32:27 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
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 0.252 seconds with 19 queries.