AbanteCart Community

AbanteCart Development => Customization help => Topic started by: DarkWarder on April 04, 2014, 06:16:40 PM

Title: 9101::App Warning
Post by: DarkWarder on April 04, 2014, 06:16:40 PM
this message show my indes page there down, all works fine but still this message is there.

9101::App Warning
Extension slideshow2 overrides core template with blocks/slideshow2.tpl in /home/corason/public_html/core/engine/view.php on line 279
Title: Re: 9101::App Warning
Post by: abantecart on April 04, 2014, 09:01:16 PM
This a warning not an error. There is no harm. You can remove blocks/slideshow2.tpl from template or core, and kepp the other whatever you need to be used.
Title: Re: 9101::App Warning
Post by: DarkWarder on April 05, 2014, 06:43:04 AM
What this mean and why get this message?
check this link.

http://amarantti.com/amarantti.jpg
Title: Re: 9101::App Warning
Post by: abantecart on April 05, 2014, 04:34:10 PM
I will try to explain again.

Every template file that is used in the extension that is overriding functionality of core template file will cause this warning.
We think of this as a small precaution to notify the user of this.   

You can check part of core code in view.php class that does this check :

Code: [Select]
        if ( $this->has_extensions && $result = $this->extensions->isExtensionResource('T', $filename) ) {
            if ( is_file($file) ) {
                $warning = new AWarning("Extension <b>".$result['extension']."</b> overrides core template with <b>".$filename."</b>" );
                $warning->toDebug();
            }
            $file = $result['file'];
        }
Title: Re: 9101::App Warning
Post by: DarkWarder on April 06, 2014, 07:08:24 AM
This a warning not an error. There is no harm. You can remove blocks/slideshow2.tpl from template or core, and kepp the other whatever you need to be used.

 so if i want use this slideshow2 so how this warning can fix so that is not show index page? Thank you
Title: Re: 9101::App Warning
Post by: DarkWarder on April 07, 2014, 05:40:25 PM
Hello can someone tell me that how fix this if i want use this slideshow2?
Title: Re: 9101::App Warning
Post by: abolabo on April 08, 2014, 09:17:55 AM
Hello can someone tell me that how fix this if i want use this slideshow2?

i guess you can just rename file extensions/slideshow2/storefront/view/template/default_html5/blocks/slideshow2.tpl to your specific name to prevent this warning.  + rename it in database table block_templates and clear cache.
But i do not understand where you store second slideshow2.tpl.. what template do you use?
Title: Re: 9101::App Warning
Post by: DarkWarder on April 09, 2014, 01:36:51 PM
Hello can someone tell me that how fix this if i want use this slideshow2?

i guess you can just rename file extensions/slideshow2/storefront/view/template/default_html5/blocks/slideshow2.tpl to your specific name to prevent this warning.  + rename it in database table block_templates and clear cache.
But i do not understand where you store second slideshow2.tpl.. what template do you use?

I use default template
http://myyntinurkka.com/template.jpg
Title: Re: 9101::App Warning
Post by: abolabo on April 10, 2014, 06:32:34 AM
so.. did you renamed tpl as i wrote above?
Title: Re: 9101::App Warning
Post by: DarkWarder on April 23, 2014, 09:46:02 AM
so.. did you renamed tpl as i wrote above?

yes i rtename that slideshow but then i get this error message

Error: Could not load template blocks/slideshow2.tpl! in /home/corason/public_html/core/engine/view.php on line 302
Title: Re: 9101::App Warning
Post by: abolabo on April 24, 2014, 07:11:16 PM
so.. did you renamed tpl as i wrote above?

yes i rtename that slideshow but then i get this error message

Error: Could not load template blocks/slideshow2.tpl! in /home/corason/public_html/core/engine/view.php on line 302

inside extension "directory" or "storefront"? you have two tpls and you should define what you want to use.
Title: Re: 9101::App Warning
Post by: DarkWarder on April 25, 2014, 06:38:47 PM
so.. did you renamed tpl as i wrote above?

yes i rtename that slideshow but then i get this error message

Error: Could not load template blocks/slideshow2.tpl! in /home/corason/public_html/core/engine/view.php on line 302


inside extension "directory" or "storefront"? you have two tpls and you should define what you want to use.

This error is storefont there down

Name                      Info
10002::load error      Error: Could not load template blocks/slideshow2.tpl! in /home/corason/public_html/core/engine/view.php on line 302
Title: Re: 9101::App Warning
Post by: abolabo on April 25, 2014, 06:45:39 PM
if you want to get help, please answer the question. :-\
what tpl did you renamed, inside "extension" directory or inside "storefront"?
you have two tpls and you should define what you want to use, tpl of extension or tpl of default template.
Title: Re: 9101::App Warning
Post by: DarkWarder on April 27, 2014, 07:28:12 AM
if you want to get help, please answer the question. :-\
what tpl did you renamed, inside "extension" directory or inside "storefront"?
you have two tpls and you should define what you want to use, tpl of extension or tpl of default template.

 there    extensions/slideshow2/storefront/view/template/default_html5/blocks/slideshow2.tpl
Title: Re: 9101::App Warning
Post by: abolabo on April 28, 2014, 06:37:13 AM
so... to prevent warning you should to rename this file to new name and rename it's in the database table "block_templates".
You can to define what block_id do you use in template debug mode (see settings->system).
Title: Re: 9101::App Warning
Post by: DarkWarder on April 28, 2014, 10:25:55 AM
so... to prevent warning you should to rename this file to new name and rename it's in the database table "block_templates".
You can to define what block_id do you use in template debug mode (see settings->system).

Yes and i do this already but get that error message still
Title: Re: 9101::App Warning
Post by: maniz on May 01, 2014, 09:18:40 AM
Can you give more details how I can fix this error
Title: Re: 9101::App Warning
Post by: DarkWarder on May 01, 2014, 12:20:13 PM
Can you give more details how I can fix this error

this message coming index page there down when that slideshow2 is on
9101::App Warning
Extension slideshow2 overrides core template with blocks/slideshow2.tpl in /home/corason/public_html/core/engine/view.php on line 279
and i want that warning not show there.