'Cannot read property 'i18n' of undefined' - JS ordering issue

Discuss general development subjects that are not specific to a particular version like the versioning control system we use or other infrastructure.
Post Reply
Registered User
Posts: 1
Joined: Sat Jan 21, 2017 6:03 am

'Cannot read property 'i18n' of undefined' - JS ordering issue

Post by mikeyjk » Sun Feb 05, 2017 9:13 am

Hey guys,

I'm very new to PHPBB, as well as this forum.
Please let me know if this is not the correct location to ask for assistance with an issue like this.

This is specifically an issue with a custom style.

I'm helping out a friend who is running phpbb3.1.
We have installed a custom theme called Ravaio (version 2.2.0).
When loading up an edit post URL, i.e.:
  • /posting.php?mode=edit&f=10&p=57789
We are getting the following JS error:
  • plupload.js:3 Uncaught TypeError: Cannot read property 'i18n' of undefined(…)
Stepping through in chrome it looks as if the issue is javascript ordering.
The inline definition (inside plupload.html) is running -before- core.js.
I believe this is the heart of the issue.
I am able to get a sense of the ordering, by inserting 'debugger;' inside the inline JS.

When swapping to prosilver, I can see core.js is running -before- the inline plupload JS.

When changing to ravaio, I can see the inline plupload JS is running -before- core.js.

This must be incredibly basic for the HTML/CSS/JS gurus among you.

Really appreciate any assistance that can be provided,
including telling me to post this somewhere else :).


User avatar
Front-End Dev Team Lead
Front-End Dev Team Lead
Posts: 906
Joined: Sat Dec 25, 2010 9:02 pm

Re: 'Cannot read property 'i18n' of undefined' - JS ordering issue

Post by hanakin » Sun Feb 05, 2017 4:07 pm

you are asking you question in the development forums try asking it in the support forums https://www.phpbb.com/community/viewforum.php?f=556
Donations welcome via Paypal Image

Post Reply