امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
How can I prevent server errors like this:
I have the following code:
PHP:
The server error only occurs once in a...
Read more
XF\Db\DuplicateKeyException: MySQL query error [1062]: Duplicate entryI have the following code:
PHP:
کد:
if (empty($forumListCount))
{
$forumListCount = \XF::em()->create('Andy\ForumListCount:ForumListCount');
$forumListCount->count_date = $today;
$forumListCount->count_guest = 0;
$forumListCount->count_member = 0;
$forumListCount->count_robot = 0;
$forumListCount->save();
}
The server error only occurs once in a...
Read more
