TinyPortal

Development => Feedback => Topic started by: Gargoyle on February 12, 2006, 03:12:45 PM

Title: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: Gargoyle on February 12, 2006, 03:12:45 PM
I have gone through and clicked on everything that I could to see what has changed and if any errors would appear. This is the list of errors my log compiled during my testing..

I hope this helps in the quest..  ^-^

Quote
8: Undefined index: submissions
File: e:\blablabla.com\wwwroot\sssc\Sources\TPortalAdmin.php
Line: 1056

8: Undefined variable: now
File: e:\blablabla.com\wwwroot\sssc\Sources\TPortalAdmin.php
Line: 382

8: Undefined variable: title
File: e:\blablabla.com\wwwroot\sssc\Sources\TPortalAdmin.php
Line: 382

8: Undefined index: tp-approve
File: e:\blablabla.com\wwwroot\sssc\Themes\default\languages\TPortal.english.php (eval?)
Line: 231

8: Undefined index: filesize
File: e:\blablabla.com\wwwroot\sssc\Themes\default\languages\TPortal.english.php (eval?)
Line: 290

2: usort(): The argument should be an array
File: e:\blablabla.com\wwwroot\sssc\Sources\TPdlmanager.php
Line: 603

2: usort(): The argument should be an array
File: e:\blablabla.com\wwwroot\sssc\Sources\TPdlmanager.php
Line: 601

8: Undefined index: topitems
File: e:\blablabla.com\wwwroot\sssc\Sources\TPdlmanager.php
Line: 600

2: usort(): The argument should be an array
File: e:\blablabla.com\wwwroot\sssc\Sources\TPdlmanager.php
Line: 598

8: Undefined index: topitems
File: e:\blablabla.com\wwwroot\sssc\Sources\TPdlmanager.php
Line: 597

2: in_array(): Wrong datatype for second argument
File: e:\blablabla.com\wwwroot\sssc\Sources\TPdlmanager.php
Line: 586

8: Undefined index: viewcats
File: e:\blablabla.com\wwwroot\sssc\Sources\TPdlmanager.php
Line: 586

2: usort(): The argument should be an array
File: e:\blablabla.com\wwwroot\sssc\Sources\TPdlmanager.php
Line: 578
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: elpvn on February 12, 2006, 03:18:41 PM
What SMF version you're use before upgrage ?
What TPversion you're using, remind that the TinyPortal v.0.8.6 UPDATE only just for upgrade for full version of TP 0.86 !
Are you sure for that ?  ;)
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: Gargoyle on February 12, 2006, 03:32:10 PM
SMF 1.1RC2 and TP version 0.8.6 updated files
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: Xarcell on February 13, 2006, 04:57:43 PM
What theme?

Your issue may be related to this:

http://www.tinyportal.net/smf/index.php?topic=2482.0
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: Gargoyle on February 13, 2006, 10:51:29 PM
Everything is stock on my test site and it gives the same errors...

SMF 1.1RC2 and TP v 0.8.6. with the updated files.
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: crip on February 13, 2006, 11:12:53 PM
Errors come and they go...
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: bloc on February 18, 2006, 12:21:53 PM
This looks like the previous DL manager stats bug..it should be better now witht he updated TP0.8.6 files?.
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: Gargoyle on February 18, 2006, 02:11:13 PM
Have they been updated since the 12th ?
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: bloc on February 19, 2006, 08:51:58 AM
No. I haven't had the errors myself..but I think it may be related to having no items in the stats page of dl manager. I will check this further.
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: Gargoyle on February 19, 2006, 06:27:15 PM
I'd appreciate that.. ;D
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: netcorner on February 24, 2006, 07:11:40 AM
TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log:

QuoteUndefined index: boardnews
File:
D:\usr\www\html\Themes\default\TPortal.template.php (eval?)
Line: 61;

Undefined index: boardnews
æâ€"‡ä»¶: D:\usr\www\html\Themes\default\TPortal.template.php (eval?)
è¡Å': 163
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: bloc on February 25, 2006, 07:51:07 AM
netcorner, looking into it. Thanks for reporting.
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: RoarinRow on March 05, 2006, 05:22:06 PM
I have the similar issues.  I have been using TP. 086 for about a week or so now and only seen these problems today.  I came from SMF 1.0.5 with TP. 075

2: usort(): The argument should be an array
File: /forum/Sources/TPdlmanager.php
Line: 603

2: usort(): The argument should be an array
File: /forum/Sources/TPdlmanager.php
Line: 601

8: Undefined index: topitems
File: /forum/Sources/TPdlmanager.php
Line: 600

2: usort(): The argument should be an array
File: /forum/Sources/TPdlmanager.php
Line: 598

8: Undefined index: topitems
File: /forum/Sources/TPdlmanager.php
Line: 597

2: in_array(): Wrong datatype for second argument
File: /forum/Sources/TPdlmanager.php
Line: 586

8: Undefined index: viewcats
File: /forum/Sources/TPdlmanager.php
Line: 586

2: usort(): The argument should be an array
File: /forum/Sources/TPdlmanager.php
Line: 578

Thanks.
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: crip on March 05, 2006, 05:42:04 PM
I've saw this for a while now.. it's no biggie concern to me.. just clear your error log and keep-on-keeping on..Mr. Bloc is on it. :)

