Relative or dynamic site url possible?

I usually just avoid the issue entirely every time I create a new wordpress site: define(‘WP_HOME’, “https://wordpress.stackexchange.com/”); define(‘WP_SITEURL’, “https://wordpress.stackexchange.com/”); will cause wordpress to use root-relative urls for everything. Makes site migrations to other domains far easier. Ofc, if you access your site using a folder (eg. “http://<domain>/blog“) you could change them to: define(‘WP_HOME’, ‘/blog/’); define(‘WP_SITEURL’, … Read more

How do I find what causes a blank white screen in WordPress?

Am trying to build a test environment for a WordPress project using xamp. Apache is listening on localhost:8080 MySQL is 3306 root with no password Changes did in wp-config Dbname is wp-db Dbhost is locallhost:8080 Dbuser is root WordPress root folder is in c:/xamp/htdocs/wordpress Before changing the dbhost from local host to localhost:8080 I was … Read more

MySQL said: Documentation #1045 – Access denied for user ‘root’@’localhost’ (using password: NO)

I installed xampp,but when I tried to run it I got an error as thus: Error MySQL said: Documentation 1045 – Access denied for user ‘root’@’localhost’ (using password: NO) Connection for controluser as defined in your configuration failed. phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check … Read more

XAMPP installation on Win 8.1 with UAC Warning

There are two things you need to check: Ensure that your user account has administrator privilege. Disable UAC (User Account Control) as it restricts certain administrative function needed to run a web server. To ensure that your user account has administrator privilege, run lusrmgr.msc from the Windows Start > Run menu to bring up the Local Users and … Read more

How to solve “Error: MySQL shutdown unexpectedly”?

IMPORTANT: do NOT delete ibdata1 file. You could destroy all your databases. Instead, first try using the MySQL backup folder which is included with XAMPP. So do next steps: Rename folder mysql/data to mysql/data_old Make a copy of mysql/backup folder and name it as mysql/data Copy all your database folders from mysql/data_old into mysql/data (except … Read more

Xampp Access Forbidden php

Try with this code below, add it in your virtual host config. Add this lines to httpd-vhosts.conf file: I fixed the same issue by this way. Hope it helps. Note: after changes please test it in incognito because you redirected by cache

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