Jump to content

[SOLVED] (1/1) ContextErrorException Notice: Undefined index: items


David Aguilar
 Share

Recommended Posts

I'm asking because normally in production mode this problem will not be visible and in general this is just `notice`, so it's not super important. 

I guess there is an issue with some theme template, probably footer.tpl or checkout.tpl. There is an array key "index" used while being undefined.

Share this post


Link to post
Share on other sites

9 minutes ago, rrataj said:

I'm asking because normally in production mode this problem will not be visible and in general this is just `notice`, so it's not super important. 

I guess there is an issue with some theme template, probably footer.tpl or checkout.tpl. There is an array key "index" used while being undefined.

Thanks again, I saw this error message since I move the website from a hosting to a VPS.

I dont know why this part of the website is not working properly "?controller=order"

Share this post


Link to post
Share on other sites

Ok, but can you please deactivate debug mode? This should "solve" it and this problem won't be visible. 

This is really not important problem and I guess there is no need to focus on it. But if you really want to find the solution I would need to know how your theme template files look like.

  • Thanks 1

Share this post


Link to post
Share on other sites

12 hours ago, rrataj said:

Ok, but can you please deactivate debug mode? This should "solve" it and this problem won't be visible. 

This is really not important problem and I guess there is no need to focus on it. But if you really want to find the solution I would need to know how your theme template files look like.

Wow @rrataj you are right man. I ussually use the debug mode to know where are located some .tpl files or .css files so I will need to solve this issue later or soon.
How can I show you the files structure?

Share this post


Link to post
Share on other sites

1 hour ago, rrataj said:

First please show the content of "/themes/your_theme/templates/checkout/_partials/footer.tpl" file.

Hello @rrataj ,

/themes/your_theme/templates/checkout/_partials/footer.tpl
 

{block name='footer'}
  <div class="container py-4">
    <div class="jxml-copyright{if $items.specific_class} {$items.specific_class}{/if}">
      {l s='%3$s %2$s - Ecommerce software by [1] %1$s [/1]' mod='jxmegalayout' sprintf=['PrestaShop™', 'Y'|date, '©'] tags=['<a class="_blank" href="http://www.prestashop.com">'] nocache}
      {if $urls.shop_domain_url !== "http://ld-prestashop.template-help.com" && $urls.shop_domain_url !== "https://ld-prestashop.template-help.com"}
        Design by <a href="https://zemez.io/">Zemez</a>
      {/if}
    </div>
  </div>
{/block}


This is the information I have inside footer.tpl,

thanks for your time

Share this post


Link to post
Share on other sites

It trying to add a CSS class but the variable for it does exist. Looks like an theme issue. You could simply remove this part class="jxml-copyright{if $items.specific_class} {$items.specific_class}{/if}"

Share this post


Link to post
Share on other sites

  • 1 year later...
On 11/26/2020 at 3:59 AM, David Aguilar said:

Hello @rrataj ,

/themes/your_theme/templates/checkout/_partials/footer.tpl
 

{block name='footer'}
  <div class="container py-4">
    <div class="jxml-copyright{if $items.specific_class} {$items.specific_class}{/if}">
      {l s='%3$s %2$s - Ecommerce software by [1] %1$s [/1]' mod='jxmegalayout' sprintf=['PrestaShop™', 'Y'|date, '©'] tags=['<a class="_blank" href="http://www.prestashop.com">'] nocache}
      {if $urls.shop_domain_url !== "http://ld-prestashop.template-help.com" && $urls.shop_domain_url !== "https://ld-prestashop.template-help.com"}
        Design by <a href="https://zemez.io/">Zemez</a>
      {/if}
    </div>
  </div>
{/block}


This is the information I have inside footer.tpl,

thanks for your time

I face same issue. kindly tell me how to access these file from namecheep cpanel

Share this post


Link to post
Share on other sites

On 11/24/2020 at 1:09 PM, rrataj said:

Ok, but can you please deactivate debug mode? This should "solve" it and this problem won't be visible. 

This is really not important problem and I guess there is no need to focus on it. But if you really want to find the solution I would need to know how your theme template files look like.

After deactivate debug mode. it shows error of 500 server internal error. How can I fix it

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More