HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Mysterious "language entry is missing" errors

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#61836 (In Topic #13469)
Avatar

Fan in action

Language entries missing for "BUY_NOW", etc.

Hello,

Running 5.0.1 on an Elief server.  I got a pile (~8-10?) of these "a language entry is missing" errors when I tried to view a catalog entry in a new catalog type I created under Products.  I was using a theme I'd created with the wizard.  I hadn't done any customization on it but went back to the default theme to debug.  That brought the error count down to three:  two for BUY_NOW and one for CUSTOMER_OPTING_OUT_OF_TAX_SHORT.
  • I ran the integrity checker from the upgrader as recommended.  The only file that came up was emaillog.ini.  This seems like an unlikely culprit to be causing the problem.
  • I went to the lang/EN directory and grep'd for the two missing entries.  It found both in shopping.ini.
  • Figured maybe I needed to clear the caches.  Went back to the upgrader and did that.
  • Reloaded the page.  The error count actually increased to 7:
    • "A language entry is missing" errors for CART_EMPTY (1), ADD_TO_CART (2), BUY_NOW (2), and CUSTOMER_OPTING_OUT_OF_TAX_SHORT (1)
    • "A page (ticket) was referenced that does not exist" (1)
  • Did grep for CART_EMPTY and ADD_TO_CART in lang/EN; found both in shopping.ini.
No idea if this is a bug or if I've configured something incorrectly.  Any suggestions welcome!

Back to the top
 
Posted
Rating:
#61850
Avatar

Attachment
sources/hooks/systems/ecommerce/catalogue_items.php
» Download: catalogue_items.php (19 Kb, 149 downloads so far)


Hi,

Please try this fix.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#61858
Avatar

Fan in action

Thanks, Chris! That seems to have fixed it.

(In case anybody else runs into this, caches have to be cleared before this fix takes effect.)
Back to the top
 
Posted
Rating:
#62029

Non-joined user

Hi Chris

Upgraded 4.32 to 5.1 and I get same but only when accesing the "Contact Us"

A language entry is missing: FIRST_POST



B/Regards
Gabi
Back to the top
 
Posted
Rating:
#62037
Avatar

Thanks for reporting.

In the COMMENTS template please change {!FIRST_POST} to {!ocf:FIRST_POST}.

We'll also include this fix in the next patch release.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: