How to move UPLOADS folder in sub-domain which hosted in another server

Warning! Nothing of the proposed below was tested. add_filter(‘upload_dir’, ‘update_attachment_url’); function update_attachment_url($data) { $data[‘url’] = str_replace(‘http://main-domain/’, ‘http://sub-domain.com’, $data[‘url’]); $data[‘baseurl’] = str_replace(‘http://main-domain/’, ‘http://sub-domain.com’, $data[‘baseurl’]); return $data; } Code source. Also you can try to change the values of upload_path and upload_url_path found in the wp_options MySQL table. Remember to run Search Replace DB to change all … Read more

Media uploads error

Is your website set to load over https? So https://example.com and not http://example.com? The link to google fonts is over http which will cause an error when your site loads securely over https. There are a few places the reference to google fonts could be: try header.php, functions.php and your stylesheet(s). Wherever you find a … Read more

Cannot upload png photo files into media library. I get a ‘Could not insert post into the database’

there’s a bunch of possible reasons for your problem. I would check the following: Make sure that files you’re uploading are allowed by WordPress https://codex.wordpress.org/Uploading_Files It’s possible that you’re trying to upload files bigger than allowed by your PHP configuration – check upload_max_filesize and post_max_size settings in php.ini. If you do not have access to … Read more

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