froot Posted September 17, 2020 Share Posted September 17, 2020 I'm used to use _x('string', 'category') to fill all my language dependent needs with strings in templates. Now that I use a custom written php function that is included, this _x() function doesn't work anymore. #0 SITE/TEMPLATES/REFERENT.PHP (57): INCLUDE() #1 WIRE/CORE/TEMPLATEFILE.PHP (318): REQUIRE('/APPLICATIONS/M...') #2 WIRE/CORE/WIRE.PHP (394): TEMPLATEFILE->___RENDER() #3 WIRE/CORE/WIREHOOKS.PHP (823): WIRE->_CALLMETHOD('___RENDER', ARRAY) #4 WIRE/CORE/WIRE.PHP (465): WIREHOOKS->RUNHOOKS(OBJECT(TEMPLATEFILE), 'RENDER', ARRAY) #5 WIRE/MODULES/PAGERENDER.MODULE (536): WIRE->__CALL('RENDER', ARRAY) #6 WIRE/CORE/WIRE.PHP (397): PAGERENDER->___RENDERPAGE(OBJECT(HOOKEVENT)) #7 WIRE/CORE/WIREHOOKS.PHP (823): WIRE->_CAL (LINE 29 OF SITE/TEMPLATES/_FOOT.PHP) THIS ERROR MESSAGE WAS SHOWN BECAUSE: SITE IS IN DEBUG MODE. ($CONFIG->DEBUG = TRUE; => SITE/CONFIG.PHP). ERROR HAS BEEN LOGGED. any ideas? Link to comment Share on other sites More sharing options...
Ivan Gretsky Posted September 18, 2020 Share Posted September 18, 2020 How are you including this function? Is it in ProcessWire namespace? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now