I looked in my forum error log and it's full with the same errors and loading more error pages very fast.
They are all 8: Undefined variable: boardurl in Line: 2
http://www.forecaddiebuddies.net/index.php?action=forum
8: Undefined variable: boardurl
File: /home/forecadd/public_html/Themes/TP_black22_11rc2/BoardIndex.template.php (eval?)
Line: 2
http://www.forecaddiebuddies.net/index.php
8: Undefined variable: boardurl
File: /home/forecadd/public_html/Themes/default/TPortal.template.php (eval?)
Line: 2
http://www.forecaddiebuddies.net/index.php?topic=107.msg428
8: Undefined variable: boardurl
File: /home/forecadd/public_html/Themes/TP_black22_11rc2/Display.template.php (eval?)
Line: 2
http://www.forecaddiebuddies.net/index.php?action=arcade
8: Undefined variable: boardurl
File: /home/forecadd/public_html/Themes/default/Arcade.template.php (eval?)
Line: 2
and much much more.......
Do anybody know what cause these errors and what i can do about it?
it may be for alot of reasons, what kinda blocks are your using would one be "Calendar php-block"
might be something to do with SMF Arcade.
version of TP & SMF?
If you have the arcade installed and if you havent done the codechange needed in every display.template.php for the themes you are using, you will end up with errors.
If you go to smfarcade.net you will have several fixes for the arcade mod and how to fix the files for other themes used :)
Hi,
I use TP 0.86 ,SMF 1.1rc2, Flashchat 4.5.7 and Arcade 1.3.0RC1+mods+1score+2in1
I used this to integrate flashchat with 1.1rc2 default theme:
http://www.simplemachines.org/community/index.php?topic=66561.0 (http://www.simplemachines.org/community/index.php?topic=66561.0)
I used this to install Arcade and did it for each theme:
http://www.smfarcade.net/index.php/topic,1054.0.html (http://www.smfarcade.net/index.php/topic,1054.0.html)
Everything is working just fine but i only keep getting lots of those errors in error log. More than 100 error pages a day. I am just worried something bad is gonna happen to my site. :o
As i said, Take a look at smfarcade.net and read through the fixes they have for that arcade you have installed.
I have the same arcade and had the same errors as you. The fixes they have works and now im error free ;)
Well i checked there allready and i even start a topic there with the same question but i really can't find fixes.
In fact, they tell me it's not the arcade mod because i uninstalled it and those errors were still coming. I got new errors when i installed it again.
http://www.forecaddiebuddies.net/index.php?action=packages;sa=install2;package=SMFArcade_130_RC1_MOD_E1-2.zip
8: Undefined index: images_url
File: /home/forecadd/public_html/Sources/Load.php(1607) : eval()'d code
Line: 119
Could you give me the link to those fixes that worked for you please?
Sorry but i really don't know what to do here.
Uninstall the arcade mod and not what files it have changed, and then overwrite them with new ones.
I support this forum, and TP, you really have to look for your self in other forums for fixes to the mods made by others.
On the arcade site you have the FAQ section, and then in the Hacks section you have a lot of fixes made by eeek.
They arent all that fast in reply sometimes, but you will get help there.
I'll post this here..just to make sure you see why I said I didnt think it was the arcade :)
dont worry about the errors when you install it..thats just too bad, everybody gets them. :) If you had read the instructions..you would know this!
If you uninstalled the arcade and still get the errors..it not the arcade :) as its not there anymore..
NONE of the edits required for the arcade involve $boardurl. If its in the arcade its in the arcade. If its in the files the edits go in to then its there..unless someone removed it :) Now it cant be a problem "in" the arcade or everyone would have it. It cant be a problem with the edits, as its not in them and everyone would have it.
This leaves a choice...its something you have done or its something else :)
whoesa says:
QuoteI used this to integrate flashchat with 1.1rc2 default theme:
flashchat instructions says:
QuoteThese instructions are for the 1.1 RC2 DEFAULT THEME - no guarantees on any other theme.
Are you using the default theme? As i would assume you need to edit ALL themes, especially since $boardurl is one of the edits :)
Well i found where all those errors came from.
It was a block i added last time called Who's chatting.
I de-activated and now my forum is error free :)
Now i only have to find what's wrong with that code.
Sorry for all the trouble.
This is the code im using in a Block to view whos in the chat rooms :)
global $boardurl;
echo '
<iframe frameborder="0" height="100" src="', $boardurl, '/chat/info_embedded.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="no" border="0" allowtransparency="true"></iframe>';
I think that the code you have is actually the same, but perhaps with out the global $boardurl; ?
Yes it's the same code without the global $boardurl;
I tried to add it but still give me errors.
I think it has something to do with 1 more code i had to change in index.template.php
Replace this:
else
echo '<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'],
'">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url']
. '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108]
. '" style="margin: 2px 0;" border="0" />' : $txt[108]), '</a>';
with this
else {
echo '<a href="', $GLOBALS['boardurl'], '/chat/flashchat.php">',
($settings['use_image_buttons'] ? '<img src="' . $settings['images_url']
. '/chat_icon.gif" alt="FlashChat" style="margin: 2px 0;"
border="0" />' : "FlashChat"),'</a>';
echo '<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'],
'">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url']
. '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108]
. '" style="margin: 2px 0;" border="0" />' : $txt[108]),'</a>';
}
The problem here is that i don't find the exact same code, so i didn't do it.
Because im not sure where and how. :) I only find this.
// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'logout' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>
</td>' , $current_action == 'logout' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
So i quess this is the problem.
Is there a $boardurl global variable in SMF? I thought it was $scripturl. Why don't you just take out the global and put the actual URL instead? That should solve it.
Well thanks, i did what you told me and it seems to work ;D
To make sure i did it like it should be, i will tell what i did.
I replaced this:
// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'logout' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>
</td>' , $current_action == 'logout' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
with this:
// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'logout' ? 'active_back' : 'back' , '">
echo '<a href="http://www.forecaddiebuddies.net/chat/flashchat.php">',
($settings['use_image_buttons'] ? '<img src="' . $settings['images_url']
. '/chat_icon.gif" alt="FlashChat" style="margin: 2px 0;"
border="0" />' : "FlashChat"),'</a
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>
</td>' , $current_action == 'logout' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
Is it like it supposed to be?
Just making sure :)
Looks good to me.