TinyPortal

Development => Support => Installation => Topic started by: swayforth on February 27, 2011, 12:26:20 AM

Title: Bottom , Top and Lower Panel blocks error
Post by: swayforth on February 27, 2011, 12:26:20 AM
SMF version: 2.0 RC5
TP version: 1.0 RC1
Default Forum Language: English
Theme name and version: BlackRain V3
Browser Name and Version: IE 8, FF 3.6.13, Chrome 9.0


Using this simple code in a HTML Block and it works in all panels but the Bottom, Top and Lower Panels


<a href="mailto:xxxxxx@xxxxxx.com">
<img alt="Click here for part information" src="http://xxxxxxxxxxxxxx.com/forum/tp-images/Image/xxxxxpartsbanner.jpg" style="border:0px solid;margin:0px;"> </a>



once i move the code to one of those blocks i mentioned above, i start getting a ton of errors.

http://xxxxxxx.com/forum/index.php?action=forum8: Undefined variable: codeFile: /home/xxxxxxxxxx/public_html/forum/Sources/TPortal.php
Line: 2731


I've tried checking and unchecking enable template eval option but i still get the same error.

Any ideas why these 3 panels are giving me such grief?








Title: Re: Bottom , Top and Lower Panel blocks error
Post by: z_dane on February 27, 2011, 02:12:09 AM
same problem occur to me

SMF version: 2.0 RC5
TP version: 1.0 RC1
Default Forum Language: English
Theme name and version: Inferno
Browser Name and Version: Opera11, FF4, Chrome 10

Quote8: Undefined variable: code

File: /......../Sources/TPortal.php
Line: 2731

i only can find this at line 2731
// last..if its the last block,close the table
if($last)
echo '</table>';

[color=red]return $code;[/color]
}
Title: Re: Bottom , Top and Lower Panel blocks error
Post by: swayforth on February 27, 2011, 04:01:46 PM
Looking further into this i have changed all settings related to grid view "Display the blocks according to a grid:" in the panel settings. This stopped all the errors in logs. But, for reason i have yet to figure out, i am getting "File not found /forum/Themes/blackrainV3_204/images/theme/main_block.png" in my cpanel still. only when hitting the front page.

Checked all blocks nothing seems to be out of place that i can tell

I guess now i need to search whats going on with grid view ....

Title: Re: Bottom , Top and Lower Panel blocks error
Post by: ZarPrime on February 27, 2011, 09:02:22 PM
Hi Guys,

First of all, swayforth, on your last question ...

The BlackRain theme probably doesn't use the curve templates so that file would probably not be in that theme.  However, why you are getting that error in your cpanel error log, if that is where you are seeing it, is something I would have no idea about.  Do you get any kind of an error concerning this in your Forum error log?  If not, I probably wouldn't worry about it but you might ask Crip about it on his site since that is his theme.  Maybe he knows.  It could be because there is a function in his theme which is calling a function which is available in the default curve theme but not in his theme.  In this case, the theme would default to using the curve function.  His site is at --> http://www.jpr62.com/theme/index.php?action=forum

On the main issue of this topic, for both of you, could you setup some test blocks in these 3 panels on your respective sites (Top, Bottom, and Lower) and fool with the various Panel Settings for how to display the blocks and then give us some feedback so that we will know where to start to test your findings?  Specifically, please test all of the following panel settings for those 3 panels ...
Display the blocks vertically(default)
Display the blocks horizontally
Display the blocks in 2 columns
Display the blocks in 3 columns
Display the blocks in 4 columns
Display the blocks according to a grid (both settings)

In your feedback, please let us know which settings give you that error and which ones don't.  For instance, if you get the error when the panel is set to "Display the blocks in 3 columns" and "Display the blocks according to a grid #2", please tell us this.

Oh, also, you don't have allow anyone on your site to see the test blocks when doing this testing if you don't want to, as long as you, as Admin, can see them.

Thanks,
ZarPrime
Title: Re: Bottom , Top and Lower Panel blocks error
Post by: swayforth on February 27, 2011, 10:13:08 PM
ZarPrime, thank you.

All 3 panels results are the same;

Display the blocks vertically(default) - no errors
Display the blocks horizontally - no errors
Display the blocks in 2 columns - no errors
Display the blocks in 3 columns - no errors
Display the blocks in 4 columns - no errors
Display the blocks according to a grid (both settings)
Setting 1 and 2 errors the same
   http://xxxxxxx.com/forum/index.php?
   8: Undefined variable: code
   File: /home/xxxxxxx/public_html/forum/Sources/TPortal.php
   Line: 2731
   Type of error: Undefined


So i went ahead a tested the rest. The only one that DOES NOT have errors is the Front Panel.
Title: Re: Bottom , Top and Lower Panel blocks error
Post by: ZarPrime on February 27, 2011, 10:31:16 PM
Quote from: swayforth on February 27, 2011, 10:13:08 PM
   http://xxxxxxx.com/forum/index.php?
   8: Undefined variable: code
   File: /home/xxxxxxx/public_html/forum/Sources/TPortal.php
   Line: 2731
   Type of error: Undefined

That's not the same error you reported in your first post above.  What you reported there is ...


http://xxxxxxx.com/forum/index.php?action=forum8: Undefined variable: codeFile: /home/xxxxxxxxxx/public_html/forum/Sources/TPortal.php
Line: 2731


$code and $codefile are 2 different variables.  Are you getting both?  Oh wait, the error you reported earlier just wasn't formatted correctly.  So, you are getting the following error, right?


http://xxxxxxx.com/forum/index.php?action=forum
8: Undefined variable: code
File: /home/xxxxxxxxxx/public_html/forum/Sources/TPortal.php
Line: 2731


OK, thanks for checking on this for us. O0 One of us will test this in one of our test Forums and, if we can verify it, we'll put this in the bugtracker.

ZarPrime
Title: Re: Bottom , Top and Lower Panel blocks error
Post by: swayforth on February 27, 2011, 10:40:36 PM
Yes, sorry the formatting is different but the error is the same.

Thank you
Title: Re: Bottom , Top and Lower Panel blocks error
Post by: z_dane on March 01, 2011, 11:40:37 AM
yes totally same error. i didnt put the whole code.
Thank you for your attention
Title: Re: Bottom , Top and Lower Panel blocks error
Post by: IchBin on March 01, 2011, 04:53:41 PM
Go to the line number posted in TPortal.php and remove this line:

return $code;

The variable is not used and is not needed. That should fix the error.
Title: Re: Bottom , Top and Lower Panel blocks error
Post by: z_dane on March 01, 2011, 11:46:20 PM
Great!! - very simple solution.
Thank you
Title: Re: Bottom , Top and Lower Panel blocks error
Post by: swayforth on March 03, 2011, 01:15:52 AM
Works for me!
Thanks