WordPress database error: [<div style="clear:both">&nbsp;</div><div class="queries" style="clear:both; margin_bottom:2px; border: red dotted thin;">Queries made or created this session were<br/> <ol> <li>Raw query: INSERT INTO `wp_options` (`option_name`, `option_value`, `autoload`) VALUES ('_transient_doing_cron', '1656792197.5471570491790771484375', 'yes') ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`)</li> <li>Rewritten: INSERT INTO wp_options (option_name, option_value, autoload) VALUES ('_transient_doing_cron', '1656792197.5471570491790771484375', 'yes')</li> <li>With Placeholders: INSERT INTO wp_options (option_name, option_value, autoload) VALUES ( :param_0 , :param_1 , :param_2 )</li> <li>Prepare: INSERT INTO wp_options (option_name, option_value, autoload) VALUES ( :param_0 , :param_1 , :param_2 )</li> <li>Executing: array ( 0 => '_transient_doing_cron', 1 => '1656792197.5471570491790771484375', 2 => 'yes', )</li> </ol> </div><div style="clear:both; margin_bottom:2px; border: red dotted thin;" class="error_message" style="border-bottom:dotted blue thin;">Error occurred at line 692 in Function execute_query. <br/> Error message was: Error while executing query! Error message was: SQLSTATE[23000]: Integrity constraint violation: 19 column option_name is not unique </div><pre>#0 PDOEngine->get_error_message() called at [/var/www/html/nakeman.cn/public_html/wp-content/plugins/sqlite-integration/pdodb.class.php:254] #1 PDODB->query(INSERT INTO `wp_options` (`option_name`, `option_value`, `autoload`) VALUES ('_transient_doing_cron', '1656792197.5471570491790771484375', 'yes') ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`)) called at [/var/www/html/nakeman.cn/public_html/wp-includes/option.php:476] #2 add_option(_transient_doing_cron, 1656792197.5471570491790771484375, , yes) called at [/var/www/html/nakeman.cn/public_html/wp-includes/option.php:766] #3 set_transient(doing_cron, 1656792197.5471570491790771484375) called at [/var/www/html/nakeman.cn/public_html/wp-includes/cron.php:329] #4 spawn_cron(1656792197.5472) called at [/var/www/html/nakeman.cn/public_html/wp-includes/cron.php:390] #5 wp_cron() #6 call_user_func_array(wp_cron, Array ([0] => )) called at [/var/www/html/nakeman.cn/public_html/wp-includes/class-wp-hook.php:286] #7 WP_Hook->apply_filters(, Array ([0] => )) called at [/var/www/html/nakeman.cn/public_html/wp-includes/class-wp-hook.php:310] #8 WP_Hook->do_action(Array ([0] => )) called at [/var/www/html/nakeman.cn/public_html/wp-includes/plugin.php:453] #9 do_action(init) called at [/var/www/html/nakeman.cn/public_html/wp-settings.php:450] #10 require_once(/var/www/html/nakeman.cn/public_html/wp-settings.php) called at [/var/www/html/nakeman.cn/public_html/wp-config.php:100] #11 require_once(/var/www/html/nakeman.cn/public_html/wp-config.php) called at [/var/www/html/nakeman.cn/public_html/wp-load.php:37] #12 require_once(/var/www/html/nakeman.cn/public_html/wp-load.php) called at [/var/www/html/nakeman.cn/public_html/wp-blog-header.php:13] #13 require(/var/www/html/nakeman.cn/public_html/wp-blog-header.php) called at [/var/www/html/nakeman.cn/public_html/index.php:17] </pre>]
INSERT INTO `wp_options` (`option_name`, `option_value`, `autoload`) VALUES ('_transient_doing_cron', '1656792197.5471570491790771484375', 'yes') ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`)

React-training – 刘建文 | Nakeman.cn Press "Enter" to skip to content

Tag: React-training

React 和TypeScript 练习笔记(二)—— 复合状态值与两种组件模式

本系列为Lemoncode开源项目(其中之一)练习总结,原项目共有15个练习,经分析,主要可归结为五个练习:

  • 1 简单交互与CP模式
  • 2 复合状态值与两种组件模式
  • 3 表格数据与后端缓存
  • 4 路由与表单验证
  • 5 Context与会话状态

第二组练习由7、8、9 三个子练习组成,目的归结起来主要为了展示 复合交互状态(object),和两种复用组件模式(professional and children props)

React 和TypeScript 练习笔记(一)——简单交互与CP模式

本系列为Lemoncode开源项目(其中之一)练习总结,原项目共有15个练习,经我的分析,主要可归五个练习:

  • 1 简单交互与CP模式
  • 2 复合状态值与两种组件模式
  • 3 表格数据与后端缓存
  • 4 路由与表单验证
  • 5 Context与会话状态

第一个练习由前6 个子练习组成,目的归结起来主要为了展示 最经典的React 组件模式——CP模式。

React 实践自训笔记(一)

这两年一直在打 前端开发的专业基础,没有什么实践,主要以看代码为主,很少动手,现在开始补。这几天在github搜寻,还是找到一些不错的开源实践项目,逐个做一做,并整理成文,结为经验。

找到了几个(看下面),因为都是精心设计过的线下课程,它们的特点或优点是 主题内容较全面,练习题循序渐进,练习题描述清晰,且答案配套,非常适用自学用。

开始之前,先聊一聊有关 实践和理论的关系。