• Resolved hannah

    (@hannah93135)


    Hi
    I’m using this plugin pleasantly, but something get wrong after I transferred my website to another server. The path to “/public_html” has changed. My website showed “Localize JS error: update status file is not writeable.” with an old path to the js file. Where can I change the path? Thank you so much!

    Hannah

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author optimalisatie

    (@optimalisatie)

    Hi Hannah,

    I am sorry for the late reply.

    The plugin does not store or set a fixed path at any location. It uses the default WordPress function wp_upload_dir().

    The following code shows how the cache path is obtained.

    /**
     * Cache path
     */
    public function cache_path() {
    	$dir = wp_upload_dir();
    	$path = $dir['basedir'] . '/abovethefold/';
    	if (!is_dir($path)) {
    		mkdir($path,0775);
    	}
    	return apply_filters('abovethefold_cache_path', $path);
    }
    

    To change the path, it is required to update the path within WordPress.

    [ Signature moderated ]

    Thread Starter hannah

    (@hannah93135)

    Dear Jan,

    Got it, thank you so much!

    Best Regards,
    Han Wang

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error occurs after I transfer my website to another server’ is closed to new replies.