xampp wordpress preview error

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
marjwyatt
Posts: 3
Joined: Mon Sep 13, 2010 8:25 am

xampp wordpress preview error

Post by marjwyatt »

I'm trying to preview php scripts on a local xampp install. My computer is using the Windows XP Professional SP3 operating system.

I get this error when I try to preview a PHP script:

Fatal error: Call to undefined function language_attributes() in C:\xampp\htdocs\wp\....

This is the line of code causing the error: <html <?php language_attributes(); ?>>

Wordpress defaults to English, and the application is running in my local development environment just fine so I'm certain this is not a wordpress issue.

I also know this isn't a a wordpress support forum nor an xampp forum, so I'm not asking for help with those tools but, as a wordpress website developer, I need to be able to see how things look as I'm working with the code.

It has been a couple weeks of (expletive-deletive) labor trying to get my development environment reinstated but I'm fairly certain this was working on my Vista computer, prior to the motherboard failure that caused me to have to a new computer. :roll:

I am using WeBuilder 2010 10.0.2.118

I've verified that the tool is looking for PHP in the Xampp folder on my hard drive. Is there some other trick?
srdjan
Posts: 11
Joined: Thu Jul 02, 2009 10:39 pm

Re: xampp wordpress preview error

Post by srdjan »

As far as I know, it is not possible to preview other php files than index.php file in root folder of your wordpress installation.
In order to preview your file you can type localhost/yourptoject in preview URL field...
This is the way I am working. If somebody has better work setup - please enlighten me.
marjwyatt
Posts: 3
Joined: Mon Sep 13, 2010 8:25 am

Re: xampp wordpress preview error

Post by marjwyatt »

Thanks for your reply. It is probably "faulty memory" on my part, or wishful thinking. :)
Post Reply