Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: Kindred on November 18, 2011, 03:08:50 PM

Title: [4923]Problem with Forum Maintenance - Topics
Post by: Kindred on November 18, 2011, 03:08:50 PM
I know I have reported this before... but I can't find the bug report or a mantis ticket....

I reported it on 2.0RC5, and 2.0 -- and now 2.0.1

Go into Admin > Maintenance > Forum Maintenance > Topics
select remove topics, 30 days or older
select Moved topic notices.
select all boards
click remove now and accept the warning

the system chokes...

An Error Has Occurred!
Unable to verify referring url. Please go back and try again.


I can replicate this on multiple sites, including this one....
Title: Re: Problem with Forum Maintenance - Topics
Post by: Joshua Dickerson on November 18, 2011, 03:48:36 PM
Kindred, since you have the ability and have verified it, can you track this (and any future bugs that you have confirmed)
Title: Re: Problem with Forum Maintenance - Topics
Post by: Joker™ on January 04, 2012, 02:46:22 PM
Tracked (http://dev.simplemachines.org/mantis/view.php?id=4923).
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: Antechinus on January 04, 2012, 03:18:20 PM
ROFL. Figures that bit would be buggy. It's the only way I ever use the remove topics function in that section of admin. ::)
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: emanuele on February 16, 2012, 12:26:29 PM
I cannot replicate it.

Do you have any other information that can help?
php version, maybe a phpinfo (in private is fine).
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: Kindred on February 16, 2012, 12:37:58 PM
It happens to me on 40k online.... But also happens on this forun, right here.   Eevery time
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: emanuele on February 16, 2012, 12:48:33 PM
And only on that particular action and anyone else?
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: Sir Osis of Liver on February 16, 2012, 01:25:11 PM

No go 2.0.2.  Works fine for me.

Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: Kindred on February 16, 2012, 07:20:03 PM
I can replicate every time, both on 40konline and on this site....

I suspect that your testing is not taking the size of the forum into account. Both this forum and 40kOnline likely have at least a million time more posts than your test forums....
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: Joker™ on February 16, 2012, 10:23:19 PM
This happens on my test forum as well.

- W-ndows
- PHP 5.3.8
- SMF 2.0.2
- 10 topics
- 2 boards
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: Sir Osis of Liver on February 16, 2012, 10:37:14 PM

Running PHP 5.2.17.
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: Spuds on February 16, 2012, 11:08:21 PM
This happens on my test forum as well.

- W-ndows
- PHP 5.3.8
- SMF 2.0.2
- 10 topics
- 2 boards

There are two triggers for that error in security.php .... could you do a little debug and see which one is failing .... I have not been able to reproduce this, but since you can your now in the hot seat (even if it is pink) :)
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: emanuele on February 17, 2012, 05:30:57 AM
Pink is an excuse to not to your team work, but not to skip debugging! :P
Tested on win and php 5.3.8 (xampp 1.7.7) but no luck...

I suspect that your testing is not taking the size of the forum into account. Both this forum and 40kOnline likely have at least a million time more posts than your test forums....
Don't be so sure. ;) (see attachment)

Anyway this shouldn't be a problem of number since checkSession is done before any processing.
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: Kindred on February 17, 2012, 07:41:07 AM
hmmmm....     maybe someone else with admin access here can try to remove the "moved posts" notification posts older than 30 days?

If someone else can do it, then it's an account issue (not a pC issue, since it happens on every browser, every computer for me)
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: Oldiesmann on February 17, 2012, 01:43:36 PM
hmmmm....     maybe someone else with admin access here can try to remove the "moved posts" notification posts older than 30 days?

If someone else can do it, then it's an account issue (not a pC issue, since it happens on every browser, every computer for me)

Works just fine for me on this forum.
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: Kindred on February 17, 2012, 02:26:59 PM
hmmm.....   very odd
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: Joker™ on February 17, 2012, 09:58:49 PM
Strange.

Can't produce the error on my notebook, but I damn sure that the bug appeared at my workplace PC. I'll try to re-produce the issue after coming back to home in the evening.
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: Spuds on February 17, 2012, 10:44:23 PM
Thanks ... let us know what ya find ...  indeterminate bugs like this are the worst !

Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: Joker™ on February 19, 2012, 06:35:30 AM
Nothing found yet, even on the PC.
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: Sir Osis of Liver on February 21, 2012, 02:03:03 PM

