Jump to content

Preparing for launch


mds
 Share

Recommended Posts

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-&gt;___render()
#3 /data/sites/web/huskymarketingplannercom3143/www/wire/core/WireHooks.php(698): ProcessWire\Wire-&gt;_callMethod('___render', Array)
#4 /data/sites/web/huskymarketingplannercom3143/www/wire/core/Wire.php(402): ProcessWire\WireHooks-&gt;runHooks(Object(ProcessWire\TemplateFile), 'render', Array)
#5 /data/sites/web/huskymarketingplannercom3143/www/wire/modules/PageRender.module(514): ProcessWire\Wire-&gt;__call('render', Array)
#6 [internal function]: ProcessWire\PageRender-&gt;___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 />

 

Link to comment
Share on other sites

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?

  • Like 1
Link to comment
Share on other sites

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.

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...