TinyPortal

Development => Support => Installation => Topic started by: Unknownn on February 07, 2006, 09:28:08 PM

Title: Errors with TinyPortal v0.8.6
Post by: Unknownn on February 07, 2006, 09:28:08 PM
Hello !

I'm using TinyPortal v0.8.6 now and I love it !

But there are somes errors that I would like to fix :
Quote8: Undefined index: topbottomEnable
Fichier: .../Themes/TP_black22_11rc2/MessageIndex.template.php (eval?)
Ligne: 111

Quote2: usort(): The argument should be an array
Fichier: .../Sources/TPdlmanager.php
Ligne: 595

Quote8: Undefined index: topitems
Fichier: .../Sources/TPdlmanager.php
Ligne: 594

Quote8: Undefined index: viewcats
Fichier: .../Sources/TPdlmanager.php
Ligne: 583

Quote2: in_array(): Wrong datatype for second argument
Fichier: .../Sources/TPdlmanager.php
Ligne: 583

The first errors is the most important I always have it !
Thanks in advance !

EDIT: These errors are fixed for me, thanks
Title: Re: Errors with TinyPortal v0.8.6
Post by: Minsc on February 08, 2006, 03:22:32 AM
Can't help you with the top one.

As for the others, I believe it has something to do with member groups not having premission to view a download category.  Edit the category to see if member groups have permission to view it.  I remember having errors like those and thats's what fixed it for me.
Title: Re: Errors with TinyPortal v0.8.6
Post by: Unknownn on February 08, 2006, 10:42:04 AM
Thanks Minsc for your answer

Yes I've made some groups that could'nt see all download categories...

But what can I do if I want to keep theses groups ?
Title: Re: Errors with TinyPortal v0.8.6
Post by: juggler on February 08, 2006, 12:09:11 PM
Getting this one loads :-

8: Undefined variable: scripturl
File: /home/bluebuz/public_html/buzzards/Themes/default/TPortal.template.php (eval?)
Line: 112
Title: Re: Errors with TinyPortal v0.8.6
Post by: Unknownn on February 08, 2006, 03:01:47 PM
I think that I've found the solution for the first problem. I quote from Bloc !

Quote from: BlocHave you allowed "go top" button/link to be shown? (admin/featues and options). Doing so might remove the error - as long as you have that set.

Thank you Bloc and The Search Function  :uglystupid2:

:coolsmiley:

Someone could help me for the others ?
Title: Re: Errors with TinyPortal v0.8.6
Post by: bloc on February 08, 2006, 04:18:36 PM
Quote from: Unknownn on February 08, 2006, 10:42:04 AM
Thanks Minsc for your answer

Yes I've made some groups that could'nt see all download categories...

But what can I do if I want to keep theses groups ?

I will find and correct this bug. there will also be posted a update on just the files in question.

Quote from: juggler on February 08, 2006, 12:09:11 PM
Getting this one loads :-

8: Undefined variable: scripturl
File: /home/bluebuz/public_html/buzzards/Themes/default/TPortal.template.php (eval?)
Line: 112
That is most likely an error with a phpblock, the "recent topics" block had problems, but should work now. Check the topic about it again.

It could also be other codes of course.
Title: Re: Errors with TinyPortal v0.8.6
Post by: Unknownn on February 08, 2006, 04:26:39 PM
QuoteThat is most likely an error with a phpblock, the "recent topics" block had problems, but should work now. Check the topic about it again.
I'm using the recent topics block but I haven't problems now  :)
I've made a clean installation  ^-^

Thank you Bloc for your reply about my problems  :coolsmiley:
Title: Re: Errors with TinyPortal v0.8.6
Post by: Unknownn on February 12, 2006, 02:32:44 PM
Oh ! Two new errors :
Quote
8: Undefined offset: 236
Fichier: .../Themes/TP_black22_11rc2/Recent.template.php (eval?)
Ligne: 64

Quote8: Undefined offset: 237
Fichier: .../Themes/TP_black22_11rc2/Recent.template.php (eval?)
Ligne: 64

