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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,910
  • Total Topics: 21,307
  • Online today: 872
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 554
  • Total: 555
  • @rjen

Errors with TinyPortal v0.8.6

Started by Unknownn, February 07, 2006, 09:28:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MR-Brain

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?

G6Cad

It looks like it calls for a template that you dont have ?

Quote8: Undefined index: theme_version

MR-Brain

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).

MR-Brain


G6Cad

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>

MR-Brain

#25
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;


G6Cad

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

MR-Brain

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...

G6Cad

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 ?

bloc

#29
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.

This website is proudly hosted on Crocweb Cloud Website Hosting.