• Hi,

    I have installed my live website now on a localhost with Local by Flywheel and I am encountering some problems. I have already contacted the plugin forums for elementor and site-review but they say its a general wordpress issue.

    This is a live server path:
    /var/www/vhosts/13/114495/webspace/httpdocs/casavromans.eu/wp-content/uploads/site-reviews/logs/console-4d67cc51c4ca8e865106195e3842d873.log

    And this is a local path on your Mac:
    /Users/anitavromans/Local Sites/lokaalontwikkeling/app/public/wp-content/plugins/site-reviews/plugin/Modules/Console.php on line 315

    Site Reviews uses wp_upload_dir to determine the path to your uploads folder. It appears that this location remains cached.

    How do I solve this please ?

    Regards
    Anita

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Why are you worrying about caching on a localhost? Disable caching on the local version of your site.

    Thread Starter vromans

    (@vromans)

    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.

    Thread Starter vromans

    (@vromans)

    And do I then use the Export/Import function of WordPress it self or do I use a plugin for this ?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    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?

    Thread Starter vromans

    (@vromans)

    Hi Steven,

    Yes this file exist

    Regards
    Anita

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cache error’ is closed to new replies.