Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product
Vanilla 2.6 is here! It includes security fixes and requires PHP 7.0. We have therefore ALSO released Vanilla 2.5.2 with security patches if you are still on PHP 5.6 to give you additional time to upgrade.
Please upgrade to 2.3 here. The 2.2 and earlier branches are no longer being updated.

Getting a lot of warnings with debug on. How can I resolve them?

These warnings are new, from when I upgraded to 2.2.
They seem like pretty low hanging fruits, easy to solve. I just don't know where to begin :).
Any ideas?

There's warnings all over the place. Vanilla core, Smarty cache, and some Plugins.

Notice Locales in /applications/dashboard/locale/en-CA/definitions.php is deprecated. Use /applications/dashboard/locale/en-CA.php instead. in /home/lechuc5/public_html/library/core/class.locale.php line 264
Notice Locales in /applications/conversations/locale/en-CA/definitions.php is deprecated. Use /applications/conversations/locale/en-CA.php instead. in /home/lechuc5/public_html/library/core/class.locale.php line 264
Notice Locales in /applications/vanilla/locale/en-CA/definitions.php is deprecated. Use /applications/vanilla/locale/en-CA.php instead. in /home/lechuc5/public_html/library/core/class.locale.php line 264
Notice Locales in /applications/yaga/locale/de-DE/definitions.php is deprecated. Use /applications/yaga/locale/de-DE.php instead. in /home/lechuc5/public_html/library/core/class.locale.php line 264
Notice Locales in /applications/yaga/locale/en-CA/definitions.php is deprecated. Use /applications/yaga/locale/en-CA.php instead. in /home/lechuc5/public_html/library/core/class.locale.php line 264
Notice Locales in /applications/yaga/locale/pt-BR/definitions.php is deprecated. Use /applications/yaga/locale/pt-BR.php instead. in /home/lechuc5/public_html/library/core/class.locale.php line 264
Notice Locales in /plugins/StatsBox/locale/en-CA/definitions.php is deprecated. Use /plugins/StatsBox/locale/en-CA.php instead. in /home/lechuc5/public_html/library/core/class.locale.php line 264
Notice Locales in /plugins/ZeroComments/locale/en-CA/definitions.php is deprecated. Use /plugins/ZeroComments/locale/en-CA.php instead. in /home/lechuc5/public_html/library/core/class.locale.php line 264
Notice AssetModel::CssPath() with direct paths is deprecated. in /home/lechuc5/public_html/library/core/functions.general.php line 911
Notice AssetModel::CssPath() with direct paths is deprecated. in /home/lechuc5/public_html/library/core/functions.general.php line 911
Notice AssetModel::CssPath() with direct paths is deprecated. in /home/lechuc5/public_html/library/core/functions.general.php line 911
Notice AssetModel::CssPath() with direct paths is deprecated. in /home/lechuc5/public_html/library/core/functions.general.php line 911
Notice Undefined index: BlueColor in /home/lechuc5/public_html/cache/Smarty/compile/vanilla^%%8B^8B2^8B2EBFB7%%default.master.tpl.php line 16
Notice Undefined index: BlueColor in /home/lechuc5/public_html/cache/Smarty/compile/vanilla^%%8B^8B2^8B2EBFB7%%default.master.tpl.php line 19
Notice Undefined index: BlueColor in /home/lechuc5/public_html/cache/Smarty/compile/vanilla^%%8B^8B2^8B2EBFB7%%default.master.tpl.php line 22
Notice Undefined index: BlueColor in /home/lechuc5/public_html/cache/Smarty/compile/vanilla^%%8B^8B2^8B2EBFB7%%default.master.tpl.php line 25
Notice Undefined index: BlueColor in /home/lechuc5/public_html/cache/Smarty/compile/vanilla^%%8B^8B2^8B2EBFB7%%default.master.tpl.php line 28
Notice Undefined index: BlueColor in /home/lechuc5/public_html/cache/Smarty/compile/vanilla^%%8B^8B2^8B2EBFB7%%default.master.tpl.php line 31
Notice Undefined index: BlueColor in /home/lechuc5/public_html/cache/Smarty/compile/vanilla^%%8B^8B2^8B2EBFB7%%default.master.tpl.php line 34

RodSloan

