anyway Posted December 23, 2017 Share Posted December 23, 2017 Hi, I try to move a page from my local machine to a server and get some error messages. I have uploaded the system several times and had no luck, so far. File and folder permissions are fine. I also deleted the cache files in site/assets/caches. The first error was this: Warning: your server locale is undefined and may cause issues. Please add this to /site/config.php file (adjust “en_US.UTF-8” as needed): setlocale(LC_ALL,'en_US.UTF-8'); I don't understand why, the server should be located in Germany und it is not a multilanguage website. So I copied this into the config.php setlocale(LC_ALL, "en_US.utf8") The next error message is this one: Field: Fieldtype 'FieldtypeAssistedURL' does not exist And what's really strange is that the system doesn't show the modules in site/modules! The site modules area (backend) is empty, although there should be 8 modules inside the folder. What could be the reason for all this? I have to finish the Website before Christmas and I'm just a little lost. I hope there's another one of you on the computers. Thanks a lot in advance! Here are the error.txt entries: 2017-12-23 18:02:57 admin http://my-website Fehler: Uncaught Error: Call to a member function render() on null in /webspace/00/00000/my-websitesite/templates/inc/nav-mobile.php:22 Stack trace: #0 /webspace/00/00000/my-websitesite/assets/cache/FileCompiler/site/templates/_head.php(41): include() #1 /webspace/00/00000/my-websitesite/assets/cache/FileCompiler/site/templates/home.php(1): include('/webspace/04/85...') #2 /webspace/00/00000/my-websitewire/core/TemplateFile.php(268): require('/webspace/04/85...') #3 /webspace/00/00000/my-websitewire/core/Wire.php(380): ProcessWire\TemplateFile->___render() #4 /webspace/00/00000/my-websitewire/core/WireHooks.php(698): ProcessWire\Wire->_callMethod('___render', Array) #5 /webspace/00/00000/my-websitewire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TemplateFile), 'render', Array) #6 /webspace/00/00000/my-websitewire/modules/PageRender.module(514): ProcessWire\Wire->__call('render', Array) #7 /webspa (Zeile 22 in /webspace/00/00000/my-websitesite/templates/inc/nav-mobile.php) Link to comment Share on other sites More sharing options...
dragan Posted December 23, 2017 Share Posted December 23, 2017 Make sure your FTP upload was complete. Refresh the module cache. You could also try to delete everything inside site/assets/cache/. The locale is just an example. Set it to whatever you need. It has nothing to do with a site being multilanguage or not. Try setlocale(LC_ALL, 'de_DE.UTF-8'); 3 Link to comment Share on other sites More sharing options...
anyway Posted December 23, 2017 Author Share Posted December 23, 2017 Thanks for your superfast reply dragan! FTP upload should be complete. I have repeated the upload 4-5 times. How can I explicitly refresh the module cache? Thanks for the codesnippet! Link to comment Share on other sites More sharing options...
dragan Posted December 23, 2017 Share Posted December 23, 2017 You're welcome. It's under modules: https://www.yoursite.com/backend/module/?reset=1 of course, replace "backend" with whatever name you have chosen during install (default = processwire) 5 Link to comment Share on other sites More sharing options...
anyway Posted December 23, 2017 Author Share Posted December 23, 2017 Hey, that worked! The page is now displayed and all error messages are gone. 1,000 karma points for you, dragan, you saved my weekend! 1 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