wp_insert_post
-
Hi,
if i do this
$my_post = array( 'post_title' => $label, // Label wird als Titel verwendet 'post_name' => $titelform, // Titelform wird als Slug verwendet 'post_status' => 'publish', 'post_type' => 'manufacturer' ); $result = wp_insert_post($my_post);
i get this
{key: ‘9225f6221f2528d68389b274d5f16ba5’, type: ‘warning’, message: ‘rmdir(D:\\xampp-8-1-25\\htdocs\\xxxx/wp-content/cache…ost/xxxx/marke/vespa/): No such file or directory’, file: ‘wp-content/plugins/wp-super-cache/wp-cache-phase2.php’, line: 3209, …}- component: “Plugin: wp-super-cache”
- file: “wp-content/plugins/wp-super-cache/wp-cache-phase2.php”
- key: “xxxxx”
- line: 3209
- message: “rmdir(D:\\xampp-8-1-25\\htdocs\\xxxx/wp-content/cache/supercache/localhost/xxxx/marke/vespa/): No such file or directory”
- stack: (9) [‘rmdir()’, ‘wp_cache_post_id_gc()’, ‘wp_cache_post_change()’, ‘wp_cache_post_edit()’, “do_action(‘clean_post_cache’)”, ‘clean_post_cache()’, ‘wp_insert_post()’, ‘import_manufacturer_from_acf_list_callback()’, “do_action(‘wp_ajax_import_manufacturer_from_acf_list_callback’)”]
- type: “warning”
The path “D:\xampp-8-1-25\htdocs\xxxx/wp-content/cache/” ist existing and caching is working. the post is also created without any problems
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘wp_insert_post’ is closed to new replies.