এর আগে আজ আমি আমাদের পরীক্ষা সাইট আপডেট, প্রধান সাইট আউট আপডেট ঘূর্ণায়মান প্রস্তুতি। এটি কয়েক প্লাগিন আপডেট করা এবং জেটপ্যাক সঙ্গে "BeforeTheDeadline" প্লাগইন প্রতিস্থাপন জড়িত। আপডেট শেষ করার পর আমি দেখেছি আমি ড্যাশবোর্ডে বিভিন্ন ত্রুটি বার্তা পেয়ে ছিল, "ইনকামিং লিঙ্কের" ড্যাশবোর্ড উইজেট অধীনে, এবং আরও ত্রুটি যখন আমি W3 মোট ক্যাশে ক্যাশে খালি করার চেষ্টা.
The most common error was as below or similar to below (which was the error shown on the dashboard)
Deprecated: Assigning the return value of new by reference is deprecated in …/wp-includes/class-simplepie.php
I was able to clear the errors by deactivating all plugins, and re-enabling 1 at a time to lead me to the culprit — an update to the “ডাব্লু Auto Affiliate Links” plugin we use to insert links to amazon for some products. A bit more research and a comparison of the code between the old plugin and new version led me to a fix fairly swiftly — the plugin contains some code near the top which turns on পিএইচপি ত্রুটি.
[পিএইচপি]error_reporting(E_ALL & ~E_NOTICE);[/পিএইচপি]
Removing this line (or commenting it) completely resolved the problem.
As a further note — these warnings from পিএইচপি are normal for anyone running wordpress on an up-to-date PHP5 because wordpress includes lots of legacy code which uses functions which are now deprecated. The reason they aren’t normally shown is because non fatal errors are usually suppressed. It’s high time wordpress updated this legacy code, but that is a discussion for another time. In the meantime — if you start to get these errors after a plugin update you need to check the plugin code and edit out any lines that include the error_reporting() function call.
In the process of resolving this issue I also discovered something else quite useful. When I wanted to obtain the previous version of the auto affiliate links plugin I discovered that these are all archived on the wordpress.org downloads page. The current version (রিট হয়-ing সময়) হয় 2.3.2 which can be downloaded from https://downloads.wordpress.org/plugin/wp-auto-affiliate-links.2.3.2.zip. My previous version was 2.2.2 — so I guessed the download link would be https://downloads.wordpress.org/plugin/wp-auto-affiliate-links.2.2.2.zip if old versions were retained. Hey presto — using that address worked perfectly, kudos to wordpress for keeping old versions.
“Hi James I realise it has been a long while, but I just checked this on windows 11 (build 23H2)…”