App not running even in safe mode for fa_IR locale


(Pad Pors) #1

We get a blank page after we rebuild the site , it’s the same even in safe mode and with everything enabled.

the errors:

Uncaught TypeError: Cannot create property 'one' on string 'پسندهای داده شده'

with a warning:

_ember_jquery-60dedd1….js:57263DEPRECATION:discourse/views/topic-statuswas moved todiscourse/raw-views/topic-status``


Using ä in customize broke Discourse, even after restore
(Pad Pors) #2

our problem is something like this thread, with the difference that it happens for the string js.user_action_groups.1.

the site is upgraded to latest.

I would be thankful if someone can guide me how to help the app.

everywhere is blank, even the safe mode. but jason pages work good, like https://padpors.com/users/Alavi1412.json, or the /admin/upgrade/ page.

##edit
does anyone knows howto go to a previous version of discourse?

does anyone know howto restore a backup in terminal?

this howto doesn’t seem promising as I couldn’t even get a backup from the current version of database using the howto in terminal.


(Pad Pors) #3

after some accidental work, our forum goes live!

but it’s still broken when I put the default locale to fa_IR , and it only works in en language.

the error log for Persian language:

TypeError: Cannot create property 'one' on string 'پسندهای داده شده'
    at https://padpors.com/assets/application-2e84cc394e4d196502ab98d42a492ef6c5471ec6d4656594b171dc24576d76cb.js:42:3468
    at Array.forEach (native)
    at Object.initialize (https://padpors.com/assets/application-2e84cc394e4d196502ab98d42a492ef6c5471ec6d4656594b171dc24576d76cb.js:42:3145)
    at Object.test.n.initialize (https://padpors.com/assets/application-2e84cc394e4d196502ab98d42a492ef6c5471ec6d4656594b171dc24576d76cb.js:1:20998)
    at https://padpors.com/assets/ember_jquery-60dedd1dca1d8b8ce48b6d0087db3b96f3149b9b5af2d0c7c6357967d29031fb.js:4:28944
    at e.each (https://padpors.com/assets/ember_jquery-60dedd1dca1d8b8ce48b6d0087db3b96f3149b9b5af2d0c7c6357967d29031fb.js:4:13681)
    at e.topsort (https://padpors.com/assets/ember_jquery-60dedd1dca1d8b8ce48b6d0087db3b96f3149b9b5af2d0c7c6357967d29031fb.js:4:13176)
    at e.topsort (https://padpors.com/assets/ember_jquery-60dedd1dca1d8b8ce48b6d0087db3b96f3149b9b5af2d0c7c6357967d29031fb.js:4:12584)
    at i._runInitializer (https://padpors.com/assets/ember_jquery-60dedd1dca1d8b8ce48b6d0087db3b96f3149b9b5af2d0c7c6357967d29031fb.js:4:29123)
    at i.runInstanceInitializers (https://padpors.com/assets/ember_jquery-60dedd1dca1d8b8ce48b6d0087db3b96f3149b9b5af2d0c7c6357967d29031fb.js:4:28889)

#4

If you’re running on DigitalOcean, I recommend you have a snapshot where you have installed everything, including forum.

Then take backup from Admin tools before starting to edit. If you fail, destroy broken discourse droplet, boot new one, restore backup, enjoy life.


(SMHassanAlavi) #5

I have the same PROBLEM with farsi (فارسی) discourse. after rebuilding my website just blank page shown. today I deleted my local because of some problems and after re-installing discourse on my local , I have changed my local discourse language to farsi and after that every thing went blank.
I think this is a bug in new version of discourse.
PLEASE HELP AND FIX THIS BUG. THIS IS VERY IMPORTANT FOR US.


How can I edit a language
(Pad Pors) #6

Update to understand the problem faster:

when we delete the “translation_override” table from the database, and upload it on the local host, the problem is gone.

It seems that one of the new translated strings in the admin/customize panel has something wrong with some new updates.


Where are translations regarding the "badge system" saved in the database?
(Pad Pors) #7

This is the view of our digest email, one of the strings that we needed to delete in translation_override was “likes received”.

the problem can be with some update in the digest email. and I’m not sure if we can translate the string now.


(Sam Saffron) #8

@neil can you confirm there is no stray hardcoded string there?


(Neil Lalonde) #9

It’s not hard coded. The key for the translation is user_notifications.digest.liked_received. It doesn’t have a translation in server.fa_IR.yml, so we fallback to english.


(Sam Saffron) #10

(Sam Saffron) #11

Closing this as stale, flag to reopen @Pad_Pors if still an issue.