News:

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

Main Menu

Threads Are Missing-Please help

Started by Debbie3, July 18, 2016, 09:21:25 AM

Previous topic - Next topic

Debbie3

the last mod I added was the Avatar_for_banned_members and the statcounter mod BK-Modding-StatCounter both on July 3 when I went to uninstall Avatar_for_banned_members some field failed and it gave me a warning not to install but I uninstalled it yesterday after I saw that board was not showing all the topics.
this was the file that gave the error ManageSettings.php

Grammy

You should probably attach it, Debbie3, so it can be checked for left-over code or some inadvertent edit.   :)

The parsing for that file is

Find:
// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!

Add after:

array('check', 'enable_banned_membav'),
'',


Do you still have the StatCounter mod installed?  I see it also edits that file, in about the same place.


(StatCounter)

Find:
// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!

Replace:
// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!
                array('large_text', 'statcounter_code', '4'),
'',

Debbie3

Thank you. and yes I still have the statscounter mod installed
it also has another file same name but ~ after it,

Grammy

Quote from: Debbie3 on July 19, 2016, 08:21:14 AM
Thank you. and yes I still have the statscounter mod installed
it also has another file same name but ~ after it,


Having the ~ after the file means that it's the original before the edits, but becomes the backup, after the edits.   :)

Try uploading this file to your sources, Debbie (attached).  You still had the old code from the Avatar mod and you had the edits for the StatCounter mod duplicated.  The Avatar code has been removed (since you uninstalled it) and I removed one of the duplicate edits for the StatCounter.  You may need to refresh your cache, after.  I'm not sure that this is the only file affected, but it did need to be corrected.


Also, you may need to check your Display.template.php and your Modifications.english.php to see if there are still any edits for the Avatar mod, but there shouldn't be. 

Debbie3



Debbie3

thanks Grammy I uploaded it I'm glad that file is fixed but the issue remains :(
I also cleared the cache

Grammy

Quote from: Debbie3 on July 19, 2016, 08:45:53 AM
thanks Grammy I uploaded it I'm glad that file is fixed but the issue remains :(
I also cleared the cache


I'm not sure, but it seems that if you installed both mods on the same day and the problem appeared after, at least one of them could be the culprit.  Could you attach your Display.template.php as well?  (Just looking for left-over Avatar edits.)  Also, your two language files, Help.english.php and Modifications.english.php (although those shouldn't cause an issue.)    :)

Debbie3

something is wrong my forums wont load now

Grammy

Quote from: Debbie3 on July 19, 2016, 08:53:29 AM
something is wrong my forums wont load now

Scroll back up to your post where you attached your ManageSettings.php and upload that one again, for now.  I'll check my edited one for template parse errors.  I'm sorry; I should have said to back up that file.   :-\

Debbie3

I did make a back up of the file but the forums loaded now with your file maybe it was something with my host. but what a coincidence.
but the issue is still there with that board

Grammy

Quote from: Debbie3 on July 19, 2016, 08:59:37 AM
I dd make a back up the file but the forums loaded now with your file maybe it was something with my host. but what a coincidence.
but the issue is still there with that board


That's a relief!  I just saw that Sir Osis has registered and I know he'll sort it; he's brilliant.  But if you want, I'll take a look at your Display.template.php and see if there are any leftover Avatar edits there, as well?

Debbie3

sure..another issue which may be related I'm not sure  this started happening about a week or so ago
some of my members need to login twice first time it tells them wrong password even though its correct and the second time it works

Debbie3

where would Display.template.php be located?

Siirist

First, I want to say that I am glad that there has been A LOT of help here.

Second, it seems that Grammy has been very helpful,

Quote from: Grammy on July 19, 2016, 08:37:01 AM
Quote from: Debbie3 on July 19, 2016, 08:21:14 AM
Thank you. and yes I still have the statscounter mod installed
it also has another file same name but ~ after it,
Having the ~ after the file means that it's the original before the edits, but becomes the backup, after the edits.   :)

Try uploading this file to your sources, Debbie (attached).  You still had the old code from the Avatar mod and you had the edits for the StatCounter mod duplicated.  The Avatar code has been removed (since you uninstalled it) and I removed one of the duplicate edits for the StatCounter.  You may need to refresh your cache, after.  I'm not sure that this is the only file affected, but it did need to be corrected.

Also, you may need to check your Display.template.php and your Modifications.english.php to see if there are still any edits for the Avatar mod, but there shouldn't be. 

however, as an Admin, if you are going to install and un-install Mods, you will need to learn how to do so manually by parsing to see the files that are modified and exactly what lines of code are modified or changed.

Just my thoughts,
Siirist

EDIT: Grammy, thanks for going far above and beyond "the call of duty", as more senior members would encourage the OP (original poster) to begin learning about installing and un-installing Mods manually.

ALWAYS backup a file or files BEFORE making changes.
What I do is in FileZilla I download the file, place forum in Maintenance Mode, rename the existing file on the forum to {file-name.php} to {file-name.php~}, then after I modify the original file {file-name.php} I upload it.
If the file already has a backup {file-name.php~}, instead I download the file, place forum in Maintenance Mode, rename the existing file on the forum to {file-name.php~} to {file-name.php~~}, then after I modify the original file {file-name.php} I upload it.
If something goes wrong, I can simply rename {file-name.php~} OR {file-name.php~~} to {file-name.php}.

Quote from: GrammyI just saw that Sir Osis has registered and I know he'll sort it; he's brilliant.  But if you want, I'll take a look at your Display.template.php and see if there are any leftover Avatar edits there, as well?

Best to have only one changing files, i.e. Sir or Grammy, but not both

Best Wishes,
Siirist
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Debbie3

thank you. Sir has not logged in yet so its up to Grammy what she prefers to do or not. I'm grateful for everyone's help

Grammy

#36
Quote from: Debbie3 on July 19, 2016, 09:06:42 AM
where would Display.template.php be located?


In Themes/default.  I know you're using Vertex, but I don't think it has any files that mod would have edited.


And I'm just now seeing Siirist's post, and concede, but I'm still happy to at least look at the file and let you know if the old edits are still present.  But yes, we can wait on Sir Osis; probably best.   ;)



EDIT TO ADD:  I do see elsewhere (and it's not your exact issue) where another user had post content missing and, coincidentally, he/she also had the StatCounter mod installed.  It's just another avenue to consider, if the actual cause doesn't become apparent.

Debbie3

Quote from: Grammy on July 19, 2016, 09:11:15 AM
Quote from: Debbie3 on July 19, 2016, 09:06:42 AM
where would Display.template.php be located?


In Themes/default.  I know you're using Vertex, but I don't think it has any files that mod would have edited.


And I'm just now seeing Siirist's post, and concede, but I'm still happy to at least look at the file and let you know if the old edits are still present.  But yes, we can wait on Sir Osis; probably best.   ;)
Thanks Grammy

Grammy

No, that file is clean.  You may want to wait, then, on Sir Osis to log in and troubleshoot this. 

But I did add an edit to my previous post that you may have missed:

QuoteEDIT TO ADD:  I do see elsewhere (and it's not your exact issue) where another user had post content missing and, coincidentally, he/she also had the StatCounter mod installed.  It's just another avenue to consider, if the actual cause doesn't become apparent.

That's something to consider.  If you decide to uninstall that mod (and you may wish to wait) then I would stop if you get an error and seek further help with that.   :)

Debbie3

ahh yes I did not see that but good to know! thank you I will see what Sir thinks before I do anything else

Advertisement: