Any good effect(s) of error logs or should i delete it??

Started by johnpaul2k2, September 10, 2013, 03:57:52 AM

Previous topic - Next topic

johnpaul2k2

was wondering how i was able to consume over 1gb of worth of hosting space! , not until i discovered this during filezilla backup



"error logs" is taking 472MB worth of space and my question are

1. is there any special good effect(s) of these?

if No

2. should i delete it?

if Yes

3. explain please

margarett

Yes, you can delete it (it will be automatically recreated).

BUT. After you delete it, you should (not mandatory, though) keep a close eye on it. Depending on how long it started, PHP error log shouldn't probably grow THAT much in a stable website so it could mean you have something to correct. Of course, if the log is there ever since 2001 then it's all good :P
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

johnpaul2k2

i think it's because of my conflict with my installed/uninstalled "pretty url mod" and some other manual customizations.

i will look at them

johnpaul2k2

one of my error is "related post, located at

/home/topniche/public_html/Sources/Admin.php 

saying

Undefined index: admin_related_topics_settings

example of the code


'related' => array($txt['admin_related_topic']),
257:
// 'shout' => array($txt['shout']),
258:
// Note the comma!! The setting with automatically appear with the first mod to be added.
259:
'wapmod' => array($txt['wapmods']),



any way to enable related post or kinda sort it out


update

I have uninstalled "related post mod"  , currently using "similar post mod"

kat

If you attach Admin.php, we could, probably, edit that goof out, JP.

margarett

I would say delete it first and just look at it after it is recreated...

If that error is "fresh" than yes, we can have a look at it ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

johnpaul2k2

checked the php_errorlog and it's already at 75mb :( , so  i deleted and it created another error log itself

so i attached three different error file

kat

Admin.php had this entire block:

'relatedtopics' => array(
'label' => $txt['admin_related_topic'],
'file' => 'RelatedTopics.php',
'function' => 'RelatedTopicsAdmin',
'subsections' => array(
'main' => array($txt['admin_related_topics_information']),
'settings' => array($txt['admin_related_topics_settings']),
'methods' => array($txt['admin_related_topics_methods']),
),
),


Odd that the uninstall left that lot there.

What errors are you getting, with relation to the other files that you attached? Or, are they just there for info?

johnpaul2k2

none,

just attached....just in case. i will replace yours with mine . wait for 24 hours or more, then get back back to you :)


johnpaul2k2

what of this code???


that is the main error complain :(


'related' => array($txt['admin_related_topic']),
// 'shout' => array($txt['shout']),
// Note the comma!! The setting with automatically appear with the first mod to be added.
'wapmod' => array($txt['wapmods']),


vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

kat


johnpaul2k2

error :(


Parse error: syntax error, unexpected ';', expecting ')' in /home/topniche/public_html/Sources/Admin.php on line 578

kat

Ugh!

I think I forgot the:

      ),
   );

Try this one.

johnpaul2k2

still the same >:(

Parse error: syntax error, unexpected T_IF, expecting ')' in /home/topniche/public_html/Sources/Admin.php on line 579


keep on trying. lemme also try it here

Illori


johnpaul2k2



'related' => array($txt['admin_related_topic']),
// 'shout' => array($txt['shout']),
// Note the comma!! The setting with automatically appear with the first mod to be added.
'wapmod' => array($txt['wapmods']),
),
),
),
),






i removed this................


'related' => array($txt['admin_related_topic']),
// 'shout' => array($txt['shout']),
// Note the comma!! The setting with automatically appear with the first mod to be added.
'wapmod' => array($txt['wapmods']),



leaving the 4    ),



),
),
),
),




update


it happens to be the same edit from Illori  :). anyway, i will check the error and report back

johnpaul2k2

#18
sorry for my numerous wahala

here is another error occurring all the time inside load.php


   

// Mod Authors for a "ADD AFTER" on this line. Ensure you end your change with a comma. For example:
//Place the Custom Form Mod Link.   
'customform' => array($txt['CustomForm_tabheader']),

i do not really know if it will affect my custom form tab :(

also this ......within  Wireless.template.php


echo '
<p class="titlebg">', $txt['parent_boards'], '</p>';
foreach ($context['boards'] as $board)
echo '
<div class="body">', $board['new'] ? '<span class="updated"><img border="0" src="' .$settings['default_images_url']. '/wap/new.png" width="18px" height="9px">&nbsp;' : '<img border="0" src="' .$settings['default_images_url']. '/wap/newg.png" width="9px" height="9px">', $board['children_new'] && !$board['new'] ? '<span class="updated">+&nbsp;&nbsp;' : '', $board['new'] || $board['children_new'] ? '</span>' : '&nbsp;&nbsp;', '<a href="', $scripturl, '?board=', $board['id'], '.0;wap2"', $count < 10 ? ' accesskey="' . $count . '"' : '', '>', $board['name'], '</a></div>';
1052: }


Illori

if you use the custom form mod then leave that code in load.php

your best bet it going to mod site finding the mod you had installed and parse it on the right side. then check your files for the code shown and remove any code necessary according to what is shown in the parse but in REVERSE.

Advertisement: