Can't see .php files (Wordpress) in Dreamweaver Live View on local server
Hello. I hope I am writing this in the correct forum. I have installed the XAMPP server (mySQL/apache) on my computer so I can test my websites locally. I am using Dreamweaver CS5.
I found these tutorials and was successfully able to create databases in mySQL and was able to view the sample .php files in Dreamweaver's 'Live View'.
http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html
http://www.adobe.com/devnet/dreamweaver/articles/setup_testing_server.html
http://www.adobe.com/devnet/dreamweaver/articles/dw_wordpress_pt1.html
http://www.adobe.com/devnet/dreamweaver/articles/dw_wordpress_pt2.html
My only problem was with the tutorial for Wordpress. I created the worpress database in mySQL and assigned privileges. I created a new site in Dreamweaver called 'blog'. I downloaded the tutorials 'my_themes' as well as the latest Wordpress build. I was able to activate the Worpress database, login and switch themes from 'mythemes' to 'twentyten' etc. I can view my 'mytheme' when I call up local url = http://localhost/wordpress/.
However, when I click on any of the .php files (either 'twentyten' or 'mytheme') in the Dreamweaver Local Files, I can't see them in the Live View, I receive .php errors. Examples:
when cliking on index.php = Fatal error: Call to undefined function get_header() in C:\xampp\htdocs\wordpress\wp-content\themes\twentyten\index.php on line 16
when clicking on functions.php = Fatal error: Call to undefined function add_action() in C:\xampp\htdocs\wordpress\wp-content\themes\twentyten\functions.php on line 51
I can't figure out why. I am a novice and still learning about .php environment/local test server/database mySQL connection...... I believe I set those up correctly, the database 'test' was handshaked. Again, on the other tutorials, I can see the .php files in Live View.
Maybe I am not pointing the site/server to the correction location for wordpress? On my local computer, I have:
C:\xampp\htdocs\ ...... the wordpress is located at C:\xampp\htdocs\wordpress\
In Dreamweaver I have this set up:
(site connection):
site name = blog
local site folder = C:\xampp\htdocs\wordpress\
(server);
server name: blogconnect
connect using: local/network
server folder: C:\xampp\htdocs\wordpress\
web url: http://localhost/wordpress/
testing server: PHP MySQL
(mySQL connection)
connection name: blogconnect
mySQL server: localhost
username: kenneth
password: .......
database: wordpress
Sorry for the long post, hope someone can assist. Thank You
