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: 107
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 114
  • Total: 114

Error log gets flooded my error message from TPShout.english.php

Started by moowalker, September 17, 2013, 01:04:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

moowalker

Hello,

I am getting the following error at my Log. I get massive amounts of errors (around 120/min) so I would like somehow to fix this. Any help is appreciated.

Link to my forum: http://www.infinite-guild.eu/
SMF version: 2.0.5
TP version: 1.0 (1.107  Package vesrion)
Default Forum Language: English
Theme name and version: SMF Default Theme - Core
Browser Name and Version: Chrome Version 29.0.1547.66 m / Firefox 23.0.1
Mods installed: Aeva ~ Auto-Embed Video & Audio 7.2, Bad Behavior mod 1.5.17, Stop Spammer 2.3.9, reCAPTCHA for SMF 0.9.8a, TinyPortal 1.107
Related Error messages:

QuotemOOwalker
error: Undefined
URL: http://www.infinite-guild.eu/index.php?
message 8: Use of undefined constant High - assumed 'High'
File: /home/infinite/public_html/Themes/default/languages/TPShout.english.php (tp_above sub template - eval?)
Line: 42

QuoteGuest
error: Undefined
URL: http://www.infinite-guild.eu/index.php?http://www.infinite-guild.eu/
message 8: Use of undefined constant Low - assumed 'Low'
File: /home/infinite/public_html/Themes/default/languages/TPShout.english.php (tp_above sub template - eval?)
Line: 69

Thank you,
mOOwalker

ZarPrime

moowalker,

Welcome to the TinyPortal Support Site.

Do you know how to turn off template evaluation for your forum?  If so, turn it off and let us know what the errors change to.  If not, let us know and we will tell you how to turn off the evaluation so that you can get an indication of the true errors.

ZarPrime

moowalker

Hello and sorry for my late reply,

I did turn off template evaluation. Here is the error:

Quotehttp://www.infinite-guild.eu/index.php?http://www.infinite-guild.eu/
8: Use of undefined constant High - assumed 'High'
File: /home/infinite/public_html/Themes/default/TPsubs.template.php(127) : eval()'d code
Line: 85

There are many errors and the lines are: 84,85,80,69,65,63,60,55,52,49,47,43,42,41.

Thank you,
mOOwalker

moowalker

After some search I think its a block that produces the error. The block code I suspect is the following PHP block.

//**********TP: WOW RECRUITMENT BLOCK BY wareZ[xv]**************
//Version 2.0                                                  *
//                                                             *
//Requires wz_tooltip on your server inside folder "wz_tooltip"*
//in your forum directory.                                     *
//wz_tooltip can be found at:                                  *
//http://www.walterzorn.de/tooltip/tooltip_e.htm               *
//                                                             *
//Enjoy. Modify the code as you see fit.                       *
//**************************************************************

global $user_info;

//*******************CONFIGURATION SECTION*********************

//--Individual Class Need Rating--//
//Place the need for each class to the right of the equals sign.
//0 = closed
//1 = low
//2 = med
//3 = high
//4 = open (just in case people still like the open/closed wording)

$dk_need = 3;
$druid_need = 1;
$hunter_need = 3;
$mage_need = 3;
$monk_need = 3;
$paladin_need = 3;
$priest_need = 1;
$rogue_need = 2;
$shaman_need = 1;
$warlock_need = 3;
$warrior_need = 2;

//--Quantity needed of each spec!--//
//To the right of the = sign, type the # you need of that spec!
//Here you can be much more specific than simply "High," "Medium," or "Low."

//Death Knight
$blood_dk = Medium;
$frost_dk = High;
$unholy_dk = High;

//Druid
$feralbear_druid = 0;
$feralcat_druid = High;
$resto_druid = 0;
$balance_druid = High;

//Hunter
$needed_hunter = High;

//Mage
$needed_mage = High;

//Monk
$brew_monk = 0;
$mist_monk = 0;
$wind_monk = High;

//Paladin
$holy_paladin = High;
$prot_paladin = 0;
$ret_paladin =  High;

//Priest
$holy_priest = 0;
$shad_priest = Low;

//Rogue
$needed_rogue = 0;

//Shaman
$resto_sham = 0;
$enhance_sham = 0;
$elemental_sham = 0;

//Warlock
$needed_warlock = High;

//Warrior
$prot_war = 0;
$arms_war = High;
$fury_war = High;

//--COLORS--//
/*
$closed_color = 'black';
$low_color = 'green';
$medium_color = 'orange';
$high_color = 'red';
$open_color = 'green';
*/

//--LOCALIZATION--//
//LANGUAGE VARIABLES FOR EACH SPEC

//Death Knight
$blood_spec = 'Blood:';
$frost_spec = 'Frost:';
$unholy_spec = 'Unholy:';

//Monk
$brew_spec = 'Brewmaster:';
$mist_spec = 'Mistweaver:';
$wind_spec = 'Windwalker:';

//Druid
$feralbear_spec = 'Feral(Bear):';
$feralcat_spec = 'Feral(Cat):';
$resto_spec = 'Restoration:';
$balance_spec = 'Balance:';

//Hunter
$hunter_spec = 'Needed:';

//Mage - Frost covered under dk
$mage_spec = 'Needed:';

//Paladin
$holy_spec = 'Holy:';
$prot_spec = 'Protection:';
$ret_spec = 'Retribution:';

//Priest - holy covered under pally
$shadow_spec = 'Shadow:';

//rogue
$rogue_spec = 'Needed:';

//Shaman - Resto covered under druid
$enhance_spec = 'Enhancement:';
$elemental_spec = 'Elemental:';

//Warlock
$warlock_spec = 'Needed:';

//Warrior - Prot covered under pally
$arms_spec = 'Arms:';
$fury_spec = 'Fury:';