It happened when you use index.php?action=recent

Can someone help me ?
Title: Re: Errors with TinyPortal v0.8.6
Post by: Prasad007 on February 12, 2006, 02:54:38 PM
try uploading a fresh copy of the defective file..
Title: Re: Errors with TinyPortal v0.8.6
Post by: bloc on February 12, 2006, 08:42:31 PM
Quote from: Unknownn on February 12, 2006, 02:32:44 PM
Oh ! Two new errors :
Quote
8: Undefined offset: 236
Fichier: .../Themes/TP_black22_11rc2/Recent.template.php (eval?)
Ligne: 64

Quote8: Undefined offset: 237
Fichier: .../Themes/TP_black22_11rc2/Recent.template.php (eval?)
Ligne: 64

It happened when you use index.php?action=recent

Can someone help me ?
Seems like language errors. Do you use updated language files?
Title: Re: Errors with TinyPortal v0.8.6
Post by: Unknownn on February 12, 2006, 09:42:15 PM
Quote from: Bloc link=topic=2582.msg22964#msg22964
Seems like language errors. Do you use updated language files?
Updated language files ? Oh... There is a new french translation for TP ^^
I don't need to make it myself now :P But I will check it soon

Yes it is language errors. I'm using the last release of TP Black22 Theme.
In Recent.template.php, it's the line :
<span class="smalltext"><a href="' . $scripturl . '">' . $txt[236] . '</a> ' . $txt[237] . '<br /></span>';

I've seen in index.english in the last release of TP Black22 Theme and I can't find $txt[236] and $txt[237] but there are $txt[235] and $txt[238].

You surely forgot it...
Title: Re: Errors with TinyPortal v0.8.6
Post by: houston on February 13, 2006, 03:07:59 AM
I am getting these errors when I set the permissions to upload files.

8: Undefined index: show
File: /home/eaglebay/public_html/forum/Themes/default/ManagePermissions.template.php (eval?)
Line: 239


and

2: Invalid argument supplied for foreach()
File: /home/eaglebay/public_html/forum/Sources/ManagePermissions.php
Line: 1431


Although permissions are set to upload, the link does not show up in the modules section.

Any comments?

Thanks
Title: Re: Errors with TinyPortal v0.8.6
Post by: bloc on February 13, 2006, 10:39:49 AM
Quote from: Unknownn on February 12, 2006, 09:42:15 PM
Quote from: Bloc link=topic=2582.msg22964#msg22964
Seems like language errors. Do you use updated language files?
Updated language files ? Oh... There is a new french translation for TP ^^
I don't need to make it myself now :P But I will check it soon

Yes it is language errors. I'm using the last release of TP Black22 Theme.
In Recent.template.php, it's the line :
<span class="smalltext"><a href="' . $scripturl . '">' . $txt[236] . '</a> ' . $txt[237] . '<br /></span>';

I've seen in index.english in the last release of TP Black22 Theme and I can't find $txt[236] and $txt[237] but there are $txt[235] and $txt[238].

You surely forgot it...

Those are SMF language entries..and if they are missing from black22 theme, i will need to update it.
Title: Re: Errors with TinyPortal v0.8.6
Post by: Unknownn on February 13, 2006, 01:55:06 PM
Quote from: Bloc link=topic=2582.msg23077#msg23077
Those are SMF language entries..and if they are missing from black22 theme, i will need to update it.
In recent.template.php of "defaut" directory, I haven't these entries...
Recent.template.php of black22 is different than Recent.template of defaut... Any ideas ?
Title: Re: Errors with TinyPortal v0.8.6
Post by: criminalmind on February 13, 2006, 07:07:15 PM
Hi! I was running Helios / TinyPortal v0.8.6 combo with SMF 1.1 RC2 and everything was cool until I moved the shoutbox to the center position and everything got messed up. Now when I try to visit http://site/index.php, http://site/index.php?action=forum, http://site/index.php?action=admin or http://site/index.php?action=tpadmin;sa=settings and generally every page on the site I get the following error:

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
File: /home/george/public_html/forum/Sources/TPortal.php
Line: 264

