Jump to content

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


David Aguilar

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.

Link to comment
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"

Link to comment
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
Link to comment
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?

Link to comment
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

Link to comment
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

Link to comment
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

Link to comment
Share on other sites

  • 1 year later...
  • 4 weeks later...
On 26/11/2020 at 07:06, rrataj said:

Je supprimerais uniquement ceci :

Comme certains styles peuvent utiliser la classe "jxml-copyright":)

 

J'ai le mème problème, mais dans le fcihier footer.tpl j'ai pas trouvé la classe que vous avez indiquez.

errerue seulement en mode debug,

en mode prod, site fonctionne correctement

Link to comment
Share on other sites

  • 4 months later...

Is there a way to resolve this issue? I'm currently running Prestashop on my local server, and I'm consistently encountering the same problem. Just to clarify, this Prestashop instance was previously installed on a different server, and I'm attempting to import the database they were using to run it.

 

 

image.png.3c778a2209be0aa56d6749df57e05a89.png

Link to comment
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
×
×
  • Create New...