//************************END CONFIG****************************

//*************************FUCNTIONS****************************

function printClassStatus($className)
{
switch($className)
{
case 0: return '<font color="black">Closed</font>';
case 1: return '<font color="green">Low</font>';
case 2: return '<font color="orange">Medium</font>';
case 3: return '<font color="red">High</font>';
case 4: return '<font color="green">Open</font>';
}
}
function displayTT($class="",$specName1="",$spec1="",$specName2="",$spec2="",$specName3="",$spec3="",$specName4="",$spec4="")
{
return '
<a href="javascript:void(0);" onmouseover="Tip(\'<table width=100%><tr><td><font color=black>' .$specName1 .  '</font></td><td><font color=black>' . $spec1 . '</font></td></tr><tr><td><font color=black>' . $specName2 . '</font></td><td><font color=black>' . $spec2 . '</font></td></tr><tr><td><font color=black>' . $specName3 . '</font></td><td><font color=black>' . $spec3 . '</font></td></tr><tr><td><font color=black>' . $specName4 . '</font></td><td><font color=black>' . $spec4 . '</font></td></tr></table>\')" onmouseout="UnTip()">' . printClassStatus($class) . '</a>';
}

//**********************END FUNCTIONS****************************

echo'
<script type="text/javascript" src="./wz_tooltip/wz_tooltip.js"></script>
<center>Hover over the recruitment level for details</center>


<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%"><img alt="" style="vertical-align:middle" src="classicons/smalldk.png" /><font color="#C41F3B"><b>Death Knight</b></font></td>
            <td valign="middle"><strong>' . displayTT($dk_need,$blood_spec,$blood_dk,$frost_spec,$frost_dk,$unholy_spec,$unholy_dk) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%"><img alt="" style="vertical-align:middle" src="classicons/smalldruid.png" /><font color="#FF7D0A"><b>Druid</b></font></td>
            <td valign="middle"><strong>' . displayTT($druid_need,$feralbear_spec,$feralbear_druid,$feralcat_spec,$feralcat_druid,$resto_spec,$resto_druid,$balance_spec,$balance_druid) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%"><img alt="" style="vertical-align:middle" src="classicons/smallhunter.png" /><font color="#ABD473"><b>Hunter</b></font></td>
            <td valign="middle"><strong>' . displayTT($hunter_need,$hunter_spec,$needed_hunter) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%"><img alt="" style="vertical-align:middle" src="classicons/smallmage.png" /><font color="#69CCF0"><b>Mage</b></font></td>
            <td valign="middle"><strong>' . displayTT($mage_need,$mage_spec,$needed_mage) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%"><img alt="" style="vertical-align:middle" src="classicons/smallmonk.png" /><font color="#558A84"><b>Monk</b></font></td>
            <td valign="middle"><strong>' . displayTT($monk_need,$brew_spec,$brew_monk,$mist_spec,$mist_monk,$wind_spec,$wind_monk) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%"><img alt="" style="vertical-align:middle" src="classicons/smallpaladin.png" /><font color="#F58CBA"><b>Paladin</b></font></td>
            <td valign="middle"><strong>' . displayTT($paladin_need,$holy_spec,$holy_paladin,$prot_spec,$prot_paladin,$ret_spec,$ret_paladin) . '</a></strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%"><img alt="" style="vertical-align:middle" src="classicons/smallpriest.png" /><font color="#FFFFFF"><b>Priest</b></font></td>
            <td valign="middle"><strong>' . displayTT($priest_need,$holy_spec,$holy_priest,$shadow_spec,$shad_priest) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%"><img alt="" style="vertical-align:middle" src="classicons/smallrogue.png" /><font color="#FFF569"><b>Rogue</b></font></td>
            <td valign="middle"><strong>' . displayTT($rogue_need,$rogue_spec,$needed_rogue) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%"><img alt="" style="vertical-align:middle" src="classicons/smallshaman.png" /><font color="#0070DE"><b>Shaman</b></font></td>
            <td valign="middle"><strong>' . displayTT($shaman_need,$resto_spec,$resto_sham,$elemental_spec,$elemental_sham,$enhance_spec,$enhance_sham) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%"><img alt="" style="vertical-align:middle" src="classicons/smallwarlock.png" /><font color="#9482C9"><b>Warlock</b></font></td>
            <td valign="middle"><strong>' . displayTT($warlock_need,$warlock_spec,$needed_warlock) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%"><img alt="" style="vertical-align:middle" src="classicons/smallwarrior.png" /><font color="#C79C6E"><b>Warrior</b></font></td>
            <td valign="middle"><strong>' . displayTT($warrior_need,$prot_spec,$prot_war,$arms_spec,$arms_war,$fury_spec,$fury_war) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
             <td><center><i>Exceptional applicants of any class will be considered.</center></i>
             </td>
        </tr>
        <tr>';
if($user_info['is_guest'])
{
echo'
            <td><br />
            <div align="center"><a href="http://www.infinite-guild.eu/index.php?action=register">Please Register before Applying</a><br />
            </div>
            </td>';
}
else
{
echo'

            <td> <br />
            <div align="center"><a href="http://www.infinite-guild.eu/index.php/board,17.0.html">Apply Here</a><br />
            </div>
            </td>';
}
echo'
        </tr>
    </tbody>
</table>
</font>
';


Hope this helps.

mOOwalker

moowalker

Ok. I should have searched the matter abit more I was not aware of the template evaluation. The problem was that there were no ' ' at some variables, for example $feralcat_druid = High;
I changed the to
$feralcat_druid = 'High';
and everything seems fine now.

Thanks for you help :)

mOOwalker


This website is proudly hosted on Crocweb Cloud Website Hosting.