any ideas? I uploaded the fixxed v0.8.6 files and tried the manual_tp_install.php but nothing changed.
Title: Re: Errors with TinyPortal v0.8.6
Post by: bloc on February 14, 2006, 08:52:07 PM
Was the shoutbox scrolling? or does the error occur regardless?
Title: Re: Errors with TinyPortal v0.8.6
Post by: crip on February 14, 2006, 09:06:28 PM
Could try TP. zip via package manager again if it wasn't a full installions
Title: Re: Errors with TinyPortal v0.8.6
Post by: juggler on February 15, 2006, 12:16:58 AM
Quote from: juggler on February 08, 2006, 12:09:11 PM
Getting this one loads :-

8: Undefined variable: scripturl
File: /home/bluebuz/public_html/buzzards/Themes/default/TPortal.template.php (eval?)
Line: 112

Found it. It was the Arcade Champions block causing it. I'll ask a few questions over at smfarcade.net.
Title: Re: Errors with TinyPortal v0.8.6
Post by: criminalmind on February 19, 2006, 08:00:05 AM
Quote from: Bloc on February 14, 2006, 08:52:07 PM
Was the shoutbox scrolling? or does the error occur regardless?

Sorry for the delay... The stupid shoutbox was indeed scrolling!

Actually I uploaded all the original files that tinyportal modifies and deleted the package from the package manager so my forum behaves "normally" again (without TP).

When I tried to re-install tiny portal all my previous TP settings where intact and worst of all the same error re-emerged at line 1 of File: /home/george/public_html/forum/Sources/TPortal.php rendering my site unusable once again!!!!

I guess my "manual" uninstall (replace files - delete package) didnt really work (when I get the error I cant uninstall via the package manager because nothing works).

How can I manually get rid of tiny portal completelly, so that I can install a "clean" fresh copy later?

Thanks Bloc
Title: Re: Errors with TinyPortal v0.8.6
Post by: bloc on February 19, 2006, 08:25:54 AM
Ftp up a upgrade version of the SMF version you currently have. Then run it. it won't hurt anything (in fact you don't really need to run upgrade.php, but do remove it and the 2 sql files) to do this, and all the modifications made by TP will be gone. But database tables will still be there.

Beware that this also remove any other mod of course.

On the other hand..these are the files that TP modifies, so if you get them replaced, you should be fine:

forum/index.php
forum/Themes/default/index.template.php
forum/Themes/babylon/index.template.php
forum/Sources/Load.php
forum/Sources/Security.php
forum/Sources/Subs.php
forum/Sources/ManagePermissions.php
Title: Re: Errors with TinyPortal v0.8.6
Post by: MR-Brain on February 24, 2006, 04:37:31 PM
Hi there,

I have the following problem. When I do a clean install of SMF (1.0.6) and install TP (0.8.6) it works great. However, when I use my existing database I always get the same error;

8: Undefined index: theme_version
File: /home/sollicit/public_html/forum/Sources/TPortalAdmin.php
Line: 62


I also tried a clean install and restore a backup of my database (even tried to restore a database without the settings and themes tables). Someone any idea what it might be?
Title: Re: Errors with TinyPortal v0.8.6
Post by: G6Cad on February 24, 2006, 05:58:56 PM
It looks like it calls for a template that you dont have ?

Quote8: Undefined index: theme_version
Title: Re: Errors with TinyPortal v0.8.6
Post by: MR-Brain on February 24, 2006, 06:07:35 PM
Quote from: g6cad on February 24, 2006, 05:58:56 PM
It looks like it calls for a template that you dont have ?

Quote8: Undefined index: theme_version

