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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 201
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 161
  • Total: 161

Undefined variable: aoptions, rating_votes, rating_average

Started by dmutha, May 16, 2007, 09:28:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Neil

Quote from: Tick on June 07, 2007, 07:33:04 PM
I would trust G6 with my wife and kids if that means anything to ya.   :)

It's not my server, though, so I don't give that info out as it's not really mine to give.

I'm thinking now about doing what he seems to suggest, i.e. backing up and renaming the forum folder, then uploading brand new files, then using repairsettings.php to (HOPEFULLY!) get my forum set up the way it was, but with no mods, yes?  Then I could try installing TinyPortal and see if it works this time.

G6Cad

No, you dont need to use the repair_settings.
The settings.php and settings_bak.php are left alone, they are the only files you leave alone. All the rest is what you replace.
And yes, all the mods installed will be gone, everything will be alike a new installed forum
And He is a She ;)

Neil

Quote from: G6â„¢ on June 07, 2007, 07:38:45 PM
No, you dont need to use the repair_settings.
The settings.php and settings_bak.php are left alone, they are the only files you leave alone. All the rest is what you replace.
And yes, all the mods installed will be gone, everything will be alike a new installed forum

OK, understood!  Thank you for your time and patience here.  TP looks ACE, I'm eager to get it running right.

QuoteAnd He is a She ;)

Heh, apologies :-)

Neil

Oh no!  It's STILL doing it!

Clean SMF install, then installed TP, go to Home and it gives me those three errors in the error log.

It's SMF 1.1.2 by the way.

I don't know what else to do.

Neil

OK...it's me again :-)  I have decided to have another look at the source code of TPortal.php

I looked for the function where the error is being generated from, and as far as I can see, it is function TPortal_init()

So I've taken the clean TPortal.php file, and added $rating_average, $rating_votes, $aoptions to the declaration of global variables in this function.

And...IT SEEMS TO WORK! 

I'm surprised that others don't seem to have had this error, perhaps people just don't generally look in their error logs?!  Could some folks maybe do it now and see if you can find the errors that have been mentioned in this thread?


tick

I have installed TP in to many forums to count.  I check errors logs four and five times a day.  I have not had this error with any tp install I have done.

G6Cad

QuoteI'm surprised that others don't seem to have had this error, perhaps people just don't generally look in their error logs?!  Could some folks maybe do it now and see if you can find the errors that have been mentioned in this thread?

I can assure you that if there is something we do, it's crawling around in the error log as TinyPortal are a beta product. Every little error we see or hear about, we try to duplicate on our own sites or testsites so we can fix them up.
And as Tick say, we have installed this, and been to sites and have members that have TP installed in thousands by now, and not one error of this type have accured.
I still think it's something else that generate the error on your forum, the "fix" you made probably made a workaround for the error, but a clean install  of SMF and TP foesent have this error any where.

granec

Quote from: Neil on June 07, 2007, 09:50:51 PM
OK...it's me again :-)  I have decided to have another look at the source code of TPortal.php

I looked for the function where the error is being generated from, and as far as I can see, it is function TPortal_init()

So I've taken the clean TPortal.php file, and added $rating_average, $rating_votes, $aoptions to the declaration of global variables in this function.

And...IT SEEMS TO WORK! 

I'm surprised that others don't seem to have had this error, perhaps people just don't generally look in their error logs?!  Could some folks maybe do it now and see if you can find the errors that have been mentioned in this thread?


I've done the same as you did and it seems to work for me too.

gczapko

Hello,

I have a default theme installation ver 1.1.3 & TP 0.983.

I'm having the same problem with this error. I only have the Ignore User Mod 1.3 and EmailFlash 2.0 Mod installed. If I re-install the TP and SMF files manually, will I lose all the member and post data? It doesn't seem that I should.

It does seem to be related to a user clicking the Home Button.

Do all the files need to be replaced or has anyone found the particular culprit?

Thanks

G6Cad


This website is proudly hosted on Crocweb Cloud Website Hosting.