External pages redirecting back to wordpress

You have 2 options: 1 – Move either WP or your vueJS into a separate folder severd from a new or sub domain, 2 – Adjust the default Wp .htaccess to ignore your externalfolder . after RewriteEngine On RewriteBase / add RewriteCond %{REQUEST_URI} !^/externalfolder/

WordPress HTTP Error on File upload

I faced the same problem with my WordPress site. It’s some bug in WordPress. Which version you are using? I resolved this error by adding a function to my functions.php file in my theme. function ms_image_editor_default_to_gd( $editors ) { $gd_editor=”WP_Image_Editor_GD”; $editors = array_diff( $editors, array( $gd_editor ) ); array_unshift( $editors, $gd_editor ); return $editors; } … Read more

Placing assets for external use

I have used symbolic links for convenience for awhile on a dev server but they are not 100% reliable as some PHP functions will return the filesystem path of the target instead of the path to the symlink itself. The most notable example (though not really a function) is the magic constant __FILE__. (Also https://bugs.php.net/bug.php?id=46260) … Read more

Converting fopen/fwrite operations to WP_filesystem

The get_contents function returns the contents of the file, not a file handle. Using put_contents with $f after that is incorrect. Try $wp_filesystem->put_contents( $htaccess_file, $htaccessnew, FS_CHMOD_FILE ) instead. Also, it’s not necessarily safe to use things like “get_home_path” and such with the WP_Filesystem. The remote path may not match the local path. You’ll need to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)