error establishing database connection (WAMP + filezilla)

If everything is normal ( i.e., web server is working, ) you should care for only following things when creating new wordpress site. define(‘DB_NAME’, ‘db_name’); /** MySQL database username */ define(‘DB_USER’, ‘user_name’); /** MySQL database password */ define(‘DB_PASSWORD’, ‘db_password’); /** MySQL hostname */ define(‘DB_HOST’, ‘localhost’); db_name : name of the database that will hold your … Read more

Problem: Fatal error worldpress theme

I cant acess my page anymore. Even the wordpress dashboard. You have two options of varying technical difficulty. Option 1 – Move the theme folder to access /wp-admin/ Log in to your site’s FTP service or control panel’s File Manager Navigate to /home1/wavecont/public_html/wp-content/themes/ Rename sshops to sshops-moved WordPress will automatically stop using the theme’s files … Read more

Show error messages to a user when database insert fails

You should not use the $errors globally, but use hooks in WordPress development. Since you are new to WP development, I will explain briefly how it works. What you should do instead: make a new hook, or use an existing one which you call at the location you want this error to appear in your … Read more

WordPress website dont load CSS, JS and images

Since the problem is not easily duplicated, it could be response times of your hosting place. It could also be some external javascript code required by theme or plugin not loading properly due to timeouts. You could try to see what element is causing the problem by using the Network tab of the Code Inspector … Read more

This occurs when I open admin or front on localhost

What version of WordPress are you running? Can you perhaps include the code from line 252 of that file? If it’s a current installation of WordPress, then it’s this: /** * @since 1.2.0 */ if ( !defined(‘COOKIEPATH’) ) define(‘COOKIEPATH’, preg_replace(‘|https?://[^/]+|i’, ”, get_option(‘home’) . “https://wordpress.stackexchange.com/” ) ); … And I can’t really see why that all … Read more

Undefined index when saved to options

though i am specifying it. You’re not actually specifying it. You’re trying to use it in your regex and THEN you specified it. You can’t use it in your “if” criteria when if it doesn’t exist. You need to check to see if it exists first. The following would set your value if it is … Read more