And where can I see that? (that's the reason why I restored my database without the theme and settings tables).
Title: Re: Errors with TinyPortal v0.8.6
Post by: MR-Brain on February 24, 2006, 10:11:18 PM
No one? Or am I too impatient  ;)
Title: Re: Errors with TinyPortal v0.8.6
Post by: G6Cad on February 24, 2006, 11:10:03 PM
Try to replace the file Tportaladmin.php with a fresh one and see if it helps.

It calles for something from the database that it cant find, if you have an old database running with a fresh install, i can think of that there can be some missing strings the DB calls for.

When i look in my file at that line, it calls for articles there. My string look like this from line 60 to line 64

<td>' , $mg['id']==$context['TPortal']['featured_article'] ? '<b>'.$txt['tp-featured'].'</></b> <a href="' . $scripturl . '?action=tpadmin;featured=">'.$txt['tp-turnoff'].'</a>' : '<a href="' . $scripturl . '?action=tpadmin;featured='.$mg['id'].'"">'.$txt['tp-setasfeatured'].'</a>' , '</td><td>
Title: Re: Errors with TinyPortal v0.8.6
Post by: MR-Brain on February 24, 2006, 11:20:25 PM
Quote from: g6cad on February 24, 2006, 11:10:03 PM
Try to replace the file Tportaladmin.php with a fresh one and see if it helps.

I replaced it with a fresh one but there is no change at all. When I compare my code to yours I have something completely different. My lines 61 to 65 are:


        // check if version is pre1.1, then render old style admin
if(in_array($settings['theme_version'],array('1.0.5','1.0.6')) || !isset($settings['theme_version']))
$context['TPortal']['use_old_admin']=true;
else
$context['TPortal']['use_old_admin']=false;

Title: Re: Errors with TinyPortal v0.8.6
Post by: G6Cad on February 24, 2006, 11:24:25 PM
Wich SMF did you have before ? nad what have you installed now?

could it be that you have mixed up the 1.1rc version with the smf 1.0.5 or 1.0.6?

The line you have pasted say 1.0.5 an 1.0.6, If you have rc1 or rc2 in the database, no wonder it wont work
Title: Re: Errors with TinyPortal v0.8.6
Post by: MR-Brain on February 24, 2006, 11:38:51 PM
As on my first posting you can see what I use.

Quote from: MR-Brain on February 24, 2006, 04:37:31 PM
I have the following problem. When I do a clean install of SMF (1.0.6) and install TP (0.8.6) it works great.

Maybe some additional information. The forum works fine, but I can't use the tpadmin. When I use that I get the error as mentioned before. So I can't edit the TP settings...
Title: Re: Errors with TinyPortal v0.8.6
Post by: G6Cad on February 25, 2006, 12:13:23 AM
I was more refering to this line in your first post
QuoteI use my existing database I always get the same error;

Is that database for 1.0.5/1.0.6 with TP or Rc1/Rc2 with TP ?
Title: Re: Errors with TinyPortal v0.8.6
Post by: bloc on February 25, 2006, 07:47:05 AM
This line...

if(in_array($settings['theme_version'],array('1.0.5','1.0.6')) || !isset($settings['theme_version']))


needs to be....
if((isset($settings['theme_version']) && in_array($settings['theme_version'],array('1.0.5','1.0.6'))) || !isset($settings['theme_version']))
$context['TPortal']['use_old_admin']=true;


The error is not "critical" or anything, just a check that wasn't performed. It has been fixed for the next release.
Title: Re: Errors with TinyPortal v0.8.6
Post by: MR-Brain on February 25, 2006, 11:58:51 AM
Okay, this gets me a bit further but not much. I can now click on the TP Settings but get the following error;