Later, crip
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: RoarinRow on March 05, 2006, 06:02:25 PM
Quote from: ÂÃ,»cripÂÃ,« on March 05, 2006, 05:42:04 PM
I've saw this for a while now.. it's no biggie concern to me.. just clear your error log and keep-on-keeping on..Mr. Bloc is on it. :)

Later, crip

Gotcha, thanks!   ;)
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: Netgull on May 08, 2006, 12:27:28 AM
Any news on this issue?
I get similar errors, and the problem is that i get approximately 300 errors of that kind with one action! Some samples:

h**p://www.*****.gr/smf/index.php?action=tpmod;dl=stats
2: in_array(): Wrong datatype for second argument
File: /home/******/public_html/smf/Sources/TPdlmanager.php
Line: 586

h**p://www.*****.gr/smf/index.php?action=tpmod;dl=stats
8: Undefined index: viewcats
File: /home/******/public_html/smf/Sources/TPdlmanager.php
Line: 586

All in TPdlmanager.php.

The above errors come up when a guest tries to visit the download section. But I have set the guest membergroup not to have any permission to visit the download section, so they see an empty catalogs and stats page.
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: G6Cad on May 08, 2006, 07:13:47 AM
Original posted by Feline

QuoteThis error gives only a Guest access the Download, because ID_MEMBER is not defined. I think, it's better to supress downloads for Guests.

Open TPortalBlocks.template.php, search for
// Otherwise they're a guest - so politely ask them to register or login.
        else
        {
                echo '
                                                        ', $txt['welcome_guest'], '<br />
                                                        ', $context['current_time'], '<br />

                                                        <form action="', $scripturl, '?action=login2" method="post" >
                                                                <input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
                                                                <select name="cookielength">
                                                                        <option value="60">', $txt['smf53'], '</option>
                                                                        <option value="1440">', $txt['smf47'], '</option>
                                                                        <option value="10080">', $txt['smf48'], '</option>
                                                                        <option value="302400">', $txt['smf49'], '</option>
                                                                        <option value="-1" selected="selected">', $txt['smf50'], '</option>
                                                                </select>
                                                                <input type="submit" value="', $txt[34], '" /><br />
                                                                ', $txt['smf52'], '
                                                        </form>';
// module links
echo '<hr /><p style="margin: 4px 0 5px 0;"><img src="'.$settings['images_url'].'/tpmodule.gif" style="margin: 0;" align="absbottom" alt="" />
      <b>'.$txt['tp-admin4'].'</b></p>';
if($context['TPortal']['show_download']=='1')
echo $bullet2.'<a href="'.$scripturl.'?action=tpmod;dl=0">'.$txt['tp-dldownloads'].'</a><br />';
        }


Quoteand remove (or comment out) the module links part.
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: bloc on May 08, 2006, 09:13:39 AM
This should be resolved in v0.9.
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: AbsoluteBreeze on May 15, 2006, 08:57:03 AM
Hi Bloc,

Is v0.9 going to fix the issue in the first post?  as I have that issue too :( - or are you talking about the second problem posted by RoarinRow?

Thanks for your hard work on TP.

Tony



Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: G6Cad on May 15, 2006, 09:24:17 AM
He replyes for the topic, so the answer is for the first post :)
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: bd2003 on June 09, 2006, 03:11:55 PM
Not to hijack this thread, but it kind of goes along with my question...

Can someone point me in the direction of what changed I would have to make in order to send a guess to the standard "login/register" screen when they go to access the downloads?

Right now, with them just getting blank screens, it looks like there is nothing to download...
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: G6Cad on June 09, 2006, 04:06:01 PM
That should have been fixed in the update pack of TP V.086 i think.
If you havent got that, visit the downloads here and take the update and simply uplod the files in it and overwrite the old ones. Always make backup of the old ones first just in case :)
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: gfxindia on June 09, 2006, 04:25:09 PM
Or maybe you can have a button saying downloads which when clicked will go to the login or register page.
Make that button visible only for guests.
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: bd2003 on June 09, 2006, 04:28:11 PM
Nope... when I come in as a guest and go to the downloads section, I still just empty Main and blank stats... :(

Darkman - I could do that, but I'd rather keep things consistent, ya know? Like the Arcade, or when user tries to go to a board they're not spozed to access...

Oh well.. I'll figger something out... :)
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: bloc on June 10, 2006, 12:15:53 AM
But its really "nothing" to download for guests..if you do not allow them to view the folder.

The whole concept of this is to prevent anyone without access to actually view the folder, hiding the folders physically. I could redirect guests..but if you have only certain membergroups allowed in that folder, it will be wrong again.

Right now I would rather recommend you create a main folder, put in a dummy file there, and a text saying to order to see more, you need to be logged in.
Title: Re: TP 0.8.6 (Updated files) and SMF 1.1RC2 Errors from log.
Post by: bd2003 on June 10, 2006, 04:11:16 PM
I guess what I would like is to have the contents display to guests, but if they try to download they get re-directed to the login/register page... I've got it set up that way in the "members only" section of the forum; just trying to keep things consistent. This way, also, guests can see that there is actually stuff there to download, where with the blank sections they see nothing, and come away thinking there's nothing to download (less incentive to register)..

I understand what you're saying, tho, and that makes perfect sense, too... Set up kind of a "samples" area that guests can access. Hmm.... let me ponder on this. It could work.

Thanks!