mds Posted January 6, 2017 Posted January 6, 2017 So, I created the website and published it on a subsite of the web hosting. For the final version, I installed a new version, used the profile exporter to get a new one started. The first error was something with (wire) in the Module AllInOneMinify. I was unable to get access to Processwire Admin. By renaming the file that caused the problem, I managed to enter. Everything looks OK in admin, but when I want to look at the site, I get a blank page. In the source code is this error. Who can help? <b>Fatal error</b>: Uncaught Error: Call to undefined function _x() in /data/sites/web/huskymarketingplannercom3143/www/site/assets/cache/FileCompiler/site/templates/_head.php:2 Stack trace: #0 /data/sites/web/huskymarketingplannercom3143/www/site/assets/cache/FileCompiler/site/templates/home.php(1): include_once() #1 /data/sites/web/huskymarketingplannercom3143/www/wire/core/TemplateFile.php(268): require('/data/sites/web...') #2 /data/sites/web/huskymarketingplannercom3143/www/wire/core/Wire.php(374): ProcessWire\TemplateFile->___render() #3 /data/sites/web/huskymarketingplannercom3143/www/wire/core/WireHooks.php(698): ProcessWire\Wire->_callMethod('___render', Array) #4 /data/sites/web/huskymarketingplannercom3143/www/wire/core/Wire.php(402): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TemplateFile), 'render', Array) #5 /data/sites/web/huskymarketingplannercom3143/www/wire/modules/PageRender.module(514): ProcessWire\Wire->__call('render', Array) #6 [internal function]: ProcessWire\PageRender->___renderPage(Object(Proce in <b>/data/sites/web/huskymarketingplannercom3143/www/site/assets/cache/FileCompiler/site/templates/_head.php</b> on line <b>2</b><br />
Harmen Posted January 6, 2017 Posted January 6, 2017 Well, it seems like you forgot to define that function or you made a syntax error or you called it wrong(_head file line 2). Maybe you can make a screenshot/gist/whatever of that function and where you want to use it and paste it here? 1
mds Posted January 6, 2017 Author Posted January 6, 2017 I must have made a typo somewhere. Reading the tag trace again, I discovered it was quite easy… It said <html lang="<?php echo _x('en', 'HTML language code'); ?>"> instead of <html lang="<?php echo __('en', 'HTML language code'); ?>"> Thanks for helping out.
Harmen Posted January 6, 2017 Posted January 6, 2017 Great you found the error. Good luck with further preperations! 1
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