TinyPortal

Development => Support => Topic started by: rav33n on November 17, 2010, 10:14:28 PM

Title: TP admin panels timing out (those that refer tinyportal.net)
Post by: rav33n on November 17, 2010, 10:14:28 PM
SMF version: 1.0.12
TP version: TinyPortal v1.0 beta 4

The "Blocks and panels" section and "News and credits" section in TP admin time out and give me a 500 internal error most of the time. Other times it loads for a few minutes and then displays properly.

I'm assuming it has something to do with pulling information from tinyportal.net, which those sections do.

Any help would be much appreciated.

EDIT: This may have something to do with it : http://www.simplemachines.org/community/index.php?topic=409479.0
Title: Re: TP admin panels timing out (those that refer tinyportal.net)
Post by: WillyP on November 17, 2010, 10:37:09 PM
Not 100% certain, but I am pretty sure TP does not pull any information from any other website.  And if that was the problem, I don't think it would give you a 500, I'd assume the error would be handled in the script, like in the news from smf. Have you checked the server logs to see if you logging any errors?  500 is supposed to write to the server logs a more detailed description so you should see something there.

EDIT:
Quote from: rav33n on November 17, 2010, 10:14:28 PM
EDIT: This may have something to do with it : http://www.simplemachines.org/community/index.php?topic=409479.0
No, that has nothing to do with it.  I just checked my own site, no errors.
Title: Re: TP admin panels timing out (those that refer tinyportal.net)
Post by: rav33n on November 17, 2010, 10:51:36 PM
/index.php?action=tpadmin;blockedit=66;sesc

Quote
2: fopen(http://www.tinyportal.net/tplatestblockcodes.xml) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
File: /home/gamerlk/gamer.lk/Sources/TPmodules.php

Quote
2: fopen() [<a href='function.fopen'>function.fopen</a>]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
File: /home/gamerlk/gamer.lk/Sources/TPmodules.php
Line: 1474

Amongst others.
Title: Re: TP admin panels timing out (those that refer tinyportal.net)
Post by: WillyP on November 17, 2010, 10:58:25 PM
Ok, I stand (partially) corrected, I looked at an older install of TP running TP 1 beta 3, and it does in fact give me an error 500, and on the page it says,
QuoteAn Error Has Occurred!
Sorry, you aren't allowed to fetch news.

IIRC, it has always done this, and there is no timeout, the page comes up instantly, or at least as fast if not faster than every other page.  I have always assumed this was a feature that was never implemented.

This only happens for me in the news and credits section, never in the blocks and panels.
Title: Re: TP admin panels timing out (those that refer tinyportal.net)
Post by: WillyP on November 17, 2010, 11:07:36 PM
For the blocks, this happens when you are going to edit a block? Is it only block 66, every block, or random blocks?
Title: Re: TP admin panels timing out (those that refer tinyportal.net)
Post by: rav33n on November 17, 2010, 11:17:37 PM
These pages time out:

index.php?action=tpadmin;sa=news
index.php?action=tpadmin;sa=modules
index.php?action=tpadmin;sa=blocks

All other sections work fine.

The one common feature the above sections have is the "Latest XXXXX from tinyportal.net [Show] [Hide]" at the top of each section. The sections that work don't have any content pulled from tinyportal.net.

If someone can point me to the file which needs editing, I can try comment out the bit where it pulls info from tinyportal.net.. perhaps?
Title: Re: TP admin panels timing out (those that refer tinyportal.net)
Post by: Lesmond on November 18, 2010, 01:00:08 AM
I think there were some things in tp that got pages from the old tp.net  or other items, not sure though! I will try to find out if I can.
Title: Re: TP admin panels timing out (those that refer tinyportal.net)
Post by: IchBin on November 18, 2010, 04:08:25 PM
I think this has to do with Bloc pointing the other domains to here now. Previously it was grabbing an RSS feed or something from his server to display the Latest TP stuff. We may need to get that script from Bloc. I'll have to take a closer look when I get a chance though.
Title: Re: TP admin panels timing out (those that refer tinyportal.net)
Post by: WillyP on November 18, 2010, 05:46:34 PM
The newest version doesn't have this feature.  Except for checking if it's the latest version.  At some point it was removed?  Or is it just handled so when it doesn't connect, the feature doesn't show?  And why would it time out if it can't find the feed?

I apologize for giving incorrect information in my first post.  I guess it hasn't worked for so long I just forgot about it.
Title: Re: TP admin panels timing out (those that refer tinyportal.net)
Post by: IchBin on November 18, 2010, 05:57:53 PM
But the poster is using TP 1 beta 4.  I'd suggest an upgrade. :)
Title: Re: TP admin panels timing out (those that refer tinyportal.net)
Post by: ZarPrime on November 20, 2010, 02:05:55 PM
There was a feature in TinyPortal 1.0 beta 3 which queried the TinyPortal site to look for updates for News and Modules but this feature was removed in beta 4 and is not in the latest version either, unless you have selected the TinyPortal Package Server (which no longer exists at this time).  The Package Server could have been added by you in your SMF Package Manager under the action "?action=packageget".  If you had added the TintPortal Package Server there, simply remove it. 

Alternatively, just upgrade to the latest version of TinyPortal.  This would be the best way to fix it.

ZarPrime