Comments

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    The locale standards has been changed.

    For all those "Notice Locales", if you find a locale/en.php, you can delete locale/en-CA/definitions.php. Otherwise you have to rename it in the above scheme.

  • @R_J : Okey I will do that then. Thanks for your input!

    Any idea about these warnings?
    AssetModel::CssPath() with direct paths is deprecated. in /home/lechuc5/public_html/library/core/functions.general.php line 911
    Notice AssetModel::CssPath() with direct paths is deprecated. in /home/lechuc5/public_html/library/core/functions.general.php line 911
    Notice AssetModel::CssPath() with direct paths is deprecated. in /home/lechuc5/public_html/library/core/functions.general.php line 911
    Notice AssetModel::CssPath() with direct paths is deprecated. in /home/lechuc5/public_html/library/core/functions.general.php line 911
    Notice Undefined index: BlueColor in /home/lechuc5/public_html/cache/Smarty/compile/vanilla^%%8B^8B2^8B2EBFB7%%default.master.tpl.php line 16
    Notice Undefined index: BlueColor in /home/lechuc5/public_html/cache/Smarty/compile/vanilla^%%8B^8B2^8B2EBFB7%%default.master.tpl.php line 19
    Notice Undefined index: BlueColor in /home/lechuc5/public_html/cache/Smarty/compile/vanilla^%%8B^8B2^8B2EBFB7%%default.master.tpl.php line 22
    Notice Undefined index: BlueColor in /home/lechuc5/public_html/cache/Smarty/compile/vanilla^%%8B^8B2^8B2EBFB7%%default.master.tpl.php line 25
    Notice Undefined index: BlueColor in /home/lechuc5/public_html/cache/Smarty/compile/vanilla^%%8B^8B2^8B2EBFB7%%default.master.tpl.php line 28
    Notice Undefined index: BlueColor in /home/lechuc5/public_html/cache/Smarty/compile/vanilla^%%8B^8B2^8B2EBFB7%%default.master.tpl.php line 31
    Notice Undefined index: BlueColor in /home/lechuc5/public_html/cache/Smarty/compile/vanilla^%%8B^8B2^8B2EBFB7%%default.master.tpl.php line 34
    Notice Undefined index: BlueColor in /home/lechuc5/public_html/cache/Smarty/compile/vanilla^%%8B^8B2^8B2EBFB7%%default.master.tpl.php line 37
    Notice Undefined index: BlueColor in /home/lechuc5/public_html/cache/Smarty/compile/vanilla^%%8B^8B2^8B2EBFB7%%default.master.tpl.php lin

    (I run a custom theme purchased from themeforest)

  • peregrineperegrine MVP
    edited November 2015

    Any idea about these warnings?

    some guesses....

    check for calls to CssPath() in themes and plugins. - direct paths is deprecated.
    apparently there is a test for slash as first character in first argument and that is deprecated.

    Undefined index: BlueColor - sounds like array does not have an index and is null.

    perhaps contact theme author.

    alternatively you could turn off warnings, but if you can get rid of warnings by fixing code, not a bad idea.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • peregrineperegrine MVP
    edited November 2015

    @unixhere said: Any idea about these warnings?

    regardingNoNotice AssetModel::CssPath() with direct paths is deprecated. in /home/lechuc5/public_html/library/core/functions.general.php line 911

    to get rid of the above warning:

    you need to change all plugins and themes that use AddCSSFile

    e.g. if you are using a plugin called Statsbox - to get rid of warning.

    change from

    $Sender->AddCSSFile($this->GetResource('design/statsbox.css', FALSE, FALSE));

    to

    $Sender->addCssFile('statsbox.css', 'plugins/StatsBox');

    the same would be true for any other plugins.


    and the css file must be in the design folder of the plugin (not a css folder or anything else but design).

    some plugins may have css in a css file

    plugins/theplugin/css/theplugin.css

    better to change to

    plugins/theplugin/design/theplugin.css

    and change the addCssFile accordingly.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • LincLinc Director of Development Detroit Vanilla Staff
    edited November 2015

    These are mostly the result of plugins that haven't been updated, as indicated by the comments so far. They will have no real effect on your site and could be simply left alone until the plugin authors release updated versions. Also, those are 'Notices' not 'Warnings' - there is an important semantic difference for developers. :) Notices are far less severe than a warning, more of an FYI than an immediate problem.

Sign In or Register to comment.