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,026
  • Total Topics: 21,333
  • Online today: 916
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 312
  • Total: 312

Undefined variable Errors

Started by gouri, April 02, 2010, 09:53:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gouri

Hi,

I have the smf 1.1.11 with TP 1.0 Beta 4

I updated to smf2.0 RC3 and TP 1.0 Beta 5 and everything went smooth.

But I am getting two errors again and again they are filling up in the error log

Link to my site: http://tweak2.com
SMF version: 2.0 RC3
TP version: 1.0 Beta 5
Theme name and version: Outline for RC3 from DzinerStudio
Browser Name and Version: Opera 10.51
Mods installed: Currently two mods installed
Ad management mod
Sitemap
Related Error messages:

Quote
Guest
66.249.71.229   
Type of error: Undefined
http://tweak2.com/index.php?
8: Undefined variable: avatar_height
File: /home/******/public_html/Sources/TPortal.php
Line: 1659

Guest
66.249.71.229   
Type of error: Undefined
http://tweak2.com/index.php?
8: Undefined variable: avatar_width
File: /home/*****/public_html/Sources/TPortal.php
Line: 1659


Can anybody tell me what is the problem?

I replace the folder name with stars in the above errors to post here.

IchBin

When are you getting the errors? Can you narrow it down to which page perhaps?

Clear your log > then hit your frontpage > then check the error log.
Clear your log > then hit your forum page > then check the error log

Do this  through out your different pages, including when you go into articles. If you see something consistently showing like a block or article when this error happens, let us know. Also let us know which pages you have this problem on.

Xarcell

How did you update? Did you uninstall Beta 4 first?

gouri

#3
Quote from: IchBinâ„¢ on April 02, 2010, 10:39:30 PM
When are you getting the errors? Can you narrow it down to which page perhaps?

Clear your log > then hit your frontpage > then check the error log.
Clear your log > then hit your forum page > then check the error log

Do this  through out your different pages, including when you go into articles. If you see something consistently showing like a block or article when this error happens, let us know. Also let us know which pages you have this problem on.

Home page: 4 errors means above mentioned two repeated once. So total 4 errors

Forum:  no errors.

A small change now about the error
The links after the type of error is changed to this all of them now only to my ip. External IP still the old one.
Quote
http://tweak2.com/index.php?http://tweak2.com/
The Site is working fine except the  logging errors.

Quote from: Xarcell on April 03, 2010, 12:06:47 AM
How did you update? Did you uninstall Beta 4 first?

I uninstalled the TP first
Updated the SMF 2.0 RC3,  it uninstalled all the plugins, I deleted all of them.
Now Installed TP

Everything fine. I didn't observed log at this point.

Installed  two mods mentioned above.

That is it. Other than those errors in log. No errors till now. Of course I didn't tried to write an article.

gouri

After observing the TPortal.php closely the


elseif(in_array($context['TPortal']['front_type'], array('forum_articles', 'forum_selected_articles')))


Section didn't defined the avatar_height, avatar_width variables. All above are defined these two.

gouri

So can I expect solution for that. Please...

IchBin

This is beta. You should expect that there will be errors. I wouldn't expect a fix. If you're lucky, Bloc "may" give you a fix. If not, you'll have to wait for the next beta.

gouri

Quote from: IchBinâ„¢ on April 03, 2010, 06:32:32 PM
This is beta. You should expect that there will be errors. I wouldn't expect a fix. If you're lucky, Bloc "may" give you a fix. If not, you'll have to wait for the next beta.

Thanks for the answer, I hope I will get a fix. I will wait.

gouri

For now I made a temporary arrangement for the problem.

I defined


$avatar_height
='';
$avatar_width='';


In the above mentioned elseif loop at the starting.
This eliminated the errors for now.
I can wait for actual solution.

Thanks

ZarPrime

gouri,

Please feel free to post this error, and your fix, in The BugTracker so that Bloc will see it quicker.  Be sure to include your suggested fix and a link to this topic.

ZarPrime

This website is proudly hosted on Crocweb Cloud Website Hosting.