Earlier today I updated our test site, in preparation for rolling updates out to the main site. This involved updating several plugins and replacing the “BeforeTheDeadline” plugin with Jetpack. After completing the updates I found I was getting several error messages on the dashboard, تحت عنوان "روابط واردة" لوحة القيادة القطعة, بل وأكثر الأخطاء عندما حاولت تفريغ مخابئ W3 إجمالي الكاش.
The most common error was as below or similar to below (الذي كان الخطأ التي تظهر على لوحة القيادة)
انتقدت: تعيين القيمة عودة جديدة بالاشارة هو مستنكر في ... /-يشمل الفسفور الابيض / فئة simplepie.php
وكنت قادرا على مسح الأخطاء تعطيل كل الإضافات, وإعادة تمكين- 1 في وقت لتقودني إلى الجاني - استكمالا ل"WP 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);[/فب]
إزالة هذا الخط (أو التعليق عليه) تحل المشكلة تماما.
كملاحظة أخرى - هذه التحذيرات من بي أتش بي 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() استدعاء دالة.
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 (في وقت أمر جي) هو 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, مجد ورد لحفظ النسخ القديمة.
“Hi James I realise it has been a long while, but I just checked this on windows 11 (build 23H2)…”