News:

Wondering if this will always be free?  See why free is better.

Main Menu

Moving a topic with redirect

Started by Lucarella, November 16, 2024, 07:52:30 AM

Previous topic - Next topic

Lucarella

Hi guys, I've been having a problem for a while now and I can't figure out the cause.
Basically, when I have to move a topic to another section, I do the classic procedure and, if I leave the option to create a redirect topic in the same section active, the latter is created but the original is not moved and I get the http 500 error.
To move the topic, I have to remove the option to create a redirect topic.
Nothing about it appears in the error log...

It's not a serious error, I can live with it, but the redirect topic is a nice feature, especially because it self-deletes after the chosen time interval and I don't want to lose it.... Can we solve it?

At the beginning, after switching to SMF 2.1 it worked well



Thanks

Aleksi "Lex" Kilpinen

Try emptying your forum's file cache first, then create a test topic, try to move it following the exact same steps.
If it fails again, look at your forum and server error logs at around the time of the move.
Most likely, something should get logged, and whatever it is might explain the issue.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Lucarella

Done but there is no trace left in the SMF error log nor on the cpanel, completely nothing.
More info that I did not describe before: the redirect topic is created but the original topic has not been moved.

Aleksi "Lex" Kilpinen

Well, demonstrably there should be something - You shared a screenshot of a HTTP 500 error, and that is a server side error that honestly should always be logged. If it is not, then contact your host and ask them about it.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Steve

Does the same problem occur on the default theme?
My pet rock is not feeling well. I think it's stoned.

Lucarella

I think I found the cause of the problem and it is the Autorespond 2.1 mod.
In fact, from the server error log (obtained after contacting the hosting) I saw this error
[16-Nov-2024 14:20:53 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: AutoRespond\AutoRespondService::getEntriesByBoard(): Argument #1 ($boardId) must be of type int, string given, called in /home/ddcrewne/public_html/forum/Sources/AutoRespond/AutoRespond.php on line 42 and defined in /home/ddcrewne/public_html/forum/Sources/AutoRespond/AutoRespondService.php:132
Stack trace:
#0 /home/ddcrew/public_html/forum/Sources/AutoRespond/AutoRespond.php(42): AutoRespond\AutoRespondService->getEntriesByBoard()
#1 /home/ddcrew/public_html/forum/Sources/Subs.php(5787): AutoRespond\AutoRespond->handleRespond()
#2 /home/ddcrew/public_html/forum/Sources/Subs-Post.php(1978): call_integration_hook()
#3 /home/ddcrew/public_html/forum/Sources/MoveTopic.php(314): createPost()
#4 /home/ddcrew/public_html/forum/index.php(184): MoveTopic2()
#5 {main}
  thrown in /home/ddcrew/public_html/forum/Sources/AutoRespond/AutoRespondService.php on line 132
I uninstalled the mod and the problem disappeared.
Is there a way to solve it?

Now I send the link of this post also in the topic dedicated to the mod, hoping that together we can find a good solution.

Thanks

Steve

Quote from: Lucarella on November 17, 2024, 06:15:45 AMIs there a way to solve it?
This is the way:

Quote from: Lucarella on November 17, 2024, 06:15:45 AMNow I send the link of this post also in the topic dedicated to the mod, hoping that together we can find a good solution.
My pet rock is not feeling well. I think it's stoned.

Lucarella

Suki provided the solution to my problem in this post https://www.simplemachines.org/community/index.php?msg=4182497

Thanks everyone for the help

Advertisement: