Why are you worrying about caching on a localhost? Disable caching on the local version of your site.
I worry because even when I disable caching on the local version the problem remains.
If I want to start a new page with elementor for example I get the following
Warning: file_put_contents(/var/www/vhosts/13/114495/webspace/httpdocs/casavromans.eu/wp-content/uploads/essential-addons-elementor/9224d70ff.min.css): failed to open stream: No such file or directory in /Users/anitavromans/Local Sites/casavromanslokaal/app/public/wp-content/plugins/essential-addons-for-elementor-lite/includes/Traits/Generator.php on line 284
Call Stack
# Time Memory Function Location
1 0.0001 370264 {main}( ) …/index.php:0
2 0.0001 370544 require( ‘/Users/anitavromans/Local Sites/casavromanslokaal/app/public/wp-blog-header.php’ ) …/index.php:17
3 0.7417 24367000 require_once( ‘/Users/anitavromans/Local Sites/casavromanslokaal/app/public/wp-includes/template-loader.php’ ) …/wp-blog-header.php:19
4 0.8201 25792552 include( ‘/Users/anitavromans/Local Sites/casavromanslokaal/app/public/wp-content/themes/astra/page.php’ ) …/template-loader.php:106
5 0.8201 25792552 get_header( ) …/page.php:20
6 0.8201 25792928 locate_template( ) …/general-template.php:48
7 0.8202 25793056 load_template( ) …/template.php:676
8 0.8202 25793536 require_once( ‘/Users/anitavromans/Local Sites/casavromanslokaal/app/public/wp-content/themes/astra/header.php’ ) …/template.php:730
9 0.8205 25795040 wp_head( ) …/header.php:26
10 0.8205 25795040 do_action( ) …/general-template.php:3005
11 0.8205 25795416 WP_Hook->do_action( ) …/plugin.php:484
12 0.8205 25795416 WP_Hook->apply_filters( ) …/class-wp-hook.php:311
13 0.8211 25798088 wp_enqueue_scripts( ) …/class-wp-hook.php:287
14 0.8211 25798088 do_action( ) …/script-loader.php:2004
15 0.8211 25798464 WP_Hook->do_action( ) …/plugin.php:484
16 0.8211 25798464 WP_Hook->apply_filters( ) …/class-wp-hook.php:311
17 0.8452 25900472 Essential_Addons_Elementor\Classes\Bootstrap->enqueue_scripts( ) …/class-wp-hook.php:287
18 0.8462 25905408 Essential_Addons_Elementor\Classes\Bootstrap->generate_script( ) …/Enqueue.php:147
19 0.8905 26339704 file_put_contents ( ) …/Generator.php:284
( ! ) Warning: file_put_contents(/var/www/vhosts/13/114495/webspace/httpdocs/casavromans.eu/wp-content/uploads/essential-addons-elementor/9224d70ff.min.js): failed to open stream: No such file or directory in /Users/anitavromans/Local Sites/casavromanslokaal/app/public/wp-content/plugins/essential-addons-for-elementor-lite/includes/Traits/Generator.php on line 284
Call Stack
# Time Memory Function Location
1 0.0001 370264 {main}( ) …/index.php:0
2 0.0001 370544 require( ‘/Users/anitavromans/Local Sites/casavromanslokaal/app/public/wp-blog-header.php’ ) …/index.php:17
3 0.7417 24367000 require_once( ‘/Users/anitavromans/Local Sites/casavromanslokaal/app/public/wp-includes/template-loader.php’ ) …/wp-blog-header.php:19
4 0.8201 25792552 include( ‘/Users/anitavromans/Local Sites/casavromanslokaal/app/public/wp-content/themes/astra/page.php’ ) …/template-loader.php:106
5 0.8201 25792552 get_header( ) …/page.php:20
6 0.8201 25792928 locate_template( ) …/general-template.php:48
7 0.8202 25793056 load_template( ) …/template.php:676
8 0.8202 25793536 require_once( ‘/Users/anitavromans/Local Sites/casavromanslokaal/app/public/wp-content/themes/astra/header.php’ ) …/template.php:730
9 0.8205 25795040 wp_head( ) …/header.php:26
10 0.8205 25795040 do_action( ) …/general-template.php:3005
11 0.8205 25795416 WP_Hook->do_action( ) …/plugin.php:484
12 0.8205 25795416 WP_Hook->apply_filters( ) …/class-wp-hook.php:311
13 0.8211 25798088 wp_enqueue_scripts( ) …/class-wp-hook.php:287
14 0.8211 25798088 do_action( ) …/script-loader.php:2004
15 0.8211 25798464 WP_Hook->do_action( ) …/plugin.php:484
16 0.8211 25798464 WP_Hook->apply_filters( ) …/class-wp-hook.php:311
17 0.8452 25900472 Essential_Addons_Elementor\Classes\Bootstrap->enqueue_scripts( ) …/class-wp-hook.php:287
18 0.8946 25913816 Essential_Addons_Elementor\Classes\Bootstrap->generate_script( ) …/Enqueue.php:168
19 0.9518 27163304 file_put_contents ( ) …/Generator.php:284
hi @vromans it seems to me that some of your plugins cache the paths to certain folders and then they try to access them on your local setup. I think the best way to have a local mirror is to do:
– make clean default WordPress installation on your local machine
– install on the local version all the plugins you have on the live version
– export all data from the live site
– import the data in your local WordPress
Exporting and importing is not always easy if you have many plugins. There are some plugins that enhance the default exporting of data.
As @sterndata mentioned you should not have caching of any sort enabled on your local website as it only makes developing it harder for no benefit.
And do I then use the Export/Import function of WordPress it self or do I use a plugin for this ?
Does the file “No such file or directory in /Users/anitavromans/Local Sites/casavromanslokaal/app/public/wp-content/plugins/essential-addons-for-elementor-lite/includes/Traits/Generator.php” exist?