Submissions (8: Undefined index: submissions
File: /home/sollicit/public_html/forum/Themes/default/languages/Stats.english.php (eval?)
Line: 28


When I look at line 28 at stats.english.php it says;

$txt['average_topics'] = 'Average topics per day';
Title: Re: Errors with TinyPortal v0.8.6
Post by: MR-Brain on February 27, 2006, 09:16:54 PM
Is there no one who can help me with this??
Title: Re: Errors with TinyPortal v0.8.6
Post by: G6Cad on February 27, 2006, 09:24:08 PM
Well, i think i have seen that error somewhere before in here, i think it had something to do with the downloads.
Do you have any files in your downloadsection? If you dont, the script calls for files that are not there, and therfore it cant give stats from it.

Try to put some file or files up and see if the error goes away
Title: Re: Errors with TinyPortal v0.8.6
Post by: MR-Brain on February 27, 2006, 09:30:30 PM
Unfortunately I also can't access the downloadmanager to put some files in my downloadsection. When I try to access my downloadmanager it says:

8: Undefined index: tp-settings
File: /home/sollicit/public_html/forum/Themes/default/languages/Stats.english.php (eval?)
Line: 21


It seems that everything works fine but i just can't access tpadmin  :(
Title: Re: Errors with TinyPortal v0.8.6
Post by: G6Cad on February 27, 2006, 09:32:38 PM
If i were you, i would delete the old install and do it all over again  ???
The TinyPortal that is....

Seems like itÂÃ,´s a lot of things not working there  :-\
Title: Re: Errors with TinyPortal v0.8.6
Post by: MR-Brain on February 27, 2006, 09:38:24 PM
Unfortunately that also doesn't work  :( I have tried everything. First upload my old DB and then install SMF with TP, no success, then a clean install with SMF and TP and upload my old DB and it again doesn't work  :(. I guess there is something strange in the database. It was converted from Supermod to SMF (that works fine) but as soon as I install TP it doesn't work anymore (at least TP doesn't work anymore). I have been working for 2 days now on this. I think I'll get a couple of beers and forget everything  :idiot2:

I had to convert from Supermod to SMF because my old DB was hacked. As Supermod isn't really active with security patches I made the choice to go for SMF. With Supermod I had a portal and I really, really, really need a working portal again.....
Title: Re: Errors with TinyPortal v0.8.6
Post by: G6Cad on February 27, 2006, 09:46:22 PM
If you remove the db TP-tables from the old database. and just make a fresh install of the TinyPortal, maby that will work?
Backup the content in your blocks and stor them localy, and then put all the things you want to keep back manually
Title: Re: Errors with TinyPortal v0.8.6
Post by: MR-Brain on February 27, 2006, 09:50:00 PM
In the old database there where no TP-tables. It is always a clean install of TP. The DB was just converted a couple of days ago from Supermod to SMF. Now only the SMF board is running. There is only 1 way that I get it working but then my members can't send any PM's anymore  :uglystupid2:
Title: Re: Errors with TinyPortal v0.8.6
Post by: MR-Brain on February 27, 2006, 10:52:12 PM
We can also work the other way around. When SMF works with TP my "PM section" doesn't work. It is not possible to send messages. I have an existing DB with 206 PM's. When someone sends a message in the table instant_messages this message gets the ID_PM of zero instead of 207. The table im_recipients doesn't change at all.

I also tried to empty the both tables but then again it doesn't work. The first message works in an empty DB but the seconds message doesn't get out. Then I get the error:

Database Error: Duplicate entry '0' for key 1
File: /home/sollicit/public_html/forum/Sources/Subs-Post.php
Line: 509


Which isn't so strange as he gets the same ID_PM as the first message. The table im_recipients stays empty.....
Title: Re: Errors with TinyPortal v0.8.6
Post by: MR-Brain on February 28, 2006, 09:53:14 AM
I guess I am the first with these strange things  ;D :2funny:
Title: Re: Errors with TinyPortal v0.8.6
Post by: crip on February 28, 2006, 12:08:31 PM
Un-InsTaLL TP ..then do a manual install .. presto - your Not the 1st.
Title: Re: Errors with TinyPortal v0.8.6
Post by: bloc on February 28, 2006, 07:10:37 PM
I am not so sure this is related to TP..have you tried the same without it installed?
Title: Re: Errors with TinyPortal v0.8.6
Post by: crip on February 28, 2006, 07:37:03 PM
Good question Mister.