News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Too many error logs

Started by ninik, December 05, 2017, 12:15:58 PM

Previous topic - Next topic

Shambles

Quote from: Sir Osis of Liver
Looks like index.php is correct ...

In the supplied index.php file there appears to be part of the installation missing:

<operation>
<search position="replace"><![CDATA[if (empty($board) && empty($topic))]]></search>
<add><![CDATA[if (empty($board) && empty($topic) && isset($_REQUEST['blog']))
{
require_once($sourcedir . '/BlogFeatures.php');
return 'BlogMain';
}
elseif (empty($board) && empty($topic))]]></add>
</operation>


Makes me wonder what else is missing/misplaced...

ninik

Hi shambles,

so what are you proposing that I should do... follow Osis advice or what? I am confused right now?!

Sir Osis of Liver

Hmm, I only looked for the code Suki posted, but it does look like more of the mod code is missing.  You might try uninstalling/reinstalling it, but you'll get uninstall errors for index.php.  Does the mod work?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

ninik

yes the mode works fine and  practically with no issues...

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

ninik

Hi Sir Osis of Liver,

and I apologize for my delayed reply.

it appears that the error log has stop generating these undefined types of errors (in other terms, it appears as if you did resolve the issue).  :)

If I may ask, what magic did you exactly perform here and did it solve the specific issue or did it stop generating errors all together in the error log?  :)


PS: give me 24 hours to be sure that the problem has been resolved 100% and I will mark the topic as solved.

But I do indeed thank you!!!  :)

Suki

The file that contains the function needed wasn't loaded by the time it was called, by including the file the function got called, the var became defined and thus the error messages were gone.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Sir Osis of Liver

For reasons unknown, all of the code for that mod was missing in index.php, possibly because you at some point restored a backup from before mod was installed.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

ninik

Hi Suki and Sir Osis of Liver,

here is how things currently stand.

Previously, the error log created constantly errors for everything. For example, if a member, or even me who is the administrator, posted something or just navigated through the forum, undefined errors would be created constantly - for every action.

The specific sections that create these problems are the once that I did mentioned in my original post.

Now, after the corrections provided by Sir Osis of Liver, undefined errors are created only for guests that try to visit the forum (as a side note: in order to enter the forum someone would have to register first - or already being a member of it). In other terms, it is something like a "closed" forum.


As stated above, errors continue to be created but now, solely for guests... and with the term guests, included are also, spammers who try to enter (hence, activation can only occur by the administrator) or bots who try to find their way into the forum but are blocked automatically.

In terms of numbers (in regards to undefined errors), the error count since my last post was 1024, now the undefined errors are 6086.

So, what would you guys suggest me to do?

PS: Sir Osis of Liver, you said:


possibly because you at some point restored a backup from before mod was installed.


Indeed, a few months ago, when I performed an update from the 2.0.13 version to the 2.0.14, the first time something went wrong and I did have to restore things from the backup.

Sir Osis of Liver

If you do a complete backup before making changes, and restore the backup in it's entirety, it brings you back to where you were before any changes were made.  If you try to fix a problem by selectively restoring individual files, you'll break things, and undefined index errors are a typical result.  Package manager can have problems installing/uninstalling mods that aren't exactly right, or you can install a mod with errors and the mod works, but you end up with broken bits of code, and again this can cause undefined index errors.  Best way to fix it is to upload a clean set of files, reinstall the mods, and restore any other customizations you have running. 
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

ninik

Hi Sir Osis of Liver,

I understand your suggestion and most probably this is what I am going to do. Also, I thank you for your insights.

Finally, before I proceed... should I restore the index.php the way it was before your changes or should I leave it as it is.
Thing is that in my mind (without being sure about it, of course), is to revert to the previous index.php and than proceed with uninstalling, and afterwards re-installing, the mod...

Am I thinking about it correctly?

Sir Osis of Liver

If you upload a clean set of files, index.php is included in the package, so your existing file will be overwritten with a clean one.  Just be sure you have backup copies of Settings.php and Settings_bak.php.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

ninik

OK Sir Osis of Liver, will do; and thank you  :)

Apart from it I will mark this topic as solved.

Finally, I would like to thank both Sir Osis of Liver and Suki for all the trouble you guys went through so as to assist me and help me with my issue.

Thanks again guys! :)

Advertisement: