404 on CSS and JS only on Homepage

There is an extra ‘x’ in the url on the home page for assets: https://onemoresong.com.au/wp-content/themes/themify-ultrax/themify/css/themify.common.min.css?ver=4.9.9 Remove the ‘x’ from themify-ultrax and your assets load: https://onemoresong.com.au/wp-content/themes/themify-ultra/themify/css/themify.common.min.css?ver=4.9.9 Check your home template to make sure you didn’t accidentally type x there or in your enqueueing of assets. Lastly check our database for this incorrect naming of the theme … Read more

Page 404 Error on Localhost

In some instances (tried everything counts) I’ve had to (be sure I had a current xml export of the content + ftp back up of the wp-content dir + copy paste your customized CSS and other code) wipe the site, fresh install WP install all the plugins, theme, etc then import the xml and/or copy … Read more

404s after changing site url in settings

Some things to check. The 404, that is probably because your web server isn’t configured correctly. If you put a simple page in your WP root, like foo.php <?php echo “You made it”; and if you go to [my-domain-url]/foo.php and you don’t get “you made it”, then your webserver is misconfigured OR your DNS isn’t … Read more

How to customize file path for 404 redirection in php?

This should work for you, using plugins_url(): … // Assumes that your templates are in a subdirectory called ‘templates’ in your plugin. // Adjust accordingly. $templates_dir = plugins_url( ‘templates’, __FILE__ ); $page_404 = $templates_dir . ‘/404-‘ . $post_type . ‘.php’ ); … Update: template_include If you want to have WordPress loaded up, you might be … Read more

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