http://www.simplemachines.org/community/index.php?topic=469110.0

Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: emanuele on May 08, 2012, 04:04:04 PM
That should fix the problem:
Code: (find) [Select]
if ('oThemeOptions' in this.opt && this.opt.oThemeOptions.bUseThemeSettings)
Code: (replace with) [Select]
if (!bInit && 'oThemeOptions' in this.opt && this.opt.oThemeOptions.bUseThemeSettings)
in other words if you have the header collapsed (or any other element that uses smc_Toggle) you will not be able to finish that task.
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: Kindred on May 08, 2012, 04:08:09 PM
really?   How bizarre (and annoying) since I always have the header and many other things collapsed.
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: emanuele on May 08, 2012, 04:12:49 PM
Yep...me too, probably the only time I had the header non-collapsed was the time I tested this bug.. lol
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: Onepoint on October 07, 2012, 02:35:57 PM
FWIW and for the benefit of those searching this,  I only managed to get it to work on the Curve theme, other wise I still got the error message.
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: Kill Em All on October 22, 2012, 04:02:51 PM
That should fix the problem:
Code: (find) [Select]
if ('oThemeOptions' in this.opt && this.opt.oThemeOptions.bUseThemeSettings)
Code: (replace with) [Select]
if (!bInit && 'oThemeOptions' in this.opt && this.opt.oThemeOptions.bUseThemeSettings)
in other words if you have the header collapsed (or any other element that uses smc_Toggle) you will not be able to finish that task.
What file can we find this in?
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: emanuele on October 22, 2012, 04:11:37 PM
script.js
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: Kill Em All on October 22, 2012, 04:18:05 PM
Thank you emanuele. Would have never guessed that one.
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: dimspace on March 22, 2013, 07:10:57 PM
just had this error myself.. and the fix isnt fixing it :S
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: emanuele on March 23, 2013, 04:48:23 AM
Did you clear the browser cache before trying again?
Do you have mods installed?
And so on.
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: Biology Forums on May 20, 2013, 02:37:38 AM
just had this error myself.. and the fix isnt fixing it :S

Likewise, I couldn't even find this on the SMF 1.x version of script.js.
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: emanuele on May 20, 2013, 03:29:48 AM
Probably because SMF 1.1 doesn't have this code and is not affected bis this specific bug and if you see something similar it means it comes from elsewhere?
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: sargeantmofo on July 24, 2013, 12:14:55 AM
That should fix the problem:
Code: (find) [Select]
if ('oThemeOptions' in this.opt && this.opt.oThemeOptions.bUseThemeSettings)
Code: (replace with) [Select]
if (!bInit && 'oThemeOptions' in this.opt && this.opt.oThemeOptions.bUseThemeSettings)
in other words if you have the header collapsed (or any other element that uses smc_Toggle) you will not be able to finish that task.
that's amazing. and just FYI, I was able to remove topics without the "Unable to verify referring url. Please go back and try again." message by simply expanding the header and re-running the remove topics maintenance. No need to even modify the scripts.js file.
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: Guy Verschuere on June 29, 2014, 03:32:47 AM
Any updates on this? This is still an issue in 2.0.8.
I have 2 sites where I removed the collapse button so the fix doesn't work.
On the 3th site I can prune just by expanding the header.
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: Jack_Elixir on September 14, 2014, 05:27:27 AM
I have same issue
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: boardhead on March 13, 2015, 08:27:59 AM
I just had the same issue with 2.0.9.  Please, someone fix this.
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: boardhead on April 04, 2018, 07:55:52 AM
I still have this issue with 2.0.15
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: shnazzle on November 30, 2018, 04:33:14 AM
Having this issue as well on 2.0.15.

I do have mods installed obviously but turning each one off to see which it is, isn't filling my heart with joy on a live site.

Any clues yet?
Title: Re: [4923]Problem with Forum Maintenance - Topics
Post by: live627 on November 30, 2018, 01:40:29 PM