TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 05:50:32 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,106
  • Total Topics: 21,213
  • Online today: 358
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 320
  • Total: 321
  • @rjen

Infinite loop and my CPU usage shot up to 99%

Started by Rock Lee, August 27, 2021, 02:15:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rock Lee

Well I go back to these sides and I am translating / correcting what I had, that's why I passed it to the host as it was in my localhost... So I was correctly putting the links when I had to edit the part of "?action=tpadmin;sa=settings" and the url was "C:\wamp64\www\tp-images\\" I tried to change it but it wouldn't let me ... I even tried to mock the db but I had nothing to uninstall and reinstall. It marked me in the file (I leave the lines below) ../source/TPortalAdmin.php

==>2785: while(false !== ($file = readdir($dir)) ) {
2786:         if(($file != '.') && ($file != '..')) {
2787:             if(is_dir($src . '/' . $file)) {
2788:                 tp_recursive_copy($src . '/' . $file,$dst . '/' . $file);
2789:             }
2790:             else {
2791:                 copy($src . '/' . $file,$dst . '/' . $file);
2792:             }
2793:         }
2794:     }
2795:     closedir($dir);


I'm not sure what did this shoot ... I'll do more tests and try to explain better.


Regards!




I need to add it is TP 2.1.0, SMF 2.0.18,PHP: 7.2.34

@rjen

Running Latest TP on SMF2.1 at: www.fjr-club.nl

Rock Lee

Sorry it was half late and I was not thinking correctly... go again and more slowly to explain myself :)

I am updating my entire site due to various failures and things are somewhat old, to work well with PHP 7.4 (after being disconnected so much for not having internet). First I had a test site that I was working on my computer with wamp which works all correctly so I passed everything to my hosting in a test folder in case something strange came up. I started testing functions change values to make sure everything works and I did not come across anything weird in that some URL of certain things were under the url "C:\wamp64\www\" which can change smoothly mostly.

The problem comes when I tried to change "Path where TinyPortal images are uploaded to on your server" that had the url "C:\wamp64\www\tp-images\\" that happened to change for the correct one and I give it to save. It does not load the page again as it regularly does, added the url was not modified and then I modified it directly in the database... Where I realize the CPU is 99% next to the error log reaching 400k marking the same that you leave in the attached image.

I had to uninstall because even though I deleted the part I was told it was still in an infinite loop, when I reinstalled everything was normal. Now I just tried it and everything works normal, which leaves me with doubts since years ago I used TP on all types of servers, something similar never happened to me...

I guess that's why the tests are :doh:, now I think I can explain more O0


Regards!

@rjen

The option to change this path is only added in TP 2.x, so that may explain why this did not happen in the past.

Moving an install across domains will require a change of the paths. I have never heard of getting into an infinite loop because of that ...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Rock Lee

Because something similar never happened to me until I do not know why he did that and in any case he should not have generated so many reports. I changed the addresses when I made changes of domains many times and something similar never happened to me, I get syntax or translation errors but never a similar loop.

I tried to replicate the same error but could not replicate I suppose it must have been something fleeting, that moment it was like 23pm & 1am :idiot2: I'm going to do more tests but I suppose it was a set of very specific things and some bad luck I suppose :P