Jump to content

adoxus

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by adoxus

  1. RT @mashable: A very bitter husband gives ex half of everything he owns — literally: http://t.co/9tlI78DOHO http://t.co/Cu91L0x3MP

  2. RT @_Jordan: What idiot called the Apple Watch system font “San Francisco” and not “Francisco Sans”

  3. RT @Fontblog: Hermann Zapf 1918—2015, Versuch eines Nachrufs http://t.co/8QeEXpoHEY (Foto: ©Jürgen Röhrscheid) http://t.co/cZ55r85Xkp

  4. If an AI doesn't know it's an AI, and finds an AI to test it if it's an AI, and finds out it's not an AI to itself. Is it an AI to it?

  5. RT @HuffPostUK: The real-life Up house may be about to be demolished http://t.co/NRhRC644xu http://t.co/t6Po9sv6Ug

  6. Life is too short for proper DNS propagation.

  7. RT @hughlaurie: If you come across a TED talk better than this, well, I'll be surprised. http://t.co/ansOzBr1JQ

  8. So, that's what happens when you filled up all the pages... And, all other pages are messed up... #ios #limit http://t.co/rXATmOuDDA

  9. .@moma recognizes @susankare, designer of the original Mac's icons http://t.co/2oZeWidWuU by @DrCrypt via @FastCoDesign

  10. "A life is like a garden. Perfect moments can be had, but not preserved, except in memory." #LLAP #RIPLeonardNimoy http://t.co/umFHUQjafE

  11. RT @cameronmoll: For us old folks in the room. CSS Image Replacement Museum: https://t.co/2CLA7ZoXs9

  12. No, thank you @kaibrach. "'Don't be satisfied with stories, how things have gotten with others. Unfold… http://t.co/2PRmKya1Hq

  13. I don't know how this is triggered but under version 2.5.14 dev does not add related language page IDs to the database. // ensure all languages are loaded and get instantiated versions of system/default languages foreach($languages as $language) { if($language->id == $defaultLanguagePageID) { $this->defaultLanguagePage = $language; } else if($language->name == 'default') { $_default = $language; // backup plan } } if(!$this->defaultLanguagePage) { if($_default) $this->defaultLanguagePage = $_default; else $this->defaultLanguagePage = $languages->getAll()->first(); } $this->defaultLanguagePage->setIsDefaultLanguage(); $languages->setDefault($this->defaultLanguagePage); Wire::setFuel('languages', $languages); /** * Hook before Inputfield::render to set proper default language value * * Only applies to Inputfields that have: useLanguages == true * */ public function hookInputfieldBeforeRender(HookEvent $event) { $inputfield = $event->object; if(!$inputfield->useLanguages) return; $userLanguage = $this->wire('user')->language; if(!$userLanguage) return; // set 'value' attribute to default language values if($userLanguage->id !== $this->defaultLanguagePageID) { $t = $inputfield->trackChanges(); if($t) $inputfield->setTrackChanges(false); $inputfield->attr('value', $inputfield->get('value' . $this->defaultLanguagePageID)); if($t) $inputfield->setTrackChanges(true); } } The error-causing part is checking the defaultLanguagePageID which wasn't automatically added to the modules table for the LanguageSupport class, hence a quick hack, which is manually finding page IDs and entering the correct info into the data field of LanguageSupport class, as follows, temporarily solves the issue and your install starts working again, since it was a fatal error affecting whole system this may be a lifesaver. You'll see something like this: {"otherLanguagePageIDs":[4220]} Find page IDs and change it to this: {"languagesPageID":4181,"defaultLanguagePageID":4182,"otherLanguagePageIDs":[4219],"languageTranslatorPageID":4183} Trying to add another 3rd language triggers the issue again, changing user default language is harmless. Edit: Trying to delete a language clears whole data field.
  14. RT @guardian: Shooting at Paris offices of satirical magazine Charlie Hebdo – live updates http://t.co/mIwcXkDMvO

  15. Hello bone sculpting computers in the cloud. https://t.co/rJyEzeMEnc

  16. Half The Size Of JPEG: Could BPG Lead To A Double-Speed Web? http://t.co/dPPwttb4W2

  17. RT @FreeseChristian: This is what the "internet of things" endgame looks like http://t.co/DllqzZOMBS

  18. RT @boldmonday: The original Apple watch + San Francisco font. Design 1983-1984 by @SusanKare. http://t.co/xZeFwKaZYu

  19. RT @nycjim: From “Umbrella Man” to “Lady in Red:” The power of iconic protest images. http://t.co/RA2Ze79Ttl via @mashable http://t.co/zEX8…

×
×
  • Create New...