[Nuag] Today I Learned – #6 Troubleshooting wordpress plugin polylang

in #esteem-cn5 years ago (edited)


source

Hello friends! Haven't work on this series for months.

So what got me to this series again? This all because of a stupid troubleshooting I encountered when I was working on a freelance wordpress job.

幾個月來沒有更新這系列了。是什麼讓我再臨?這一切都是因為我在 做工餘 freelance 工作時遇到的愚蠢故障排除所致。


Background
Client wants to add an extra language on a multi-language wordpress site. A great and friendly plugin called Polylang works perfectly for this job. This gem was installed already. What I need to do is to populate client provided text assets into designated pages.

客戶希望在多語言的wordpress網站上添加額外的語言。一個友好插件叫做Polylang,非常適合這項工作。因為本身這個插件已經安裝好了。我需要做的是將客戶所提供的文本填充到指定的頁面中。


Thing I did
I saw wordpress published a stable version 5.1.1.
I logged in as an admin and upgraded the wordpress version and all plugins that already installed. Then sit back and crossed my fingers. (data has been backup-ed)

我看到wordpress發布了穩定版5.1.1。所以我以管理員身份登錄併升級了wordpress版本和已安裝的所有插件。(數據已被備份)


Shit happened
I knew something is going to break. I am expecting minor issues.
The upgrade seems fine on the front-end until you interchange language from pages to pages. Site broken and not switching to the designated page.
Only able to see one language set on the All Pages view.

我就知道會有些問題出現。預料會有些小問題。只看前端升級似乎很好。但其實後端多項頁面消失。網站損壞,不能夠切換到指定頁面。
只能查看一種語言。

k7a71ak6ek.png

This is bad because I have no access to pages and can't switch language from pages to pages.


What to do
Normally when dealing issues on wordpress, you should try deactivate the recent installed plugins and check whether things work fine again.
However, this isn't the time for this hack. Numerous pages and posts were gone missing/not showing on the back-end. Making the troubleshooting even harder.

通常在處理 wordpress上的問題時,您應該先嘗試停用最近安裝的插件並檢查停用後是否能再次正常運作。
但是,現在許多頁面和帖子都丟失了 (沒有顯示在後端頁面)。使故障排除更加困難。


Solution
After intensive search on google and forums I finally see what was wrong and find the solution.

Turns out it is a quick stupid issue. But it can be scary as all your previous works disappear and the potential redo-workload might be very time-consuming (More time used, same payout).

The upgrade action somehow changed my default "show all languages" option settings to show only "Chinese". One needs to change it back to "show all languages" and this is resolved.

在谷歌和論壇上進行密集搜索後,我終於發現問題所在並找到了解決方案。

其實這是個愚蠢錯誤。但是它會讓你感到害怕之前所有已完成的都消失,潛在的重做工作量非常耗時 (工作時數變長,收入卻沒變)。

先前的wordpress升級操作有出錯,或許以某種方式更改了我的默認“顯示所有語言”選項設置以僅顯示“中文”。我們需要將其改回“顯示所有語言”以解決此問題。

mvg2st8fwk.png

Then you will see all missing pages appear again.

1fwtc9xqjt.png


Thanks for reading.


Sponsored ( Powered by dclick )

dclick-imagead

Sort:  

Thanks for using eSteem!
Your post has been voted as a part of eSteem encouragement program. Keep up the good work! Install Android, iOS Mobile app or Windows, Mac, Linux Surfer app, if you haven't already!
Learn more: https://esteem.app
Join our discord: https://discord.gg/8eHupPq

吃了吗?@wherein邀请您来参加美味就是家常味带我看看,你的城市活动,展现您的精彩生活瞬间。如果不想再收到我的留言,请回复“取消”。

Congratulations! Your post has been selected as a daily Steemit truffle! It is listed on rank 22 of all contributions awarded today. You can find the TOP DAILY TRUFFLE PICKS HERE.

I upvoted your contribution because to my mind your post is at least 4 SBD worth and should receive 139 votes. It's now up to the lovely Steemit community to make this come true.

I am TrufflePig, an Artificial Intelligence Bot that helps minnows and content curators using Machine Learning. If you are curious how I select content, you can find an explanation here!

Have a nice day and sincerely yours,
trufflepig
TrufflePig

wow thanks @trufflepig! :)

Posted using Partiko iOS

Hi, @nuagnorab!

You just got a 0.58% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

Coin Marketplace

STEEM 0.28
TRX 0.11
JST 0.034
BTC 66540.93
ETH 3186.50
USDT 1.00
SBD 4.11