DIY মিডিয়া হোম লোগো

আপনার নিজের হোম থিয়েটার এবং হাই ফাই সেটআপ নকশা ও নির্মাণের জন্য চূড়ান্ত সাইট.

0ওয়ার্ডপ্রেস লোগোস্থির: ওয়ার্ডপ্রেস ড্যাশবোর্ডে অননুমোদিত পিএইচপি ত্রুটি

এর আগে আজ আমি আমাদের পরীক্ষা সাইট আপডেট, প্রধান সাইট আউট আপডেট ঘূর্ণায়মান প্রস্তুতি। এটি কয়েক প্লাগিন আপডেট করা এবং জেটপ্যাক সঙ্গে "BeforeTheDeadline" প্লাগইন প্রতিস্থাপন জড়িত। আপডেট শেষ করার পর আমি দেখেছি আমি ড্যাশবোর্ডে বিভিন্ন ত্রুটি বার্তা পেয়ে ছিল, "ইনকামিং লিঙ্কের" ড্যাশবোর্ড উইজেট অধীনে, এবং আরও ত্রুটি যখন আমি W3 মোট ক্যাশে ক্যাশে খালি করার চেষ্টা.

The most com­mon error was as below or sim­il­ar to below (which was the error shown on the dashboard)

Deprec­ated: Assign­ing the return value of new by ref­er­ence is deprec­ated in …/wp-includes/class-simplepie.php

I was able to clear the errors by deac­tiv­at­ing all plu­gins, and re-enabling 1 at a time to lead me to the cul­prit — an update to the “ডাব্লু Auto Affil­i­ate Links” plu­gin we use to insert links to amazon for some products. A bit more research and a com­par­is­on of the code between the old plu­gin and new ver­sion led me to a fix fairly swiftly — the plu­gin con­tains some code near the top which turns on পিএইচপি ত্রুটি.

[পিএইচপি]error_reporting(E_ALL & ~E_NOTICE);[/পিএইচপি]

Remov­ing this line (or com­ment­ing it) com­pletely resolved the problem.

As a fur­ther note — these warn­ings from পিএইচপি are nor­mal for any­one run­ning word­press on an up-to-date PHP5 because word­press includes lots of leg­acy code which uses func­tions which are now deprec­ated. The reas­on they aren’t nor­mally shown is because non fatal errors are usu­ally sup­pressed. It’s high time word­press updated this leg­acy code, but that is a dis­cus­sion for anoth­er time. In the mean­time — if you start to get these errors after a plu­gin update you need to check the plu­gin code and edit out any lines that include the error_reporting() func­tion call.

In the pro­cess of resolv­ing this issue I also dis­covered some­thing else quite use­ful. When I wanted to obtain the pre­vi­ous ver­sion of the auto affil­i­ate links plu­gin I dis­covered that these are all archived on the wordpress.org down­loads page. The cur­rent ver­sion (রিট হয়-ing সময়) হয় 2.3.2 which can be down­loaded from https://downloads.wordpress.org/plugin/wp-auto-affiliate-links.2.3.2.zip. My pre­vi­ous ver­sion was 2.2.2 — so I guessed the down­load link would be https://downloads.wordpress.org/plugin/wp-auto-affiliate-links.2.2.2.zip if old ver­sions were retained. Hey presto — using that address worked per­fectly, kudos to word­press for keep­ing old versions.

উত্তর দিন